1825793 Members
2259 Online
109687 Solutions
New Discussion

Re: root extend

 
SOLVED
Go to solution
kelvin567
Occasional Advisor

root extend

I need to extend lvol3(root) online.. what all steps do i need to perform...tnks in advance
12 REPLIES 12
Srikanth Arunachalam
Trusted Contributor

Re: root extend

Hi,

First, run
"lvextend -L /dev/vgNAME/lvolX"
to extend the logical volume. This can always be done while the filesystem is mounted.

If you have OnlineJFS installed, you can then run
"fsadm -F vxfs -b /mountpoint"
to extend the filesystem without umounting it.

If you don't have OnlineJFS, you'll have to umount the filesystem, run
"extendfs /dev/vgNAME/lvolX"
and then mount the filesystem again.

Thanks,
Srikanth
kelvin567
Occasional Advisor

Re: root extend

lvol3 is countigous volume we cant follow this process to extend it...
Pete Randall
Outstanding Contributor

Re: root extend

The only two ways to do this are going to involve going off line.

The first, and best, way is to use an Ignite make_tape_recovery tape to re-create vg00. This involves booting the machine from the tape drive, sizing your vg00 LVM layout, and restoring vg00 from the tape.

The second way is to shrink the file system that immediately follows lvol3, possibly /home, depending on your layout, then extending lvol3 and extending the file system.

Quite possibly the best way of dealing with this is to address why you would need to expand the / filesystem in the first place. It should be capable of being quite small and very static. If either of these conditions are not being met, then the filesystem is being mis-used. Clean out large files, core dumps, /tmp files, etc., etc. Check the /dev directory for regular files - there should be none.

In short, address the reason for the growth first before you consider growing the file system.


Pete

Pete
Eric SAUBIGNAC
Honored Contributor

Re: root extend

Hi Kelvin,

unfortunatly / (usually /dev/vg00/lvol3) MUST have contiguous extends.

Unless you have only /stand, swap and / on one disk of vg00 and others LV on an other disk, you CAN'T extend lvol3 in the way describes above.

The supported way to do this is to reinstall your system with an fresh ignite image.

Here is an idea to it online if you have sufficient free space on the disk in vg00. But probably an usupported way ;-)

- add a temporary disk in vg00
- with "pvmove", transfer all LV but lvol1, lvol2 and lvol3 to this new disk. (that is don't move lvol1, lvol2 and lvol3)
- extend lvol3 with "lvextend" and "fsadm -b"
- bring back all LV from the new disk to the main one.
- with vgreduce remove the temporary disk from vg00.

I think it should work

Hope this will help

Eric

kelvin567
Occasional Advisor

Re: root extend

Someone has published full procedure for root extension on forum. but i am unable to locate that tread...
JIJ_1
Frequent Advisor

Re: root extend

Hi Kelvin,

Since root lv is contiguous in nature , it cannot be extended easily. However there are some alternative methode to acheive this.
Make sure that u have "Online JFS installed" and working properly. Then execute "pvdisplay -v " , that will give the details of LE - LVOL mapping details. Note down the LV coming just after LVOL3 and move the physical extends of that Lv to a different location using "pv move command.
#pvmove -n

This will relase some contiguous space for root LVOL and can be extended using "lvextend" and "fsadm" command.
#lvextend -L
#fsadm -b M

After this you can move back the "pvmoved" lvol to the original disk using pvmove command by altering the source and destination disk.

Regards !
Jijeesh

Srikanth Arunachalam
Trusted Contributor

Re: root extend

hi,

Sorry, I missed the root disk information. (1) Intrupt boot sequence to goto single user mode.

(2) copy the /etc/fstab to /etc/fstab.backup.

(3) Either create a larger lvol and then copy the contents of existing root file system mount point as given in the below thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1130122&admit=-682735245+1196172097189+28353475

or

you can try the following

fsck -y /dev/vg00/lvol7
mount /dev/vg00/lvol7 /usr

lvextend -L <10000> /dev/vg00/lvol3
extend the fs
extendfs -F vxfs /dev/vg00/rlvol3
mount -a
reboot -rqs

Thanks,
Srikanth


Eric SAUBIGNAC
Honored Contributor
Solution

Re: root extend

Kelvin

the link given by Srikanth CAN'T work as the goal in this thread was to extend /opt, not /

More, the procedure he gives will not work as you have probably no extends available behind lvol3 ... you must free some space before.

If you want more details on the way to achieve online reconfiguration of lvol3, as I have suggested before, take a look at
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1096861

You can find more threads with "advanced search", then search for "pvmove lvol3", in HP-UX forums

Eric
kelvin567
Occasional Advisor

Re: root extend

hello eric u r right. n best thing is that i have succeeded in extending root filesyetm following ur method

tnks
Jannik
Honored Contributor

Re: root extend

Hey,

Geoff Wild have made a site for tips and tricks:
http://www.met.ca/itrc/

And this is the trick you need:http://www.met.ca/itrc/index.php?option=com_content&task=view&id=89&Itemid=2

This does not shed new light on the issue but anyway.
jaton
Geoff Wild
Honored Contributor

Re: root extend

Yes - here's the "not for the faint of heart" way to do it:

http://www.met.ca/itrc/index.php?option=com_content&task=view&id=89&Itemid=2

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.
Geoff Wild
Honored Contributor

Re: root extend

I see Jannik put the same as me - before I posted... :)

Also, here was I believe the first post I did on how to extend root live:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1081666

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.