System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

what-if hpux11.11 mirror disk is out and want to lvreduce?

 
SOLVED
Go to solution
Highlighted
Trusted Contributor

what-if hpux11.11 mirror disk is out and want to lvreduce?

This is a what-if question:
I have a junk computer with a mirrored boot disk.
primary /dev/dsk/c0t3d0
mirror /dev/dsk/c0t4d0
hpux 11.11
OLD K570 HP9000.

I walk up and yank out the mirror disk.
So disk /dev/dsk/c0t4d0 is dead in my experiment.
In advance, I ran lvdisplay -k -v /dev/vg00/lvol8 (and the rest of them).
So I know the k-number for c0t4d0 is 1. And the primary disk k-number is 0.

In this scenario, I would call HP hardware support. I would expect a spare disk in a few hours. But, what if I wanted to instead remove the dead disk from vg00? Is is possible? Is this a bad idea?

In WHEN-GOOD-DISKS-GO-BAD, I am told to run this....
lvreduce -A n -k -m 0 /dev/vg00/lvol8 1

This bombs out because of something with lvlnboot. lvmtab gets goofed up. And I restore from my ignite tape.

I would give the specific errors. But I don't want to waste another 2 hours restoring a dead computer from my ignite tape.

Maybe I should just run vgreduce -A N -f /dev/vg00?
Maybe I should reboot first?
Or should I go to single user mode without rebooting?
Or go to single user mode after rebooting?
Which way should this lab rat go?

20 REPLIES 20
Highlighted
Honored Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

Just let it there, when the new spare disk arrives, initialice it, make it bootable, and resync.
Highlighted
Trusted Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

I agree with that. But the subject of this is what-if the disk is out and I WANT to lvreduce?
Highlighted
Honored Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

Use vgreduce!
Highlighted
Trusted Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

Ah...but very near future WIZARD (!!!)

I thought you could not run vgreduce because the logical volumes are still mirrored.
Highlighted
Honored Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

Yes, you could pull out the disk and wait for the new disk to come(check if it is hot-swappable), unless you like to remove the disk from vg and do the mirroing again !!

Instead just do a plug in the disk vgcfgrestore on disk, vgsync
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Highlighted
Trusted Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

Avinash,
But once AGAIN....
I agree with that. But the subject of this is what-if the disk is out and I WANT to lvreduce?


....BEEP.
Highlighted
Honored Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

I think the missing command here is lvlnboot -R, after you have remove all lv mirrors and vgreduce vg00.

BTW: (almost wizard! I thought my points was under 850.)
Highlighted
Trusted Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

yep. That's what I did before. It DESTROYED it.

points will be coming by the way....
Highlighted
Honored Contributor

Re: what-if hpux11.11 mirror disk is out and want to lvreduce?

Ok man I got it, and have you tried the lvreduce/vgreduce, and reboot without executing anything else?