On Wed, Oct 31, 2012 at 9:21 AM, Raymond Beaudoin <
[email protected]> wrote:

> Hey Everyone!
>
> I'm a bit green when it comes to LVM. Could anyone assist me in extending
> a Logical Volume? I believe I have successfully resized nala-home, but I
> cannot for the life of me figure out how to add it to nala-var. Below are
> more details. Thanks for taking the time to help me!
>
> *Goal:* Shrink /dev/mapper/nala-home from 350GB to 300GB. Take freed
> space and add it to /dev/mapper/nala-var
>
> *Steps taken so far:*
>
> umount /dev/mapper/nala-home
> e2fsck -f /dev/mapper/nala-home
> resize2fs /dev/mapper/nala-home 300G
> *
> *
> *
> *
> *Outputs*
>
> vgdisplay output
>   --- Volume group ---
>   VG Name               nala
>   System ID
>   Format                lvm2
>   Metadata Areas        1
>   Metadata Sequence No  7
>   VG Access             read/write
>   VG Status             resizable
>   MAX LV                0
>   Cur LV                6
>   Open LV               6
>   Max PV                0
>   Cur PV                1
>   Act PV                1
>   VG Size               409.94 GiB
>   PE Size               4.00 MiB
>   Total PE              104945
>   Alloc PE / Size       104945 / 409.94 GiB
>   Free  PE / Size       0 / 0
>   VG UUID               2udF5O-hCis-qf9U-CpgL-e1Dt-9Rj2-bgQYOQ
>
>
> pvdisplay output
>   --- Physical volume ---
>   PV Name               /dev/block/104:5
>   VG Name               nala
>   PV Size               409.94 GiB / not usable 2.00 MiB
>   Allocatable           yes (but full)
>   PE Size               4.00 MiB
>   Total PE              104945
>   Free PE               0
>   Allocated PE          104945
>   PV UUID               wjWb2a-dV0V-c7TH-RIi6-affe-fKZY-V7L9dW
>
>
> df -h output
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/nala-root
>                       322M  152M  154M  50% /
> tmpfs                 3.9G     0  3.9G   0% /lib/init/rw
> udev                  3.9G  140K  3.9G   1% /dev
> tmpfs                 3.9G     0  3.9G   0% /dev/shm
> /dev/cciss/c0d0p1     228M   16M  201M   8% /boot
> /dev/mapper/nala-home
>                       296G  4.2G  277G   2% /home
> /dev/mapper/nala-tmp  368M   11M  339M   3% /tmp
> /dev/mapper/nala-usr  8.3G  765M  7.1G  10% /usr
> /dev/mapper/nala-var  2.8G  739M  1.9G  28% /var
>
>
Have you done an lvextend and resize2fs on nala-var? That's how you would
grow that logical volume if the space is already available in the volume
group.

-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

Reply via email to