2009. 10. 29. 15:12
LVM에서 Hard Disk 추가하기
2009. 10. 29. 15:12 in linux
[ add new hard disk using lvm ]
1. insert HD
2. fdisk /dev/sdb
- create new partition
- set the type to 8e(LVM)
3. pvcreate /dev/sdb1
4. vgextend /dev/VolGroup00 /dev/sdb1
5. lvextend -L+20000 /dev/VolGroup00/LogVol00
[ remove hard disk using lvm ]
1. pvchange -x n /dev/sdb1
2. lvreduce -L-20000 /dev/VolGroup00/LogVol00
3. vgreduce VolGroup00 /dev/sdb1
1. insert HD
2. fdisk /dev/sdb
- create new partition
- set the type to 8e(LVM)
3. pvcreate /dev/sdb1
4. vgextend /dev/VolGroup00 /dev/sdb1
5. lvextend -L+20000 /dev/VolGroup00/LogVol00
[ remove hard disk using lvm ]
1. pvchange -x n /dev/sdb1
2. lvreduce -L-20000 /dev/VolGroup00/LogVol00
3. vgreduce VolGroup00 /dev/sdb1