Operating System - HP-UX
1834208 Members
2427 Online
110066 Solutions
New Discussion

Re: Extending the rootvol

 
shashi kanth
Super Advisor

Extending the rootvol

I have 2 local disks, while installing HP-UX 11.23 PA, i have used only first disk with VxVM/VxFS. Now my root partition is full, so i have added second disk to rootdg, and now i am trying to extend rootvol.

#./vxresize -f -g rootdg rootvol 25G
VxVM vxassist ERROR V-5-1-638 Failed to get a contiguous extension of volume rootvol
VxVM vxresize ERROR V-5-1-4703 Problem running vxassist command for volume rootvol, in diskgroup rootdg

The command is throwing the above message.

#./vxresize -f -g rootdg rootvol 25G
VxVM vxassist ERROR V-5-1-638 Failed to get a contiguous extension of volume rootvol
VxVM vxresize ERROR V-5-1-4703 Problem running vxassist command for volume rootvol, in diskgroup rootdg


Any help here?

Is it not possible to extend ?
8 REPLIES 8
shashi kanth
Super Advisor

Re: Extending the rootvol

I have another box with LVM, after adding the 2nd disk to vg00, when i try to extend a logical volume where my "/" is mounted upon, i am receiving the bellow error.


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


Hash_1
Advisor

Re: Extending the rootvol

On the LVM box, doesn't seem to be enough physical extents, what does the following command show you:

# vgdisplay vg00

Likely new physical volumes have to be added to vg00.
TY 007
Honored Contributor

Re: Extending the rootvol

Bill Hassell
Honored Contributor

Re: Extending the rootvol

> Is it not possible to extend ?

Correct. You cannot extend the root filesystem because it must remain contiguous, that is, every extent must be adjacent. The root filesystem is unique because of boot requirements so it should be carefully managed, just like /var. The only supported way to extend the root filesystem is to use your latest Ignite backup tape to reinstall HP-UX on your boot disks. But unless you have dozens of volume groups and/or thousands of LUNs and alternate links to add, the / filesystem won't have to be recreated. Find out where the unusual amount of space is being consumed:

# du -kx / | sort -rn | head -20

Only two filesystems should be at the top: /etc and /sbin. If /dev is more than 50-100 KB then the root user made a spelling error with a backup command. Find the error with:

# find /dev -type f

There must be no regular files in /dev. If /dev is OK, then look at / which should have only directories present. Unfortunately, root's $HOME is there by default so a lot of junk appears in /. To check if there are any files in /, use:

find /* -prune -type f

Regular files, especially big files, do not belong in the / directory.

Now look at any directories that do not begin with /sbin or /etc.


Bill Hassell, sysadmin
Hasan  Atasoy
Honored Contributor

Re: Extending the rootvol

one of the common errors that fill the root file system is creating a directoy and putting some files there and mounting a fs to that directoy. unless you unmount the fs you cannot see that files, but that files fills up /. in order to see such a schnerio you must compare bdf and du -sk /
Mathmad
Dennis Handly
Acclaimed Contributor

Re: Extending the rootvol

>mathmad: unless you unmount the fs you cannot see that files

You can also see these files by exporting and mounting the underlying directory on another machine.
AwadheshPandey
Honored Contributor

Re: Extending the rootvol

For Vxvm, See this
http://seer.support.veritas.com/docs/231559.htm
and for LVM use ignite-ux to extend root file system.
It's kind of fun to do the impossible
wittie
Frequent Advisor

Re: Extending the rootvol

as the root LVs need to be contiguous, it is not that simple to extend the root /. I'm not saying it's impossible but you have to be extremeley careful, otherwise it may lead to an unbootable system.

One supported way to extend is to take a backup of the vg00 configuration with Ignite and to restore it back. During restoring you will be prompted a window where you can define new size of root (/).