
本文共 4350 字,大约阅读时间需要 14 分钟。
���������������32T���������������LVM������������������������
������������������������������������������������������������������������LVM������������������������������������������������������������������������������������������������������������������������������������������������������
1. ���������������
���������������������������������������
fdisk -l /dev/vde
���������������������������������������������������������������������������������������������������������GPT������������������������������������GPT������������������������������������������������
2. ������������������
������parted
������������������������������������������������������parted
���������������������������������������������������������������������������������������������������������������������������
2.1 ������parted
������
parted /dev/vde
������parted
���������������������������������������������������������������
- ������������������������
unit
- ������������������������ bilg���
Partition name? []
- ���������������������������
File system type? [ext2]
- ���������������
unit GB
- ���������������
mkpart primary 0 16T
���������������������������������������
_mkpart primary 0 16T
������������������������������������������������������������������������������
2.2 ���������������������
������������������������������������������������������������������������������������������������������
parted /dev/vde set 3 lvm
������3���������������������LVM���������
������������������������������
parted /dev/vde rm 3
������������������������������������������������������������������������������
2.3 ������������������������������������
������������������������������������������������
parted /dev/vde mklabel gptparted /dev/vde unit GB printparted /dev/vde set 3 lvmparted /dev/vde rm 3
������������������������������������GPT���������������������������������������������������������������
3. ������LVM������
������������������������������������LVM���������LVM������������������������������������������������������������������������������������
pvcreate --newdev /dev/vde2 /dev/hbeivideo
���������parted
������������������������
���������LVM���������������������������������PV���VG���LV���
3.1 ������PV
pvcreate -s /dev/hbeivideo
���������������������������������������������������������
3.2 ������VG
vgcreate -s /dev/hbeivideo/testVG
������������testVG
���VG���������������������������������������������������
3.3 ������LV
lvcreate -L size -n testLV testVG
������������LV������������������������������������������������
4. ���������������
������LVM���������������������������mkfs
������������������������������������������������������LV������������ext4
���������������
mkfs -t ext4 /dev/hbeivideo/testLV
������������������������������������������������������������������������������������/������������
5. ������������
������������������������������mount
���������������������
mount /dev/hbeivideo/testLV /mnt/testMountDirdf -h /mnt/testMountDir
���������������������������������������������������������������������
6. ������������������������
������������������������������������������������������������������������������������������������������������������������������������������������������������������������
6.1 ������������
���������������������������������
���������
mount /dev/hbeivideo/testLV /mnt/mntDir -o remount
- ������������������������������
-
���������������������������������������������������������������
-
���������������FS Mounted Options���������������������������������������������
-
������������������������������������������������������������������������
-
������������������������������������������������������
parted
������������������gpt
��� -
���������������������������������������������������������������������������������������
fix partition table
������������������ -
LVM���������������������������LVM���������������������������������������LVM database corruption���
umount /mnt/mntDir
6.2 ������������������������
������������������������������������������������������������������������������������������������������������������������������������������������������������
������������
###Troubleshooting
������������������������������������������������������������������������������������������������������������������������������������������������������dmesg
���������������������������������������������������
发表评论
最新留言
关于作者
