Operating System - HP-UX
1753768 Members
5249 Online
108799 Solutions
New Discussion юеВ

Re: Root File system extension prblm

 
dhanish
Regular Advisor

Root File system extension prblm

I am facing a problem that my / file system is full (its 140 mb in size as of now),I have online jfs installed.So at present i have 6024 mb free in my vg00 where / resides.But when i try to extent even to 150 mb (new size).its says not enough free PE available..failure possibly due to Contiguos aloocation policy or strict allocation policy.and i think theses two policies are their by default on / filesystem.Pls let me what can be done.
Never Say Die
6 REPLIES 6
Bill McNAMARA_1
Honored Contributor

Re: Root File system extension prblm

I don't think you can do it online...
well try!
lvchange -c n /dev/vg00/lvol3
ie change contiguous allocation policy to not contiguous.
Then lvextend -L 200 /dev/vg00/lvol3
bdf
fsadm -b 204800 /

Good luck

If fsadm doesn't do the trick, or if your systems doesn't boot after! just to be sure get ignite and iteract with install to increase pri swap, boot, root and filesystem type.. etc.

make_recovery -A -v -d /dev/rmt/#m

Later,
Bill
It works for me (tm)
Rainer von Bongartz
Honored Contributor

Re: Root File system extension prblm


have a look at this document

http://europe-support2.external.hp.com/cki/bin/doc.pl/sid=7a4c6f480c139c6189/screen=ckiDisplayDocument?docId=200000054893406

regard
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Ravi_8
Honored Contributor

Re: Root File system extension prblm

Hi,
HP doesn't advise to increase the / file system size. it can't be done since / is HFS. alternative way is to go for customized installation and assigning the / size as per requirement
never give up
Shahul
Esteemed Contributor

Re: Root File system extension prblm


Hi

Increasing root file system is some what risky, Because it is contigous, means its PEs should be bundled together. So if U want to extend root lv, Just after root lv nopthing should be there (PEs should be unallocated). Still U can do. But U should have enough free space in HDD. If U have more than 140 MB free space in VG00, Create a new lv with enough size by using this command.
#lvcreate -C y -r n -L xxx /dev/vg00
#newfs /dev/vg00/rlvolx

Now reboot the system, Go to ISL prompt and type
ISL>hpux -lm

Now system will come to MAintanence mode. Mount this newly created lvol as /newroot

Follow this procedure

#mkdir /newroot
#mount /dev/vg00/lvolx /newroot
#cd /
#find . -xdev -depth -print | cpio -pxdm /newroot
#lvrmboot -r /dev/vg00/"Current root lvol name"
#lvlnboot -r /dev/vg00/lvolx (lvolx is newly created lv)
#lvlnboot -B
#lvlnboot -v Now it should list the lvols of boot, swap, root lvols.

Then do a reboot. Ur system will come up with newly created root. Now U can remove old root file system.

This is one way, If U have some problem come back with more inputs.


Best of luck
Shahul
KapilRaj
Honored Contributor

Re: Root File system extension prblm

Do not try to change the contigeous policy of root lvol . it is not possible.

And shahul,

I agree with you but it seems you left out a bit in the last steps. Once lvrmboot -r is done, you hv to follow the entire lvlnboot options once again ie.

lvrmboot -r /dev/vg00/lvol3 (current root)
lvlnboot -r new lvol
lvlnboot -b boot lvol
lvlnboot -s swap lvol
lvlnboot -d dump lvol
lvlnboot -R

verify with lvlnboot -v

good luck nitin

kaps
Nothing is impossible
Shahul
Esteemed Contributor

Re: Root File system extension prblm


Hi

A small change in command what I have mentioned above. use lvlnboot -R inplace of lvlnboot -B.

What Kapil told is right.

Once U user lvrmboot -r U will have to use
lvlnbbot -b
lvlnboot -r
lvlnboot -s
lvlnboot -d


Kapil: Thanks for reminding