Operating System - HP-UX
1757929 Members
2495 Online
108866 Solutions
New Discussion юеВ

Re: hpux11.0 two mirrored boot disks with mirror in wrong order

 
SOLVED
Go to solution
Steve Post
Trusted Contributor

hpux11.0 two mirrored boot disks with mirror in wrong order

I have vg00 on one 9 gig disk, and a 9 gig mirror disk.
I discovered vg00/lvol1 (aka /stand) is not mirrored due to a mistake in typing a few months ago.
But I have the rest of it mirrored.
Lvol1 is only 17 extents in size. I know lvol1 needs to be contiguous.
But do I need to unmirror and remirror all the other logical volumes to put lvol1's mirror in front? Do I need lvol1's mirror in front?

Assuming I do, I'll have to unmirror and remirror 8 logical volumes this way right?
lvreduce -m 0 /dev/vg00/lvol10 /dev/dsk/c1t6d0
lvreduce -m 0 /dev/vg00/lvol9 /dev/dsk/c1t6d0
lvreduce -m 0 /dev/vg00/lvol8 /dev/dsk/c1t6d0
lvreduce -m 0 /dev/vg00/lvol7 /dev/dsk/c1t6d0
lvreduce -m 0 /dev/vg00/lvol6 /dev/dsk/c1t6d0
lvreduce -m 0 /dev/vg00/lvol5 /dev/dsk/c1t6d0
lvreduce -m 0 /dev/vg00/lvol4 /dev/dsk/c1t6d0
lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c1t6d0
lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c1t6d0

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c1t6d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c1t6d0

Should I run the lvlnboot commands again then?
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
...or maybe just lvlnboot -R?

any advice? I have 2 ignite tapes. I'm not doing this until Sunday.
Steve
3 REPLIES 3
Jeroen Peereboom
Honored Contributor
Solution

Re: hpux11.0 two mirrored boot disks with mirror in wrong order

Steve,

without consulting manuals: sounds good.
I would indeed remove the lvol2-10 mirrors a,d create the lvol1 - 10 mirrors.
I don't think you need the lvlnboot commands. But is won't hurt either.

JP
Steve Post
Trusted Contributor

Re: hpux11.0 two mirrored boot disks with mirror in wrong order

yeah.. that's kinda it. I see it mentioned on 1/2 a line in hp doc LVMKBRC00005103 in step 5. But it's barely mentioned. And there's no explanation to it.

It strikes me as odd. I thought logical volumes allowed you to not have to worry about stuff like this. Perhaps the hardware only looks at the first 50 extents in a disk for /stand?
A half-hearted mention of the order of logical volumes in a document does not give me a warm fuzzy.
Steve Post
Trusted Contributor

Re: hpux11.0 two mirrored boot disks with mirror in wrong order

Found it. In "man lvlnboot", I see it requires lvol1 to be the FIRST logical volume on the boot disk.
I'll run these commands, and run the lvlnboot -r,-b,.... instead of lvlnboot -R.

Thanks for the help.
Steve