[CentOS] LVM on large partitions greater than 2TB
http://lists.centos.org/pipermail/centos/2007-February/032574.html
# parted /dev/sdb (parted) mklabel gpt (parted) mkpart primary 0 2.5T (parted) quit # pvcreate /dev/sdb1 # vgcreate myvolume /dev/sdb1 # lvcreate -L 2.5TB myvolume # mkfs.ext3 /dev/mapper/myvolume-lvol0
http://www.redhat.com/archives/linux-lvm/2006-March/msg00104.html
parted /dev/sdb mklabel gpt mkpart primary xfs 0 4196049 select /dev/sdc mklabel gpt mkpart primary xfs 0 4196049 quit At the shell, type: pvcreate --metadatasize 1M /dev/sd{b,c}1 vgcreate -s 128M vg0 /dev/sd[bc]1 lvcreate -n lv0 -L8T vg0 mkfs.xfs /dev/vg0/lv0http://tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html#AEN407 Also, it depends on the filesystem you are using: http://en.wikipedia.org/wiki/Ext3#Size_limits http://en.wikipedia.org/wiki/Ext4 <-- look at the right summary table
==============================================================
To delete LVM try following step
- fist unmount the LVM partition
- delete LVM ex-lvremove LVM path
- delete volume group ex-vgremove Vg path
- delete PV ex- pvremove partition path
- now change the id ex- fdisk /dev/sda or hda
- make it 83 or other what you want
沒有留言:
張貼留言