Operating System - HP-UX
1752604 Members
4653 Online
108788 Solutions
New Discussion юеВ

/ and /var need to extend

 
SOLVED
Go to solution
gany59
Regular Advisor

/ and /var need to extend

Hi Techiees,

In the hp-ux 10.20 version server, we want to extend the root and /var file system , but online JFS is not there. In that server 2 disks are there, but one disk is configured as LVM disk and the another one is left as free, so can we extend the root and /var file system in the single user mode, since online JFS is not there.

And the root file sysetm is the contigous allocation right ? so its not possible to spread the root file system on the 2 PV's. Please adivce me on this.

Can we get the LVM commands like pvcreate, pvmove in the single user mode.

Please give ur valuable suggestion on this.

Thanks in advance..
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: / and /var need to extend

Hi:

Take an Ignite 'make_tape_recovery' backup and use it to cold-install your server. When you boot from the Ignite tape, choose the Advanced Installation Mode. Therein you will be able to choose (adjust) your filesystem sizes.

Regards!

...JRF...
gany59
Regular Advisor

Re: / and /var need to extend

ok, JRF..
but how can we add the disk in the existing LVM.

Could u tell me the clear view.
James R. Ferguson
Acclaimed Contributor
Solution

Re: / and /var need to extend

Hi (again):

> but how can we add the disk in the existing LVM.

As you already noted, the root filesystem (lvol3) has contiguous allocation.

You could circumvent this by 'vgextend'ing in your free disk and doing a 'pvmove' of lvol4 to it; potentially freeing physical extents immediately adjacent to lvol3.

In the absence of OnlineJFS, though, things become complicated by the need to unmount filesystem to extend them. In this case, that would force you to use LVM maintenance mode.

I would take a "safer" approach and use Ignite to cold-install a backup image as I first suggested. You simply specify multiple root disks if/as necessary.

Regards!

...JRF...
Johnson Punniyalingam
Honored Contributor

Re: / and /var need to extend

>>>And the root file sysetm is the contigous allocation right ?<<

Yes

As mentioned in the above post, using "Ignite is the best way to adjust size of " / hence its contiguous. on top of that you d'not have Online jfs,

>>Can we get the LVM commands like pvcreate, pvmove in the single user mode.<<

yes, you can.

boot into LVM maintenance mode:

hpux -lm


Example :-

mount manually /var /tmp /usr

# mount /dev/vg00/lvol4/ /usr .etc...

Problems are common to all, but attitude makes the difference
gany59
Regular Advisor

Re: / and /var need to extend

thanks for ur reply folks...

so how to proceed all these things..
is there any steps or any links u know to proceed further

Pls help me out on this...
Steven E. Protter
Exalted Contributor

Re: / and /var need to extend

Shalom,

It is the standard ignite recovery.

You see a prompt on console that gives you a chance to manually intervene and change configuration.

You press a key, get the Ignite Interface and make your changes on the disk/filesystem tab.

Create recovery tape:
http://docs.hp.com/en/B2355-90772/ch11s02.html

Recovery topics:
http://docs.hp.com/en/B2355-90772/ch11s14.html

Create archive via network or tape:
http://docs.hp.com/en/B2355-90772/ch11s04.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: / and /var need to extend

This document, though not about your specific situation, does a good job of documenting many of the steps involved in rebuilding a disk:

ftp://ftp.hpux.dk/unix/hpux/docs/When_Good_Disks_Go_Bad.pdf


Pete

Pete
Pete Randall
Outstanding Contributor

Re: / and /var need to extend

Sorry, that was a bad link. Maybe someone else has a current one because I can't find it just now.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: / and /var need to extend

Hi:

Pete was trying to offer:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Regards!

...JRF...