Operating System - HP-UX
1825771 Members
2088 Online
109687 Solutions
New Discussion

Re: how to extend / (root) file system in hpux

 
avizen9
Esteemed Contributor

how to extend / (root) file system in hpux

I have installed a new server with hpux 10.20, but unfortunately /root file system is very less I would like to extend it, /(root) file system is in /dev/vg00/lvol3 and in vg00 still around 20 GB free space are there.
How to extend this file system,
Please somebody let me know
Thanks in advance.

13 REPLIES 13
Rasheed Tamton
Honored Contributor

Re: how to extend / (root) file system in hpux


You have to have an ignite tape (make_recovery -I) backup. Boot from the ignite tape and once you get the menu, you have the option to change the lvol size from the menu.

Regards.
Jeeshan
Honored Contributor

Re: how to extend / (root) file system in hpux

Hi

you need to go to single user mode with ignite backup, there you may extend the /root file system.
a warrior never quits
avizen9
Esteemed Contributor

Re: how to extend / (root) file system in hpux

i dont have ignite installed there, also dont have tape,
as i remember i have done it before with hpux -lm option with this option system will boot in maintanance mode and you can extend root file system. root file system will mount as /dev/root but at present its not working.. any other clue anybody.?
OFC_EDM
Respected Contributor

Re: how to extend / (root) file system in hpux

Are you sure you did that on 10.20?

My process was to ensure root was mirrored.

Then I'd break the mirror.

Then Re-install using Ignite to resize root.

If there was a problem I still had root on my mirrored disk. And could rebuild from there.

If it worked I'd re-mirror the disk with the new root onto the other disk.
The Devil is in the detail.
MarkSyder
Honored Contributor

Re: how to extend / (root) file system in hpux

If it's a new server, how about a rebuild? You should have the option to manually set the size of /.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
avizen9
Esteemed Contributor

Re: how to extend / (root) file system in hpux

Hello Mark,
rebuild is not solusioin if this requirement is with existing running server then what you will do.
better try to find out some solustion correct?
OFC_EDM
Respected Contributor

Re: how to extend / (root) file system in hpux

I think you should get ignite.

If you don't have tape drives then create an Ignite server which can store images of your HP-UX servers.

Mirror your root disk.

Then when you have to resize you can
1) break your mirror.
2) Boot off the ignite image stored on the ignite server.
3) Which will allow you to resize root.
4) Then re-mirror

Or update your HP-UX version. Don't the latest versions support extending root? I'm not certain as I haven't had the opportunity to try.

Updating your OS from 10.20 would be a good idea. I believe its no longer supported.
The Devil is in the detail.
Geoff Wild
Honored Contributor

Re: how to extend / (root) file system in hpux

Don't know if this will work for 10.20 (really - that is no longer supported!):

http://www.met.ca/itrc/index.php?option=com_content&task=view&id=89&Itemid=2

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sajjad Sahir
Honored Contributor

Re: how to extend / (root) file system in hpux

Dear avizen
for extending root file system u need ignite tool

thanks
Sajjad
Sp4admin
Trusted Contributor

Re: how to extend / (root) file system in hpux

Hi,

The only way to extend the /root file system is to use your ignite tape.

sp,
TDN
Advisor

Re: how to extend / (root) file system in hpux

hi,

Make sure that you have OnlineJFS.
swlist | grep -i onlinejfs

if /dev/vg00/lvol3 is mirrored in vg00.

- Break the mirror of /dev/vg00/lvol3 on disk 2
- Break the mirror of others LV on disk 1 in vg00
- extend /dev/vg00/lvol3 with lvextend and fsadm
- mirror back others LV to disk 1
- Break mirror of all LV on disk 2
- Mirror all LV including /dev/vg00/lvol3 from disk 1 to disk 2.

Check out with pvdisplay and lvdisplay.

Hope this help.
Mike Miller_8
Regular Advisor

Re: how to extend / (root) file system in hpux

Listen to the comments about ignite - they give very sound advise. One wrong move and it could take quite a while to recover. If you have an ignite tape - you can always recover.

Just a thought.
SKR_1
Trusted Contributor

Re: how to extend / (root) file system in hpux

AS Root FS is contiguous, I think you can try TDN solution, looking great option.

Try this.