Operating System - HP-UX
1833784 Members
2274 Online
110063 Solutions
New Discussion

Re: 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.
Biker007
Advisor

Re: Extend / mount point (only 1 disk)

Thanks to all
^^
I think I will go forward with that
IT_2007
Honored Contributor

Re: Extend / mount point (only 1 disk)

Marvyn,

Would you please explain.
======================
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.
=====================

Suppose I have vg01 with 4 lvols and all of them created with "strict" policy and mirrored. If I want to extend lvol2 then how would I do that? Please explain.
Biker007
Advisor

Re: Extend / mount point (only 1 disk)

Changing ignite target directory during installation did not solved the problem. I have this error:

ERROR: Ignite-UX cannot be installed in an alternate root environment

Apparently, Ignite software need to be installed in /

Any idea?
TX
IT_2007
Honored Contributor

Re: Extend / mount point (only 1 disk)

try this way:

swinstall -s server:/depot/Ignite-UX -t localhost:/opt/ignite \*;

Assuming your Ignite software at server:/depot directory.

Assuming /opt/ignite is having enough space to install.
IT_2007
Honored Contributor

Re: Extend / mount point (only 1 disk)

sorry for the typo..

It should be like this:

swinstall -s server:/depot/Ignite-UX @localhost:/opt/ignite \*;

Marvin Strong
Honored Contributor

Re: Extend / mount point (only 1 disk)

IT 2007
Suppose I have vg01 with 4 lvols and all of them created with "strict" policy and mirrored. If I want to extend lvol2 then how would I do that? Please explain.

I'll assume vg01 is 2 disks and you have enough space to extend. and your lvols are named 1-4 and you have online jfs

1> break the mirror
2> pvmove lvol1 newdisk
3> pvmove lvol2 newdisk
4> lvextend -L new size lvol2
5> fsadm lvol2's filesystem
6> pvmove lvol3
7) pvmove lvol4
8> remirror

IT_2007
Honored Contributor

Re: Extend / mount point (only 1 disk)

Marvin,

I need to turn off "strict" policy for all lvols, correct? then follow your steps.

Thanks,
IT_2007.
Marvin Strong
Honored Contributor

Re: Extend / mount point (only 1 disk)

you should not need to disable strict because none of the logical extents mirrors will be sharing the same physical volume.
MarkSyder
Honored Contributor

Re: Extend / mount point (only 1 disk)

I think people are muddying the waters by talking about mirrordisk - this is a single disc system.

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