0
点赞
收藏
分享

微信扫一扫

linux 麒麟V10 更改磁盘格式ext4-->xfs

苦茶如歌 2022-06-07 阅读 56

一、取消磁盘挂载

umount  /data

linux 麒麟V10 更改磁盘格式ext4-->xfs_磁盘分区

linux 麒麟V10 更改磁盘格式ext4-->xfs_xfs_02

二、查看磁盘相关信息

lsblk ##查看磁盘信息

lsblk -f ##查看磁盘信息

linux 麒麟V10 更改磁盘格式ext4-->xfs_xfs_03

要处理的磁盘为:vbd

fdisk -l   ##查看磁盘分区信息

linux 麒麟V10 更改磁盘格式ext4-->xfs_磁盘分区_04

三、重新分区

fdisk /dev/vdb

linux 麒麟V10 更改磁盘格式ext4-->xfs_xfs_05

linux 麒麟V10 更改磁盘格式ext4-->xfs_xfs_06

linux 麒麟V10 更改磁盘格式ext4-->xfs_磁盘分区_07

四、格式化

mkfs.xfs -f -n ftype=1 /dev/vdb1

linux 麒麟V10 更改磁盘格式ext4-->xfs_磁盘分区_08

linux 麒麟V10 更改磁盘格式ext4-->xfs_xfs_09

五、修改挂载信息

vi /etc/fstab

linux 麒麟V10 更改磁盘格式ext4-->xfs_磁盘分区_10

mount -a 

linux 麒麟V10 更改磁盘格式ext4-->xfs_xfs_11

完成



举报

相关推荐

0 条评论