Operating System - HP-UX
1826332 Members
3444 Online
109692 Solutions
New Discussion

Re: Increasing / with mirroring

 
SOLVED
Go to solution
dictum9
Super Advisor

Increasing / with mirroring

I have an A class running 11.11.

I have the / partition too small. I would like to extend it. I understand it's contigious with no easy way to increase it. The official way is to Ignite it and restore it, during which to increase it.

Now I have a 2nd unused disk. I have both Online JFS and Mirror-UX installed. Can someone please post instructions for accomplishing this change with Mirror-UX? I.e. Mirror to the second disk, get to lvol3, break the mirrors, increase lvol3 on 2nd disk, then mirror lvol4, etc. Then break the mirrors and mirror it back where disk 2 overwrites disk 1.

Am I missing something, can this be done?




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.
8 REPLIES 8
dictum9
Super Advisor

Re: Increasing / with mirroring

P.S.

The second part of the post is a comment from another thread.

Pete Randall
Outstanding Contributor
Solution

Re: Increasing / with mirroring

I suppose it is theoretically possible to do as you propose, that is to shrink the following LV, thus allowing / to extended contiuously.

I think I would prefer the known safety of doing this via Ignite, taking my backup, rebuilding vg00's primary disk and then re-mirroring to the secondary disk.


Pete

Pete
dictum9
Super Advisor

Re: Increasing / with mirroring

No, I am not proposing to shrink the following lvol (lvol4), but to increase lvol3 on the 2nd disk once I mirror it, and break the mirrors, and then continue with mirroring of the other lvols, keeping their size the same.
Christian Tremblay
Trusted Contributor

Re: Increasing / with mirroring

It can easily be done if you have online JFS and mirrordisk installed.

Check this thread...

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1030157

Chris
dictum9
Super Advisor

Re: Increasing / with mirroring


I already saw that thread. Are you talking about the Ignite-UX way or the Mirror-UX way?
Christian Tremblay
Trusted Contributor

Re: Increasing / with mirroring

Both methods are described, If you have time and can afford downtime on your system then reignite it.

If you can't afford downtime then you can do it "online" with the mirror method.
James R. Ferguson
Acclaimed Contributor

Re: Increasing / with mirroring

Hi:

The Technical Knowledge Base actually describes a procedure to extend the root filesyatem without resorting to Ignite.

See document #KBRC00006582 for the details.

Regards!

...JRF...
dictum9
Super Advisor

Re: Increasing / with mirroring

Thahks, it is a good document, but I am not going to use any pvmove's, instead a simpler procedure as I have 2 disks and can mirror and break mirrors and do lvextend on lvol3.