Operating System - HP-UX
1748204 Members
3489 Online
108759 Solutions
New Discussion юеВ

Re: how to do root disk mirroing in vxvm

 
Atindra Ghosh
Occasional Contributor

how to do root disk mirroing in vxvm

can any one help to do the root disk mirroring in vxvm. os is 11.31. need setp step guide.
6 REPLIES 6
Jannik
Honored Contributor

Re: how to do root disk mirroing in vxvm

a) To initialise disk under VxVM:

# vxdisksetup -iB cxtydz

b) To add the disk to the VxVM dg:

# vxdg -g rootdg adddisk rootdisk=cxtydz

c) To create the mirror:

# vxrootmir -v -b -R cxtydz

For non-root data groups, one of the ways
to set the mirroring is:

# vxassist -g mydg mirror VOLX mirror=enclr ...
jaton
Kapil Jha
Honored Contributor

Re: how to do root disk mirroing in vxvm

http://seer.entsupport.symantec.com/docs/250289.htm gonna help.

Else the simplest way is to
partition the disk similar to itanium

vxrootmir -a newdisk-s2 {this would copy everything and takes time )

and then update the lif area
/opt/VRTS/bin/vxbootsetup VMVM_name_of_disk

to check:
vxvmboot -v /dev/rdsk/cxtxdx
lifls -lC /dev/rdsk/cxtxdx

then boot it from new disk to check if everythingis cool.

BR,
Kapil+


I am in this small bowl, I wane see the real world......
R.K. #
Honored Contributor

Re: how to do root disk mirroing in vxvm

Hi Atindra,

PLease find attahcment for step by step procedure.

Doc ID: emr_na-c01001982-7

Hope this helps..



Don't fix what ain't broke
Suraj K Sankari
Honored Contributor

Re: how to do root disk mirroing in vxvm

Hi Atindra,
here is the steps For VxVM

For VxVM most of the work is done automatically by the vxrootmir(1M) script.

1) Have VxVM see the new c2t1d0 disk (if not already booted with it):
# vxdctl enable

2) Confirm that you can see the new disk as ├в online├в or ├в online invalid├в :
# vxdisk list

3) Mirror the root disk. This may take some time:
# /etc/vx/bin/vxrootmir -v ├в b c2t1d0

4) Verify that all volumes are mirrored:
# vxprint -g rootdg

5) Verify the LABEL files on root and mirror disk:
# vxvmboot -v /dev/rdsk/c1t0d0s2
LIF Label File @ (1k) block # 834 on VxVM Disk /dev/rdsk/c1t0d0s2:
Label Entry: 0, Boot Volume start: 3168; length: 300 MB
Label Entry: 1, Root Volume start: 4504672; length: 400 MB
Label Entry: 2, Swap Volume start: 310368; length: 4096 MB
Label Entry: 3, Dump Volume start: 310368; length: 4096 MB

# vxvmboot -v /dev/rdsk/c2t1d0s2
LIF Label File @ (1k) block # 834 on VxVM Disk /dev/rdsk/c2t1d0s2:
Label Entry: 0, Boot Volume start: 3168; length: 300 MB
Label Entry: 1, Root Volume start: 4504672; length: 400 MB
Label Entry: 2, Swap Volume start: 310368; length: 4096 MB
Label Entry: 3, Dump Volume start: 310368; length: 4096 MB

6) Verify the setboot path:
# setboot

Suraj
Suraj K Sankari
Honored Contributor

Re: how to do root disk mirroing in vxvm

Hi again,
Some junk characters are there in previous post plese find the attached file ....


Suarj
s.kalaivanan
Advisor

Re: how to do root disk mirroing in vxvm

Thanks Jannik ,


you gave correct and exact steps for vxvm root mirror ,

Once again thanks a lots.

cheers,
Kalai.