Forum Discussion

Rick_Smith1's avatar
12 years ago

How to break VRTSvxvm root mirror for patching

I found some information on this site, just want to cover my bases before doing it on our production system:

 

 

prtconf -vp|grep bootpath root@discus2 # prtconf -vp|grep bootpath bootpath: '/ssm@0,0/pci@18,700000/pci@1/SUNW,isptwo@4/sd@0,0:a' root@discus2 # eeprom nvramrc=devalias vx-disk01 /ssm@0,0/pci@18,700000/pci@1/SUNW,isptwo@4/sd@1,0:a #vx-disk01 is alternate boot disk devalias vx-rootdisk /ssm@0,0/pci@18,700000/pci@1/SUNW,isptwo@4/sd@0,0:a #vx-rootdisk is primary boot disk root@discus2 # vxprint -htg 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 1039288246.1025.discus2 dm disk01 c0t1d0s2 sliced 2888 71124291 NOHOTUSE dm rootdisk c0t0d0s2 sliced 2888 71124291 - v rootvol - ENABLED ACTIVE 37568556 ROUND - root pl rootvol-01 rootvol ENABLED ACTIVE 37568556 CONCAT - RW sd rootdisk-02 rootvol-01 rootdisk 0 37568556 0 c0t0d0 ENA pl rootvol-02 rootvol ENABLED ACTIVE 37568556 CONCAT - RW sd disk01-01 rootvol-02 disk01 0 37568556 0 c0t1d0 ENA v swapvol - ENABLED ACTIVE 16776423 ROUND - swap pl swapvol-01 swapvol ENABLED ACTIVE 16776423 CONCAT - RW sd rootdisk-01 swapvol-01 rootdisk 37568556 16776423 0 c0t0d0 ENA pl swapvol-02 swapvol ENABLED ACTIVE 16776423 CONCAT - RW sd disk01-02 swapvol-02 disk01 37568556 16776423 0 c0t1d0 ENA v var - ENABLED ACTIVE 16779312 ROUND - fsgen pl var-01 var ENABLED ACTIVE 16779312 CONCAT - RW sd rootdisk-03 var-01 rootdisk 54344979 16779312 0 c0t0d0 ENA pl var-02 var ENABLED ACTIVE 16779312 CONCAT - RW sd disk01-03 var-02 disk01 54344979 16779312 0 c0t1d0 ENA root@discus2 # vxplex -g rootdg dis rootvol-02 vxplex -g rootdg dis swapvol-02 vxplex -g rootdg dis var-02 vxedit -rf rm rootvol-02 vxedit -rf rm swapvol-02 vxedit -rf rm var-02 vxprint -htg rootdg (make sure the plexes were removed.) vxdg rmdisk disk01 vxdiskunsetup -C c0t1d0 mount /dev/dsk/c0t1d0s0 /mnt touch /mnt/etc/vx/reconfig.d/state.d/install-db rm /mnt/etc/vx/reconfig.d/state.d/root-done vi /etc/vfstab Instead of: /dev/vx/dsk/swapvol - - swap - no - /dev/vx/dsk/rootvol /dev/vx/rdsk/rootvol / ufs 1 no logging /dev/vx/dsk/var /dev/vx/rdsk/var /var ufs 1 no logging Make it: /dev/dsk/c0t0d0s1 - - swap – no – /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no logging /dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /var/ufs 1 no logging # Double-check the /mnt/etc/system and comment out the rootdev entries # if they are there vi /mnt/etc/system # Only comment out the following entries rootdev:/pseudo/vxio@0:0 set vxio:vol_rootdev_is_volume=1 umount /mnt reboot server in single user mode apply patches validate if everything goes smoothly, then: vxdiskadm option 6 source disk rootdisk target disk disk01 otherwise: make changes in /etc/vfstab to reflect slices of vx-disk01 boot from vx-disk01(disk01) encapsulate disk mirror disk using vxdiskadm
  • The links that I have provided above should work, but what exactly do you want to patch?

    You really need to upgrade your OS as well as Storage Foundation, as both ran out of support a long time ago...