How to extend Filesystem to new disk using LVM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all, 

I am running RHEL 4 

Here is the out put of df . I want to extend /var to another new hard
drive. 

$ df

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

                      27673632  17240220   9027668  66% /

/dev/sda1               101086     39271     56596  41% /boot

none                   2987092         0   2987092   0% /dev/shm

/dev/sda2              5162828   4529840    370728  93% /var

 

I have done following steps .

1) Added disk i.e sdb

2)run fdisk , created single partition i.e sdb1

3) Started system-config-lvm and initialized the disk and added the disk
to logical volume LGVol00 under VolGroup00.  I haven't yet extended the
volume to use the new disk space . 

4) Here is the output of PVSCAN 

  pvscan

  PV /dev/sda3   VG VolGroup00   lvm2 [28.78 GB / 32.00 MB free]

  PV /dev/sdb1   VG VolGroup00   lvm2 [136.69 GB / 136.69 GB free]

  Total: 2 [165.47 GB] / in use: 2 [165.47 GB] / in no VG: 0 [0   ]

 It shows new disk as sdb1 ( 136GB)

  How do I extend /var so that it will use new disk space ? Do I have to
extend LGVol00 to use new disk space ? Can I do it through
system-config-lvm ? I know there is ext2online command but how do I use
it? 

 

Thanks 

Manz

 

 

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux