extend disk via command :

Extend disk via command :
I  assume the disk is recognize in my linux box is  : /dev/dsc1

and here are the steps
1. format disk

#fdisk /dev/sdc
#Command (m for help): n
#Command (m for help): w

2. extend volume group disk using lvm vgextend VolGroup00 /dev/sdc1

3. extend disk to volume group lvextend -L +199G /dev/VolGroup00/LogVol00

4. make change permanent resize2fs /dev/VolGroup00/LogVol00

last, check using df utility :

# df -h
Filesystem                                               Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup01-LogVol00      5.8G  3.0G  2.5G  56%         /
/dev/mapper/VolGroup01-LogVol01      961M   18M  895M   2%      /home
/dev/mapper/VolGroup00-LogVol00      242G   19G  211G   9%         /opt
/dev/sda1                                                   99M   12M   82M  13%       /boot
tmpfs                                                         1014M     0 1014M   0%      /dev/shm

Komentar

Postingan Populer