1825775 Members
2568 Online
109687 Solutions
New Discussion

Re: mirror vg01

 
SOLVED
Go to solution
kholikt
Super Advisor

mirror vg01

I have a secondary swap on vg01. I was told to mirror this as well.

Is this right that I just do a

vgextend vg01 /dev/rdsk/c2t2d0
lvextend -m 1 /dev/vg01/lvswap /dev/dsk/c2t2do
abc
3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor
Solution

Re: mirror vg01

Hi,

If you insist on mirroring swap, the commands look alright to me. To verify, you can try to perform the an lvlnboot to check out the swap LVs.

# lvlnboot -v

Also, you can simulate a harddisk failure by pulling out the primary root disk containing the swap primary copy and observe if it fails over.

Hope this helps. Regards.

Steven Sim Kok Leong
fg_1
Trusted Contributor

Re: mirror vg01

Kholikt

Your commands are good there, no problems with those listed.

I agree with steven about using the lvlnboot -v command.

Good luck.

FG.
James R. Ferguson
Acclaimed Contributor

Re: mirror vg01

Hi:

'lvlnboot' reports information for the boot disk. If you want to determine where you have active swap space, use:

# swapinfo -tam

To determine if you have mirrors (with current and not stale extents) use:

# lvdisplay -v /dev/vgXX/lvolN

...for that matter, a quick 'lvdisplay' without the '-v'erbose option will show whether any stale extents exist or not by looking at the "LV Status" line: "avilable/syncd" means none; "available/stale" means some!

Regards!

...JRF...

Regards!

...JRF...