CentOS下改分区为Linux LVM

[root@server ~]# fdisk /dev/vda
欢迎使用 fdisk (util-linux 2.23.2)。

更改将停留在内存中,直到您决定将更改写入磁盘。
使用写入命令前请三思。


命令(输入 m 获取帮助):n
Partition type:
   p   primary (2 primary, 0 extended, 2 free)
   e   extended
Select (default p): 
Using default response p
分区号 (3,4,默认 3):
起始 扇区 (50333696-2147483647,默认为 50333696):
将使用默认值 50333696
Last 扇区, +扇区 or +size{K,M,G} (50333696-2143286911,默认为 2143286911):
将使用默认值 2143286911
分区 3 已设置为 Linux 类型,大小设为 998 GiB

命令(输入 m 获取帮助):t
分区号 (1-3,默认 3):
Hex 代码(输入 L 列出所有代码):8e
已将分区“Linux”的类型更改为“Linux LVM”

命令(输入 m 获取帮助):w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
正在同步磁盘。
[root@server ~]# reboot

 

分享技巧

CentOS下调整根目录大小

2021-3-1 22:59:17

分享技巧

CentOS下创建VG卷组

2021-3-1 23:02:07

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索