Thank you, Howard! I will try this and report back. Yesterday when I tried
lvextend on nala-var I was receiving a 0 PE available error, looks like I
definitely missed a step.



On Wed, Oct 31, 2012 at 9:54 AM, Howard Coles <[email protected]> wrote:

> You're just about there.
>
> All you have to do now is shrink /dev/mapper/nala-home's LV.
> lvreduce -L301G /dev/mapper/nala-home
> (the extra GB is so you have some extra room for the filesystem)
>
> you could have used lvreduce instead of resize2fs
> lvreduce -L300G -r /dev/mapper/nala-home
>
> you may think about resizing it back out and letting lvreduce do both at
> the same time so that you don't truncate your file system.
>
> Then you can extend the LV for nala-var if they are on the same Volume
> Group:
> lvextend -L+49G -r /dev/mapper/nala-var
> (size may need to be adjusted as it may not work out to exactly 50G, run
> pvdisplay again and multiply the "free PE" number and the "PE size number"
> and divide by 1024 and it should be about 49 GB).
>
> if the -r gives you trouble run it again with out it and then run:
> resize2fs /dev/mapper/nala-home
> and it will fill out the available space.
>
> I'm using Fedora 17 so you may want to look at the help for your distro
> for the switches lvextend --help or lvreduce --help.
>  On Oct 31, 2012 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
>> *
>> *
>> *Raymond Beaudoin*
>>
>>  --
>> 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
>>
>  --
> 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
>

-- 
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