Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extending the ROOT FILESYSTEM? 1

Status
Not open for further replies.

peruano13

Technical User
Aug 24, 2000
1
US
I am trying to extend the root "/" filesystem from 140Mb to 500Mb on an HP D230-1way (loaded with 11.00). I have entered the system in Single User Mode and have unmounted all the file sytems. The only one still mounted is the root FS (FS is in use). I used the command:
# lvextend -L 500 /dev/vg00/lvol4

I get the message:

lvextend: Not enough free physical extents available.
Logical Volume "/dev/vg00/lvol4" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy.

I have tried using the command LVCHANGE to change the "contiguous and strict" variables, but this message comes up:

Can not change to non-contiguous allocation policy
Logical Volume "/dev/vg00/lvol4" must be contiguous.

Can anyone help?
 
More information is needed.

What is the current configuration of /dev/vg00/lvol4 (results of lvdisplay command?)

What is the makeup of /dev/vg00 (vgdisplay -v /dev/vg00?)

 
Hi there!
I'm new at HP-UX & I'm having the same problem. Basically I want to extend '/' & I am getting the same error. What info should I be looking for in the configuration of lvdisplay & the makeup of vgdisplay? Thank you so much, I appreciate the help.
 
Hi ,

You must change the policy allocation by
vgchange ( see man page for use and option )
to get a non contiguous allocation.
And do a lvextend after that.

Have a nice day
Leo-Steph ;-) !
 
Hi Peruano,
to extend contineous disk space you have to reduce swap space

Size of /dev/vg00/lvol1 is A (boot or /stand or /dev/vg00/lvol1)

Size of /dev/vg00/lvol2 is B (swap or /dev/vg00/lvol2)

You wanna increase size of lvol1 from A to A+X (where X is not more than B - "physical memory installed in your machine")

Basically we have to decrease size of swap to increase boot as they are contigous.


Boot your machine in LVM maintenance mode
(hpux -lm at ISL>)

#rm /etc/mnttab
#vgchange -a y /dev/vg00
#lvrmboot -r /dev/vg00
#lvremove /dev/vg00/lvol2
#lvextend -L "A+X" /dev/vg00/lvol1
#extendfs /dev/vg00/rlvol1
#lvcreate -L "B-(X+10)" -C y -r n -n lvol2 /dev/vg00
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#reboot -r

You have your / extended now

Hi Mike We might need FAQ out of this. ;-)

Patel
 
Hi Peruano,
to extend contineous disk space you have to reduce swap space

Size of /dev/vg00/lvol1 is A (boot or /stand or /dev/vg00/lvol1)

Size of /dev/vg00/lvol2 is B (swap or /dev/vg00/lvol2)

You wanna increase size of lvol1 from A to A+X (where X is not more than B - "physical memory installed in your machine")

Basically we have to decrease size of swap to increase boot as they are contigous.


Boot your machine in LVM maintenance mode
(hpux -lm at ISL>)

#rm /etc/mnttab
#vgchange -a y /dev/vg00
#lvrmboot -r /dev/vg00
#lvremove /dev/vg00/lvol2
#lvextend -L "A+X" /dev/vg00/lvol1
#extendfs /dev/vg00/rlvol1
#lvcreate -L "B-(X+10)" -C y -r n -n lvol2 /dev/vg00
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#reboot -r

You have your / extended now

Hi Mike We might need FAQ out of this.
Patel
 
Hi Everyone,

Previous answers are far too complex.....

1 - install Ignite UX - free from Applications CD, or download from 2 - make_recovery -p -A -d /dev/rmt/tape_device
3 - Modify the /var/opt/ignite/recovery/config.recover file

root is always lvol3, find lvol3 and change the size in the config.recovery file, making sure that you have enough free space in vg00, you could shrink one of the other lvols to increase root, but don't shrink anything smaller than you have data for it.

4 - make_recovery -r -d /dev/rmt/tape_device

This is one of the few HP recommended methods, further description is in document KBRC00006582 on the ITRC.

I would check first whether you really need to increase root, have you core files existing in there, or any other unwanted files, one place that gets everyone, is that someone will write a backup to /dev/device_that_doesn't_exist and this file never gets noticed

Regards
Clare
 
Another "gotcha" on filling up /root: if you have a filesystem that with a mount point that is two directories deep (for example, the filesystem is /data/myapp). If someone inadvertently puts lots of files in /data instead of /data/myapp, root will fill up.
 
Thanks a ton to all of you! It helped me quite a bit. Kudos!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top