1834711 Members
2267 Online
110069 Solutions
New Discussion

rootdg migration

 
Dominic Saul
Occasional Advisor

rootdg migration

I have a HPUX11.11 system where LVM and VxVM co-exist. We have data disks using Veritas so rootdg is just there so that veritas could be used. Now I have a situation where rootdg disk is part of SAN that we are migarting to SAN. So how do I migrate this disk in the rootdg to new disk in other SAN? I have a just one placeholder volume in the rootdg.


SU-kermit:/# swlist | grep -i vxvm
Base-VXVM B.03.50.5 Base VERITAS Volume Manager Bundle 3.5 for HP-UX

SU-kermit:/# vxprint -ht -g rootdg
DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO

dg rootdg default default 0 1087383095.1025.kermit

dm kermit-root c6t1d1 simple 1024 47137248 -

v placebo - ENABLED ACTIVE 10240 SELECT - fsgen
pl placebo-01 placebo ENABLED ACTIVE 10240 CONCAT - RW
sd kermit-root-01 placebo-01 kermit-root 0 10240 0 c6t1d1 ENA
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: rootdg migration

Hi,

I would add a san lun to the rootdg configuration (vxdiskadm) mirror it with c6t1d1 disk (vea or vxvm gui) and then remove the c6t1d1 disk from the rootdg.

Regards,
Robert-Jan
Dominic Saul
Occasional Advisor

Re: rootdg migration

Do I just mirror using vxmirror, does it copy private and public region or any neccesary structure to make Veritas to work on booting. Also I dont' have any volumes only one placeholder volume, does vxmirror or vxdiskadm to mirror could be still used?? Am confused ??
Robert-Jan Goossens
Honored Contributor

Re: rootdg migration

here is doc. You could use the /etc/vx/bin/vxrootmir tool ot use below commands. Since do not have any data on this disc you would not have to create and sync the volumes.

http://seer.entsupport.symantec.com/docs/253074.htm

# /etc/vx/bin/vxdisksetup -iB cxtydz

# vxdg -g rootdg adddisk rootmir1=cxtydz

Regards,
Robert-Jan
chris huys_4
Honored Contributor

Re: rootdg migration

Hi Dominic,

Just add a sanlun of the new san, to the rootdg diskgroup.

Mirroring, or rootdisk mirroring is not necessary, as the rootdg diskgroup is just there for placeholder value. Also having a volume on this rootdg diskgroup should not be necessary.

So something like

# vxdisksetup -i
# vxdg -g rootdg adddisk rootdisk01=

# vxassist -g rootdg remove volume placebo

# vxdg -g rootdg rmdisk kermit-root

should be enough..

NOTE: Upgrade to HP-UX 11.23/vxvm 5.0, then you can get rid alltogether, of this rootdg diskgroup.

Best Regards,
Chris
Kapil Jha
Honored Contributor

Re: rootdg migration

I have a doubt...you said its rootdg and u also saying it does not have any volume except placebo....
how is it possible???
Am i taking it wrong way???
well best part would be to add new disk in rootdg and then run
volrootmir -a
-a works if u want to mirror uservol,varvol etc....
m confused.

Thanks,
Kapil+
I am in this small bowl, I wane see the real world......
Rey Cao
Advisor

Re: rootdg migration

Hi Dominic,

I am interested on which method you used to migrate the rootdg. I am in a similar scenario and would very much appreciate if you can please share with me the commands and steps you took to migrate the rootdg from original to new SAN.

Thanks,
Rey