Operating System - HP-UX
1848516 Members
3624 Online
104030 Solutions
New Discussion

Re: Extending mirrored /usr

 
AntBark
Occasional Advisor

Extending mirrored /usr

Hi
My /usr is 95% full and I have to install some patches. The /usr is mirrored on a seperate disk, how do I extend both (don't have Online JFS). Before I go ahead and extend, I see under /usr/lib the are directories with different revisions? (eg. X11, X11R4, X11R5, X11R6) maybe I can drop someting ?

/dev/vg00/lvol7 512000 485196 25189 95% /usr
8 REPLIES 8
Elmar P. Kolkman
Honored Contributor

Re: Extending mirrored /usr

You can clean some of these up if they are not installed with a depot. You can check this with:
swlist -l files | grep X11R4

If installed from a depotpackage, remove that package, not the files only.

Then, search for files named 'core' in /usr. And check if for instance /usr/local is large and on /usr, not a seperate lvol. It might be better to move that to a different volume then (also easier to do).

After that, check for free PE's on vg00. If there are, you're in business. Use this link to extend /usr or create a new lvol, add filesystem, temporarily mount, copy /usr/local (mind permissions!), do 'mv /usr/local /usr/local.old;mkdir /usr/local', umount your new filesystem and mount it under /usr/local, edit /etc/fstab, test working of commands and then remove /usr/local.old .
Every problem has at least one solution. Only some solutions are harder to find.
Hoefnix
Honored Contributor

Re: Extending mirrored /usr

If you do not have OnlineJFS, the /usr filesystem must be unused to extend it.

The easy way is to bring your system up in singleuser mode.
Then do a lvextend -L 1024M /dev/vg00/lvol7
and extendfs -F vxfs /dev/vg00/rlvol7

Then mount /usr to see if it is increased.

Regards,

Peter
Elmar P. Kolkman
Honored Contributor

Re: Extending mirrored /usr

Sorry, forgot to paste the link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=365251
Every problem has at least one solution. Only some solutions are harder to find.
AntBark
Occasional Advisor

Re: Extending mirrored /usr

thanx guys for the help so far, unfortunately /usr/local is not big.
Question: Will the lvextend and extendfs also extend the mirror?
G. Vrijhoeven
Honored Contributor

Re: Extending mirrored /usr

Hi,

Yes they will, you extend your lvol and if it is mirrored it will extend on both disks and there is only one filesystem.
PS you need space in both disks.

HTH,

Gideon
Elmar P. Kolkman
Honored Contributor

Re: Extending mirrored /usr

But without the OnlineJFS bundle, you'll have to reboot to single user mode to extend the filesystem. Or use the rc-script trick I posted in the link.
Every problem has at least one solution. Only some solutions are harder to find.
Ravi_8
Honored Contributor

Re: Extending mirrored /usr

Hi,

if you extend the /usr,it's copy will also get extended ( since it is mirrorred)
never give up
AntBark
Occasional Advisor

Re: Extending mirrored /usr

Thanx everyone - success !