Operating System - HP-UX
1833784 Members
2189 Online
110063 Solutions
New Discussion

How can I extend my root file system

 
SOLVED
Go to solution
darkdream
Regular Advisor

How can I extend my root file system

I used the command:
lvextend -L 200 /dev/vg00/lvol3
but the system gives the error:
not enough physical extents.

but when I checked the unused disk space : lvdisplay -v vg00
It shows that "available PE 250"

so what can I do ?

and I can extend the non-root volume .
8 REPLIES 8
Clemens van Everdingen
Honored Contributor

Re: How can I extend my root file system

Hi,

How about your max PE per PV ?

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Michael Tully
Honored Contributor
Solution

Re: How can I extend my root file system

Hi,

You cannot extend the root filesystem in
this manner. The only way to do it is
from the booting of an ignite tape and
extending that way. To create an ignite
tape:

# /opt/ignite/bin/make_tape_recovery -x inc_entire -I -v -a /dev/rmt/0mn

Unfortunately the root filesystem must be
contiguous and cannot just be extended
like any other.

If you don't have ignite loaded, it can
found on your appplication CD set or it
can be downloaded from
http://www.software.hp.com/products/IUX/index.html

HTH
-Michael
Anyone for a Mutiny ?
Clemens van Everdingen
Honored Contributor

Re: How can I extend my root file system

Hi,

On second thought, it is not possible to extend this fs this way.
You will have to use ignite to backup your system and after backup boot from tape to install the system from tape again.
Use the -i optioin to make the recovery tape interactive so you will be able to change the file system size.

If you don't have ignite or never used it see:
http://www.software.hp.com/products/IUX/

Suc6.
C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
John Carr_2
Honored Contributor

Re: How can I extend my root file system

Hi

to do this you must use ignite backing the system up to a tape then restoring with a larger file system.

/opt/ignite/bin/make_recovery -p -A

edit the config.recover file to increase the size of the root file system.

/opt/ignite/bin/make_recovery -r

once the tape has finished,
halt the system
boot from tape

wait for restore to finish

all done.

cheers
John.

darkdream
Regular Advisor

Re: How can I extend my root file system

Thanks very much and I'll try later.
Vijeesh CTK
Trusted Contributor

Re: How can I extend my root file system



hi

One more thing u can do ( this is not recommended). first u take a ingite backup..

what u do is

FInd out what is there in lvol4.. if it is a filesystem.. move that into another filsystem..and then remove that..

u may be knowing that for root filesystem the filesystem shud be contigous..
if u remove the lvol4 u will get free contigous space..then u have to reboot the system and boot in lvm maintanence mode...
lvextend and extendfs ..after that u have to reboot the system with reboot -n option..( reboot without sync)
after rebooting in ur bdf o/p u can see instead of /dev/vg00/lvol3 /dev/root
go to dev dir and delete root and reboot again.. now u can see in bdf as /dev/vg00/lvol3 mounted as /


try this...

Vijeesh CTK
Aaron Carter
New Member

Re: How can I extend my root file system

Hi,

When the config.recover file is modified... should this be done prior to creating the ignite tape or afterwards?

Thanks.
John Carr_2
Honored Contributor

Re: How can I extend my root file system

it can be either you can do make_tape_recovery in preview mode then edit the system file or when recovering the tape interact and specify new file system size

:-) John.