Operating System - HP-UX
1747985 Members
4868 Online
108756 Solutions
New Discussion юеВ

Re: Mirroring primary swap

 
SOLVED
Go to solution
Van Molle
New Member

Mirroring primary swap

I want to mirror the primary swap logical volume. But I want to set Mirror Write Cache to off. Currently this is set to on. Command :

lvchange -M n -c n /dev/vg00/c1t2d0

This command don't work in single user mode : couldn't change Mirror Write Cache when logical volume is opened.

This common don't work in system maintenance mode : volume group not activated.

I have read this in my HP-UX manual:
Caution: do not activate the root volume group in system maintenance mode or you might corrupt the file system.

Whau now ?

Leo
6 REPLIES 6
Van Molle
New Member

Re: Mirroring primary swap

Correct command, but same problem:
lvchange -M n -c n /dev/vg00/lvol2
Andreas Voss
Honored Contributor

Re: Mirroring primary swap

Hi,

in maintenance mode have you tested after
vgchange -a y vg00 ?
CHRIS ANORUO
Honored Contributor

Re: Mirroring primary swap

Using SAM you can configure or change the characteristics of a logical volume's mirrors: The Mirror Write-Cache or the Mirror consistency Recovery method
Using line command at boot up:
lvchange -M y -c n /dev/vg00/c1t2d0
It Mirror Write Cache method and Mirror Consistency Recovery method can safely be applied to mirrored logical volume that the data is not needed after a crash, such as swap or other raw scratch data; and data that an application itself will automatically reconstruct.



When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Andy Monks
Honored Contributor
Solution

Re: Mirroring primary swap

You can activate vg00 in lvm maintaince mode. the thing you MUST NOT DO, is then come from lvm maint mode to multiuser mode. You MUST reboot afterwards.

Just doing a vgchange -a y /dev/vg00 and the lvchange is fine. I'd do a vgchange -a n too, but I'm just paranoid.
Brian M. Fisher
Honored Contributor

Re: Mirroring primary swap

To change the mirror consistency recovery policy:
1)Boot into LVM maintenance mode
shutdown -r -y 0
BOOT_ADMIN>boot pri isl
ISL>hpux -lm
2) From maint. mode activate the volume group and change the recovery policy
vgchange -a y vg00
lvchange -M n -c n /dev/vg00/lvol2
3) Update the BDRA
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
4) Reboot system
reboot

Good Luck,
Brian
<*(((>< er
Perception IS Reality
Manju Kampli
Trusted Contributor

Re: Mirroring primary swap

goto LVM maintenance mode by typeing hpux -lm during boot time at ISL prompt. and do vgchange -a y vg00 to activate the volume group and then run lvchange command.
After this enter the following commands

lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2

This should work
Never stop "LEARNING"