2023年11月6日

Linux基础-xfs设备修复

摘要: xfs文件系统,使用命令 xfs_repair -L /dev/md0修复, 一般情况修复后均可挂载, 但是如果磁盘有问题,或者阵列出问题时此种修复可能会失败,挂载时依然要求格盘,只能进行格盘了。 参考:https://blog.csdn.net/weixin_38642722/article/de 阅读全文

posted @ 2023-11-06 17:32 gkhost 阅读(236) 评论(0) 推荐(0) 编辑

Linux基础-查看dm的映射关系

摘要: 参考:/aozhejin/p/16061309.htmlsudo lvdisplay|awk '/LV Name/{n=$3} /Block device/{d=$3; sub(".*:","dm-",d); print d,n;}' 阅读全文

posted @ 2023-11-06 17:29 gkhost 阅读(64) 评论(0) 推荐(0) 编辑

Linux基础-清除主机缓存

摘要: sync;echo 3 >/proc/sys/vm/drop_caches 关闭swap # 关闭swapoff,关闭循环后,交换操作至少要等待40秒 swapoff -a # 开启swap swapon -a 阅读全文

posted @ 2023-11-06 17:24 gkhost 阅读(21) 评论(0) 推荐(0) 编辑

2023年10月17日

Linux基础——tmpfs挂载到root目录

摘要: 1、(卸载/tmp目录前,请备份/tmp目录下重要数据)查看/tmp目录的挂载情况 df -h 卸载/tmp目录 umount -lf /tmp 2、关闭tmp挂载及tmpfiles相关服务 关闭自动挂载/tmp目录服务 systemctl disable tmp.mount systemctl s 阅读全文

posted @ 2023-10-17 16:17 gkhost 阅读(402) 评论(0) 推荐(0) 编辑

Linux基础——IPV6内核参数配置

摘要: 一、检查内核配置是否启动ipv6 net.ipv6.conf.bond0.forwarding = 1 net.ipv6.conf.bond0.disable_ipv6 = 0 net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.default.forwar 阅读全文

posted @ 2023-10-17 16:11 gkhost 阅读(614) 评论(0) 推荐(0) 编辑

linux基础——修复系统bonding模块

摘要: 卸载模块 [root@localhost network-scripts]# modprobe -r bonding 查看模块 [root@localhost network-scripts]# lsmod | grep bonding 绑定模块 [root@localhost network-sc 阅读全文

posted @ 2023-10-17 16:08 gkhost 阅读(143) 评论(0) 推荐(0) 编辑

2023年3月7日

Mysql三种部署方式

摘要: 阅读全文

posted @ 2023-03-07 16:21 gkhost 阅读(49) 评论(0) 推荐(0) 编辑

2022年11月11日

Linux基础——内核排查过程

摘要: 根因: (内核BUG)BUG:unable to handle kernel NULL pointer dereference at 0000000000000019,代码调用函数assign_irq_vector报错,通过升级内核版本进行修复。 解决办法: 内核代码bug问题,参考红帽官网,通过内 阅读全文

posted @ 2022-11-11 23:36 gkhost 阅读(384) 评论(0) 推荐(0) 编辑

Linux基础——根目录扩容

摘要: 1、准备扩容/dev/mapper/centos-root [root@ceph-admin ~]# df -Th Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 484M 0 484M 0% /dev tmpfs 阅读全文

posted @ 2022-11-11 23:32 gkhost 阅读(8755) 评论(0) 推荐(0) 编辑

2022年7月26日

Docker部署二:docker-ce安装笔记

摘要: docker-ce安装 i.删除残留docker进程及文件 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate 阅读全文

posted @ 2022-07-26 10:08 gkhost 阅读(1469) 评论(0) 推荐(0) 编辑

导航