LVM and VxVM

Re: lvchange for swap / dump inside Ignite-UX post script

 
David Burgess
Esteemed Contributor

lvchange for swap / dump inside Ignite-UX post script

Hi,

I have successfully mirrored the root volume in an Ignite-UX post script. Based on the following statement I always modify lvol2.

"When primary swap is mirrored and the primary swap device also serves as a dump area, you must make sure that Mirror Write Cache and Mirror Consistency Recovery is set to off at boot time to avoid loss of your dump."

This can only be done from LVM maintenance mode.

After booting "hpux -lm" I run the command :-

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

and reboot.

Is there a way to get Ignite-UX to handle this?

I've tried running it in the post script and got the message

"lvchange: Couldn't change MirrorWriteCache while Logical Volume is opened
or being synchronized."

as expected.

Could I configure Ignite to create lvol2 with -M n and -c n when it first creates it?

Regards,

Dave.
3 REPLIES 3
Florian Heigl (new acc)
Honored Contributor

Re: lvchange for swap / dump inside Ignite-UX post script

I'm not sure there is some kind of preinstallscript for Ignite.
I only remember postinstall and postconfigure, so I don't have the advice You need.

OTOH...
This is from rc2:
S440savecrash
S500swap_start
S520syncer

the volumegroup syncronisation starts even later.
I'd recommend to set FOREGRD=1 in /etc/rc.config.d/savecrash so copying the dump to lvcrash definitely has completed before swapon.

Also, I have a very bad feeling about disabling Write Consistency for memory^H^H^H^H^H^H^H^Hswapspace memory.
yesterday I stood at the edge. Today I'm one step ahead.
David Burgess
Esteemed Contributor

Re: lvchange for swap / dump inside Ignite-UX post script

The configuration for lvol2 in the config.full file in the client directory has this entry.


logical_volume "lvol2"{
mount_point="primary"
disk[_hp_root_disk]
usage=SWAP_DUMP
size=_hp_min_swap |remaining | _hp_pri_swap
bad_block_relocate=FALSE
contiguous_allocation=TRUE
minor_number=0x2
} # end logical_volume

Could I add options to this for the changes?

Regards,

Dave.
Jov
Honored Contributor

Re: lvchange for swap / dump inside Ignite-UX post script

Hi Dave,


I was just able to run "lvchange -M n -c n /dev/vg00/lvol2" after changing to runlevel 1.

If you can place this command in ignite during boot at the same level it might be possible.

Cheers

Jov