MBR格式xfs磁盘分区扩容(无损)(u盘格式化ntfs分配单元大小多少合适)

[root@test ~]# lsblk
[root@test ~]# df -Th
初始是500G,扩容到1000G(注意创建磁盘的时候需要1000G)
下面开始扩容磁盘
[root@test ~]# fdisk /dev/sdb
Command (m for help): p
Command (m for help): d
Selected partition 1
重点删除分区后不能进行保存,不然数据会全部丢失
Command (m for help): p
Command (m for help): n
Command (m for help): p
Partition number (1-4): 1
回车
回车
Command (m for help): w
再次分好区后进行保存不会数据丢失,这就是在分区情况下无损扩容
[root@test ~]# partprobe
[root@test ~]# lsblk
[root@test ~]# xfs_growfs /dev/sdb1
[root@test ~]# df -Th


XFS裸磁盘不分区扩容
#df -Th
#lsblk
# xfs_growfs /dev/sdb
#df -Th


标签:

上一篇CentOS7下安装python3.10.6(7下8上防汛是什么意思)
下一篇oracle oci ubuntu server 默认ssh可以连接,但是修改后连不上

相关文章