Operating System - HP-UX
1833776 Members
2241 Online
110063 Solutions
New Discussion

How to extend the logical volume

 
SOLVED
Go to solution
chandu_2
Occasional Advisor

How to extend the logical volume

Hi,
I am newbie and trying to extend my existing logical volume. Any helps or suggestions is greatly appreciated.
Thankyou
chandu
8 REPLIES 8
steven Burgess_2
Honored Contributor
Solution

Re: How to extend the logical volume

Hello

I have attached a guide which should cover most things for you including extending the lvol with and without online jfs

HTH

Steve
take your time and think things through
Steven E. Protter
Exalted Contributor

Re: How to extend the logical volume

lvextend -L /dev/vg01/lvol1 /dev/dsk/c1t1d0

then extendfs to actually extend the filesystem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jim Turner
HPE Pro

Re: How to extend the logical volume

The lvextend can be done without umounting the affected filesystem. The extendfs will require a umount. The fsadm will extend the filesystem without a umount if you have OnlineJFS.
Sridhar Bhaskarla
Honored Contributor

Re: How to extend the logical volume

Hi Chandu,

Since you are new to HP-UX Administration, I suggest you read the following manual

http://docs.hp.com/hpux/onlinedocs/5187-2216/5187-2216.html

Look at "Managind Disks and Files" to get an idea about LVM and then try the instructions given there.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Geoff Wild
Honored Contributor

Re: How to extend the logical volume

Example, increase filesystem /app on /dev/vg01/lvol1 to 2GB

lvextend -L 2048 /dev/vg01/lvol1

fsadm -b 2048M /app


That's with online JFS - else you need to umount it first, then extendfs instead of fsadm.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sยภเl Kย๓คг
Respected Contributor

Re: How to extend the logical volume


If u want to extend online JFS

#lvextend -L 4096 /dev/vg04/lvol1 /dev/dsk/c5t10d0
#fsadm -b 4096 /u3

If u are extending otherthan OL JFS

#unmount /dev/vg04/lvol1
#lvextend -L 4096 /dev/vg04/lvol1 /dev/dsk/c5t10d0

#extendfs -F /dev/vg04/rlvol1
#mount /dev/vg04/lvol1 /u3

regards
SK



Your imagination is the preview of your life's coming attractions
chandu_2
Occasional Advisor

Re: How to extend the logical volume

Thank you all for the help and suggestions.
chandu_2
Occasional Advisor

Re: How to extend the logical volume

Thank you all again for the suggestions, I was able to complete the task successfully.
chandu