Operating System - HP-UX
1753947 Members
7686 Online
108811 Solutions
New Discussion юеВ

Extend / mount point (only 1 disk)

 
Biker007
Advisor

Extend / mount point (only 1 disk)

Hi all,
I have checked some posts but I didn't find the one adapted to my case...
I have a RP3440 with only 1 disk.
I would like to extend the / mount point (lvol3, vg00).
I thought I could do it using ILO (Management Processor) but the fact is that disk management is not available at this step.
It has to be done before booting the system (as for Linux system when you boot from a CD and use tool like fdisk) but I don't know how to complete this action on a HP-UX system.
Could you please help me.
Regards

Eric
18 REPLIES 18
IT_2007
Honored Contributor

Re: Extend / mount point (only 1 disk)

you can't extend it on the fly at all. You need to re-ignite the box and change size during recovery of the Ignite install menu.

1.Take Ignite backup on tape or on to Ignite
2. Boot the system either by boot helper or tape
3. Change settings during recovery process.
Arunvijai_4
Honored Contributor

Re: Extend / mount point (only 1 disk)

Hi Eric,

Only way is to Reignite your system. Or there is an unsupported way to extend (I read in this forum)


1. Find out the next logical volume to your root file system. Say lvol4.
2. Reduce the mirrors on lvol4.

lvreduce -m 0 /dev/vg00/lvol4 /dev/dsk/cxtydz

where cxtydz is the primary disk. This will free up space after lvol3, your root logical volume.

3. Now you can extend root as it has the contiguous space available.

lvextend -L new_size_in_mb /dev/vg00/lvol3
fsadm -b m /

This should extend the filesystem.

4. Extend the mirror back to primary on lvol4.

lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/cxtydz

You may have to turn-off "strict" on lvol4 if it gives you any error.

If you don't have onlineJFS or if you have any doubts, use make_tape_reocvery process.

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
Biker007
Advisor

Re: Extend / mount point (only 1 disk)

Thanks for your quick answer.
In fact, I'd like to install ignite and / is too small...
That's why I would like to extend the / mount point.
Biker007
Advisor

Re: Extend / mount point (only 1 disk)

There is no mirroring on the disk at the moment and there is only one disk.

(By the way, when you do a lvreduce, it does not reduce the lvol4 space at the end, isn't it?
If the space was reduced at the beginning of lvol4, I could lvextend lvol3 but I think it is not the case unfortunately...)
IT_2007
Honored Contributor

Re: Extend / mount point (only 1 disk)

Don't agree with Arunvijai post. / won't be extendable the way he defined. It has to be strict and contiguous logical and physical extents.

Even if you free up lvol4, you won't be able to know whether they freed up at the beginning or at the end.

You have to use Ignite recovery option.
IT_2007
Honored Contributor

Re: Extend / mount point (only 1 disk)

Arun,

It won't work even if you turn off "strict" after reducing mirror. Not only on / , it won't even work on any other logical volume which was mirrored and strict when it was created. Tested two days back and couldn't do it other than igniting it.
Biker007
Advisor

Re: Extend / mount point (only 1 disk)

Is there a way to install ignite using another directory? because I can't install the depot as it uses the / by default.
Thanks for your help
IT_2007
Honored Contributor

Re: Extend / mount point (only 1 disk)

yes. you can install. Just check where you have enough space. You need to install Ignite recovery commands fileset only. Don't have to install whole Ignite product.

use swinstall --> select source

then go to actions ---> change target and chose directory wherever you have enough space.
Marvin Strong
Honored Contributor

Re: Extend / mount point (only 1 disk)

With a single disk you have no option but to rebuild the machine.

with Online JFS, and 2 disks you could extend it.
you can pvmove each lvol over to the other disk. when you get to lvol3 you can then extend lvol 3 on the new disk as it will be contiguous, then continue with your pvmoves of the rest of the lvols.

I have done this many times.

But you stated you have 1 disk so you have no option but to rebuild.