物理卷:pvcreate /dev/sda8
卷组:vgcreate vg00 /dev/sda8
vgdisplay
逻辑卷:lvcreate -L 100M vg00 -n lv_tmp
mkfs.ext3 /dev/vg00/lv_tmp
mkdir /mnt/lv_tmp
mount -t ext3 /dev/vg00/lv_tmp /mnt/lv_tmp
减小到100M:
resize2fs /dev/vg00/lv_tmp 100M
lvresize -L 100M /dev/vg00/lv_tmp
e2fsck -f /dev/vg00/lv_tmp
mount -t ext3 /dev/vg00/lv_tmp /mnt/lv_tmp
增大到150M:
lvresize -L 150M /dev/vg00/lv_tmp
resize2fs /dev/vg00/lv_tmp
增加卷组:
pvcreate /dev/sda9
vgextend vg00 /dev
vgdisplay vg00
删除卷组:
umount /mnt/lv_tmp
lvremove /dev/vg00/lv_tmp
vgremove vg00
pvremove /dev/sda8
fdisk /dev/sda
d
mkfs.ext3 /dev/sdb1
partprobe
cat /proc/partitons
vim /etc/fstab
/dev/sdb1 /mnt/ ext3 defaults 0 0
阅读(416) | 评论(0) | 转发(0) |