HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

lvextend

 
fizan
Super Advisor

lvextend

hi Team,

actually i got a mount point named, /backup & i am going to backup it using tar, then i want to increase the lvsize in tat mount point, & rename it as /backup1 its under mirroring, & current size is 3gb want to increase it to 6gb. kindly help me..
9 REPLIES
Sharma Sanjeev
Respected Contributor

Re: lvextend

Hi

To extend File system first you need to check for free PE in VG, if you have free PE in VG than you can extend it.If you have online JFS installed no need to unmount

lvextend -L 6000 /dev/vgname/lvname
than fsadm

For renaming
you need to create directory called /backup1

copu all data from /backup to /backup1

umount /backup
edit /etc/fstab change /backup to /backup1
mount -a

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Mel Burslan
Honored Contributor

Re: lvextend

actually it depends if it is mirrored or not. If it is mirrored and if the strict distribution (original and mirror copies on different physical spindles) is turned on, in order for you to extend this filesystem from 3 to 6 GB, you will need to have 3GB free space on each of the spindles. Assuming you have this free space, the command given in the first post will do the trick. This will extend the volume, not the filesystem. In order to extend the filesystem, provided you have online JFS license:

fsadm -F vxfs -b 6000M /backup

if not

umount /backup
extendfs -F vxfs /dev/vg01/rlvol3 # adjust vg and lv names acc. to your system

The fastest way to rename it from /backup to /backup1 goes through taking the mountpoint offline:

mkdir /backup1
umount /backup
mount /dev/vg01/lvol3 /backup1 # change vg and lv according to yours

at this point, don't forget to modify /etc/fstab, if this is a filesystem to be mounted at the boot time.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Roopesh Francis_1
Trusted Contributor

Re: lvextend

>@sanjeev..copu all data from /backup to /backup1
why we need to copy all the data from /backup to /backup1 for changing the mount point.
Sharma Sanjeev
Respected Contributor

Re: lvextend

Hi frans2008

How you will get in new mount point without copying the data ?

Simply mounting with it on new mount point you will not get data :-)

Segards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Roopesh Francis_1
Trusted Contributor

Re: lvextend

Sanjeev,

You meant say that data is residing on mount point instead of file system??????
Sharma Sanjeev
Respected Contributor

Re: lvextend

Hi Frans2008

If you have any test box, please check :-)

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Sharma Sanjeev
Respected Contributor

Re: lvextend

Hi frans2008

My Mistake, I read question wrongly
you are correct, I thought we have created new LV as well and than mounting it on another mount point :-)

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Roopesh Francis_1
Trusted Contributor

Re: lvextend

Sanjeev,
I donâ t wanted to check..there is no need of copy file system for changing mount point.
just unmount file system and mount it on new mount. All the data will be available under new mount point
fizan
Super Advisor

Re: lvextend

Thanks.