Operating System - HP-UX
1751797 Members
5633 Online
108781 Solutions
New Discussion юеВ

Re: To extend root FS in preceding lvols

 
Saurabh Rawat
Advisor

To extend root FS in preceding lvols

hi alll

I have a problem that my root fs is on lvol4 and swap is on lvol3 so I accidently increased the lvol3 to lvol4 which has no problems but now I want that space back on to root FS which is lvol4 but since it has contiguous policy so its not taking the space from the lvols preceding to the lvol4 rather its trying to take sapce from the next lvols e.g 5,6,7. Can anybody through light so that I can recover the free space from lvol3 and increase the root lvol4.

Your suggestions will be appreciated.

Thanks in Advance!!!
Insanity is often the logic of mind overtasked!!!
12 REPLIES 12
sujit kumar singh
Honored Contributor

Re: To extend root FS in preceding lvols

it is amazing can u please immediately post the vgdisplay -v vg00 , lvlnboot -v and bdf O/ps of the server. That will really be Helpful.
also what is the OS Version is this 11.31 of HP-UX?
Saurabh Rawat
Advisor

Re: To extend root FS in preceding lvols

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 2097152 335048 1748424 16% /
/dev/vg00/lvol1 1835008 229048 1593504 13% /stand
/dev/vg00/lvol16 1048576 26025 958692 3% /volumes/v1
/dev/vg00/lvol15 1048576 231712 765881 23% /volumes/tsu
/dev/vg00/lvol14 524288 20590 472343 4% /volumes/nsr
/dev/vg00/lvol13 1048576 389758 617684 39% /volumes/gems
/dev/vg00/lvol12 524288 183123 319943 36% /volumes/esm
/dev/vg00/lvol10 8388608 3310456 5039032 40% /var
/dev/vg00/lvol11 10485760 19106 9812560 0% /var/adm/crash
/dev/vg00/lvol9 10485760 2730416 7694832 26% /usr
/dev/vg00/lvol8 1048576 20288 1021024 2% /tmp
/dev/vg00/lvol7 10485760 4967904 5474768 48% /opt
/dev/vg00/lvol6 131072 8680 121544 7% /home
/dev/vg00/lvol5 131072 1144 121810 1% /appl



HP-UX B.11.23 U ia64 3734274597


Insanity is often the logic of mind overtasked!!!
sujit kumar singh
Honored Contributor

Re: To extend root FS in preceding lvols

suggested to take an Ignite backup of the system and then do a Ignite restore to Reinstall on the system with the desired root disk configuration.
Saurabh Rawat
Advisor

Re: To extend root FS in preceding lvols

I dont think so!!!
Insanity is often the logic of mind overtasked!!!
sujit kumar singh
Honored Contributor

Re: To extend root FS in preceding lvols

sorry wriring all these to an expert.
Saurabh Rawat
Advisor

Re: To extend root FS in preceding lvols

no id didnt mean that ... I wanted to say I cant ignite for this system now...
Insanity is often the logic of mind overtasked!!!
Ganesan R
Honored Contributor

Re: To extend root FS in preceding lvols

Hi Saurabh,

The only recommanded way to extend the root filesystem is taking ignite backup and restore it with modified LV sizes. There are certain ways to extend it without ignite, but it is with your own risk.

You cannot move around the lv's to reduce the space and assign it to root lv, since root lv needs contigious space.

Hope this helps..
Best wishes,

Ganesh.
sujit kumar singh
Honored Contributor

Re: To extend root FS in preceding lvols

r u using lvol2 and lvol3 both as swap?
if yes what are the sizes of them?
Pete Randall
Outstanding Contributor

Re: To extend root FS in preceding lvols

Could you post the output of "lvdisplay /dev/vg00/lvol3",please. I don't see how you could have extended it if it was defined as strict/contiguous as it should have been.


Pete

Pete