LVM扩容报错以及 xfs_growfs 和 resize2fs 区别
报错 区别 以及 扩容 LVM XFS
2023-09-14 09:08:38 时间
最近老套路硬盘扩容报错
如下报错01)
[root@localhost ~]# pvcreate /dev/sda1 Device /dev/sda1 not found. [root@localhost ~]# pvcreate /dev/sda2 Device /dev/sda2 not found. [root@localhost ~]# pvcreate /dev/sda3 Device /dev/sda3 not found. 遇到这个报错是因为没有运行 partprobe
如下报错02)
[root@localhost ~]# vgextend centos /dev/sda1 Couldn't create temporary archive name. [root@localhost ~]# vgextend centos /dev/sda2 Couldn't create temporary archive name. [root@localhost ~]# vgextend centos /dev/sda3 Couldn't create temporary archive name.
这个通常是因为root partition 满了(根目录满了),清理一下文件再运行vgextend
如下报错03)
[root@localhost ~]# resize2fs /dev/centos/root resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/centos/root Couldn't find valid filesystem superblock.
报错原因是centos7 默认使用了xfs文件系统,
应该使用命令
xfs_growfs /dev/centos/root
所以
如果使用xfs文件系统
- xfs_growfs /dev/root_vg/root
如果使用ext4文件系统
- resize2fs /dev/root_vg/root
相关文章
- acme.sh 中间证书缺失,小程序报错 in promise miniprogramerror request:fail -2解决办法
- php composer 报错 requires php ^7.1.8 || ^8.0 -> your php version
- mybatis报错Type interface xxx.Dao is not known to the MapperRegistry
- 大叔问题定位分享(3)Kafka集群broker进程逐个报错退出
- crontab 手动执行可以,自动执行报错
- 解决docker报错: ---> [Warning] IPv4 forwarding is disabled. Networking will not work.
- 【异常】SpringCloud Gateway报错RoundRobinLoadBalancer - No servers available for service: terminal-api
- 【异常】记一次因没有在配置文件中正确添加Nacos的账号和密码导致报错Caused by: java.lang.NullPointerException: pattern
- mac编译wat报错解决方案
- 【错误记录】编译 Linux 内核报错 ( fatal error: openssl/opensslv.h: No such file or directory )
- Mybatis 拦截器报错org.apache.ibatis.executor.statement.StatementHandler.prepare(java.sql.Connection)
- Docker pull拉取镜像报错“Error response from daemon: Get “https://registry-1.docker.io/v2”解决办法
- SummaryWriter报错,改为tf.summary.FileWriter
- android studio kotlin 编译的报错提示::app:stripDebugDebugSymbols