DevTech101

DevTech101

Replacing in Solaris a Veritas boot mirror.

SIMPLE PROCEDURE
---------------------------------
# vxprint -ht | grep rootm
dm rootmirr01   c1t0d0s2     sliced   2888     71124291 -
sd rootmirr01-03 node@1-02   rootmirr01 20974140 205119 0         c1t0d0   ENA
sd rootmirr01-01 rootvol-02  rootmirr01 0      4194828  0         c1t0d0   ENA
sd rootmirr01-02 swapvol-02  rootmirr01 4194828 16779312 0        c1t0d0   ENA
sd rootmirr01-04 usr-02      rootmirr01 21179259 40960242 0       c1t0d0   ENA
sd rootmirr01-05 var-02      rootmirr01 62139501 8389656 0        c1t0d0   ENA
----------------------------------
# vxdiskadm option 4 (Remove a disk for replacement)
---------------------------------
# vxdiskadm option 11 (Disable (offline) a disk device)
---------------------------------
>>> pull out old disk, insert new disk
---------------------------------
# vxdctl enable
---------------------------------
# vxdiskadm option 5 (Replace a failed or removed disk)
---------------------------------
 
COMPLEX PROCEDURE
---------------------------------
# vxprint -ht | grep rootm
dm rootmirr01   c1t0d0s2     sliced   2888     71124291 -
sd rootmirr01-03 node@1-02   rootmirr01 20974140 205119 0         c1t0d0   ENA
sd rootmirr01-01 rootvol-02  rootmirr01 0      4194828  0         c1t0d0   ENA
sd rootmirr01-02 swapvol-02  rootmirr01 4194828 16779312 0        c1t0d0   ENA
sd rootmirr01-04 usr-02      rootmirr01 21179259 40960242 0       c1t0d0   ENA
sd rootmirr01-05 var-02      rootmirr01 62139501 8389656 0        c1t0d0   ENA
----------------------------------
# vxplex -g rootdg -o rm dis node@1-02 rootvol-02 swapvol-02 usr-02 var-02
---------------------------------
# vxdg -g rootdg rmdisk rootmirr01
---------------------------------
>>> pull out old disk, insert new disk
---------------------------------
# vxdctl enable
---------------------------------
# /usr/lib/vxvm/bin/vxdisksetup -i c1t0d0
---------------------------------
# vxdg -g rootdg adddisk rootmirror=c1t0d0
---------------------------------
# /etc/vx/bin/vxrootmir rootmirror
---------------------------------
# vxassist mirror node@1 rootmirror
---------------------------------
# vxassist mirror swapvol rootmirror
---------------------------------
# vxassist mirror usr rootmirror
---------------------------------
# vxassist mirror var rootmirror
---------------------------------
# vxprint -ht | grep rootm
---------------------------------
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: