1832085 Members
2984 Online
110037 Solutions
New Discussion

Enlarge System FS

 
Nicky_5
Regular Advisor

Enlarge System FS

Hi,

Can someone tell me how i can enlarge system related file systems?

I know for other data FS we have to unmount it enlare it then remount it, but how do i do this for the filesystems such as /var /usr /tmp /opt etc?

13 REPLIES 13
Robert-Jan Goossens
Honored Contributor

Re: Enlarge System FS

Hi Nicky,

You will need to boot in single user mode.

If you add your system type, we can give you the right procedure.

# model

Best regards,
Robert-Jan
MarkSyder
Honored Contributor

Re: Enlarge System FS

Unless you're using online JFS you'll have to restore from ignite and increase the sizes as part of the restore.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Nicky_5
Regular Advisor

Re: Enlarge System FS

Hi,

How do i boot in single user mode?
Also i do not have a console. I normally connect to them via telnet or ssh from my laptop to do daily activities.
If i boot in single user mode will i be able to connect form my laptop?

Please see the uname -a output:
uname -a
HP-UX devint B.11.11 U 9000/800 196434615 unlimited-user license

Nicky_5
Regular Advisor

Re: Enlarge System FS

sorry, forgot to mention the model is:

9000/800/L3000-8x
A. Clay Stephenson
Acclaimed Contributor

Re: Enlarge System FS

I assume that you do not have OnlineJFS which would allow you to do this with the filesystems mounted. The key to doing what you want to do is to bring the system up in sinle-user mode (not the same as an init 1). All the commands you need are in /sbin and are statically linked so that /usr (with it's shared libraries) is not needed.

Reboot
Interrupt the boot process.
BOOT PRI
Interact with ISL? Y
hpux -is

This will bring you up in single-user mode as root with / mounted.

You then do an lvextend to grow the LVOL
and then an extendfs command to expand the filesystem.

Man lvextend, extendfs for details. Before doing any of this, do a vgdisplay -v /dev/vg00 to make sure that you have enough space. I would also do a bdf | lp beforehand so that you have the relavant data before you before you go into single-user mode.
If it ain't broke, I can fix that.
Nicky_5
Regular Advisor

Re: Enlarge System FS

Hi,

Can i boot into single user mode if i dont have a console?
Patrick Wallek
Honored Contributor

Re: Enlarge System FS

No, you can't. You must have some sort of console. Lan console, web console, plain ole terminal console, something.....
Nicky_5
Regular Advisor

Re: Enlarge System FS

Hi,

Can you tell me how i can set up a console for my machine?

A. Clay Stephenson
Acclaimed Contributor

Re: Enlarge System FS

In a word, no. And while I'm at it --- shame on you for not having a console. Oh, now I understand, you weren't planning on having any emergencies. A good plan if it works.
If it ain't broke, I can fix that.
Nicky_5
Regular Advisor

Re: Enlarge System FS

Hi,

To say something in my defence:
I have recently joined a company, all these machines were set up by an administrator before me.
I have an AIX background and i am not familliar with my ways around HP.
Robert-Jan Goossens
Honored Contributor

Re: Enlarge System FS

Nicky,

Ask your manager for some extra budget (this is money very well spend) you could even buy these consoles on the used parts market.

I believe the C1099A is one of lower priced consoles.

Hope this helps,

Robert-Jan
Peter Nikitka
Honored Contributor

Re: Enlarge System FS

Hi,

in the case of a remote administation where no access to a console was available, I used this method:
- enlarge LVOL (of /opt e.g.) via lvextend
- saved /etc/bcheckrc
- edited bcheckrc to
-- umount the requested filesystem unconditinally (I think this was for /var only but doesn't harm)
-- add extendfs - command
-- mount requested filesystem
- rebooted
- changed bcheckrc to original

If you are an unexperienced admin, I would not do that - in case of errors in bcheckrc you probably need a console to recover...

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
John Jimenez
Super Advisor

Re: Enlarge System FS

Hi Nicky,
The previous Admin must have had something?
Maybe your rack has a management processor that you can telnet into? From the management processor you can log in and do everything that you can do from a console. Our system did not come with a serial console either. We did not feel comfortable not having a serial connection so we got this console.

http://h18000.www1.hp.com/products/thinclients/index_t5000.html

I still use the management processor most of the time, but the console gives me piece of mind, because I do not have to rely so much on power and the network
Good luck...
Hustle Makes things happen