1826282 Members
3887 Online
109692 Solutions
New Discussion

Re: lvextend

 
SOLVED
Go to solution
Idham
Frequent Advisor

lvextend

Hi,

If we want to lvextend on mirrored /home filesystem...
do we need to unmirror the filesystem 1st and mirror back later..?
or just lvextend and follow by fsadm...?


Thanks in advance
4 REPLIES 4
Jeeshan
Honored Contributor
Solution

Re: lvextend

no need actually. just follow the steps bellow

#lvextend -L /dev/vg00/

#fsadm -F vxfs -b M /home
a warrior never quits
SKR_1
Trusted Contributor

Re: lvextend

No. you dont need to unmirror the /home FS

lvextend -L (newsize in MB )M lvolname
fsadm -F vxfs -b (newsize in MB)M /home

Dont forget to give capital M character alongwith newsize.

Thanks
Idham
Frequent Advisor

Re: lvextend

Thanks
Cifs 9000
Advisor

Re: lvextend

Below is a quick guide to extend an LVM with a VXFS Filesystem.

1. Verify OnLineJFS is installed
# swlist -l product | grep -i vxfs
# swlist -l product | grep -i online
Look for OnlineJFS or AdvJournalFS
2. It is a good practice to defrag the filesystem first before extending
# fsadm -d - D -e - E /mountpoint

3. Determine the Logical Volume where the filesystem is mounted.
# bdf /mountpoint
Example:

# bdf /var/adm/crash
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lv_crash 5357568 2266637 2897770 44% /var/adm/crash

4. Obtain the current size of the Logical Volume (Mbytes)
# lvdisplay /dev/volumegroup/logicalvolume
Example:

# lvdisplay /dev/vg00/lv_crash
â Logical volumes â
LV Name /dev/vg00/lv_crash
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 5232
Current LE 327
Allocated PE 654
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

5. Our current size is 5232 Mbytes. Let us say that we will extend the filesystem by 100 Mbytes. Get the sum of the current size and the size to be added. This will add to 5332 Mbytes. Take note of this.

6. Adjust the size of the Logical Volume.
# lvextend -L new_size_in_mbytes
Example:

# lvextend -L 5332 /dev/vg00/lv_crash
Logical volume â /dev/vg00/lv_crashâ has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

7. Adjust the size of the Filesystem
# fsadm -b new_sizem /mountpoint
Example:

# fsadm -b 5332m /dev/vg00/rlv_crash
fsadm: /etc/default/fs is used for determining the file system type
UX:vxfs fsadm: INFO: V-3-23585: /dev/vg00/rlv_crash is currently 524288 sectors - size will be increased

8. Verify new size of the filesystem
# bdf /mountpoint