Renaming
a Disk Group and Volume Name in Cluster Volume Manager
Groups
mcogdg --- > mco1dg
Volume
mcog ----> mco1
While
Running a Command, I was getting error that command needs to be executed on the
master server
Three host:
test0031
test0030
test0029
test0029#
vxdctl -c mode
mode: enabled: cluster active - SLAVE
master: test0031
So all command needs to run on the Master
Server test0031
·
First, Stop the Access of user to the
filesystem
·
Unmount the file system
·
Rename the volume
test0031# vxvol -g
mcogdg stop mcog
VxVM vxvol ERROR V-5-1-1218 Volume mcog is already
stopped
test0031#
vxprint -htv mcog
Disk
group: mcogdg
V NAME
RVG/VSET/CO 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
SC
NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC
NAME PARENTVOL LOGVOL
SP
NAME SNAPVOL DCO
EX
NAME ASSOC VC PERMS MODE
STATE
v mcog - DISABLED ACTIVE 226492416 SELECT -
fsgen
pl
mcog-01 mcog DISABLED ACTIVE 226492416 CONCAT -
RW
sd mcogdg01-01
mcog-01 mcogdg01 0 113744128 0 c4t50060E80056D8340d69 ENA
sd mcogdg02-01
mcog-01 mcogdg02 0 112748288 113744128
c4t50060E80056D8340d70 ENA
Re-naming Volume Name in
Diskgroup
test0031# vxedit
-g mcogdg rename mcog mco1
test0031#
vxprint -htv mco1
Disk
group: mcogdg
V NAME
RVG/VSET/CO 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
SC
NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC
NAME PARENTVOL LOGVOL
SP
NAME SNAPVOL DCO
EX
NAME ASSOC VC PERMS MODE
STATE
v mco1 - DISABLED ACTIVE 226492416 SELECT -
fsgen
pl
mcog-01 mco1 DISABLED ACTIVE 226492416 CONCAT -
RW
sd mcogdg01-01
mcog-01 mcogdg01 0 113744128 0 c4t50060E80056D8340d69 ENA
sd mcogdg02-01
mcog-01 mcogdg02 0 112748288 113744128
c4t50060E80056D8340d70 ENA
test0031#
vxdg list|grep mcogdg
mcogdg enabled,shared,cds 1241458476.113.test0029
test0031#
df -k|grep mcogdg
test0031#
vxdg deport mcogdg
Renaming diskgroup
test0031#
vxdg -n mco1dg import mcogdg
test0031#
vxdg list
NAME STATE ID
test0031dg
enabled,cds 1161651342.71.test0031
apwdappdg enabled,shared,cds 1205363026.91.test0029
apwddg enabled,shared,cds 1205445208.98.test0029
mcodappdg enabled,shared,cds 1241458903.119.test0029
mcoddg enabled,shared,cds 1257977168.101.cdcxpr0025
mcoqdg enabled,shared,cds 1292523227.180.test0030
mco1dg enabled,cds 1241458476.113.test0029 ---->
Problem the diskgroup is not in shared
state
ofsdappdg enabled,shared,cds 1161633277.255.test0029
ofsddg enabled,shared,cds 1162243648.81.cdcxpr0025
ofsdocrvotedg
enabled,shared,cds 1249929432.121.test0029
ofsqdg enabled,shared,cds 1292282482.148.test0030
ofs1dg enabled,shared,cds 1273179492.221.test0029
test0031#
vxdg deport mco1dg
Importing the Diskgroup in Shared Mode
test0031#
vxdg -s import mco1dg --> we have to import the disk group with -s syntax to be shared
test0031#
vxdg list
NAME STATE ID
test0031dg
enabled,cds 1161651342.71.test0031
apwdappdg enabled,shared,cds 1205363026.91.test0029
apwddg enabled,shared,cds 1205445208.98.test0029
mcodappdg enabled,shared,cds 1241458903.119.test0029
mcoddg enabled,shared,cds 1257977168.101.cdcxpr0025
mcoqdg enabled,shared,cds 1292523227.180.test0030
mco1dg enabled,shared,cds 1241458476.113.test0029 ---> Now the diskgroup is shared
ofsdappdg enabled,shared,cds 1161633277.255.test0029
ofsddg enabled,shared,cds 1162243648.81.cdcxpr0025
ofsdocrvotedg
enabled,shared,cds 1249929432.121.test0029
ofsqdg enabled,shared,cds 1292282482.148.test0030
ofs1dg enabled,shared,cds 1273179492.221.test0029
test0031# vxprint
-htv mco1
Disk group: mco1dg
V NAME RVG/VSET/CO 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
SC NAME
PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME
PARENTVOL LOGVOL
SP NAME
SNAPVOL DCO
EX NAME
ASSOC VC PERMS
MODE STATE
v mco1 - DISABLED ACTIVE 226492416 SELECT -
fsgen
pl mcog-01 mco1 DISABLED ACTIVE 226492416 CONCAT -
RW
sd mcogdg01-01 mcog-01
mcogdg01 0 113744128 0 c4t50060E80056D8340d69 ENA
sd mcogdg02-01 mcog-01
mcogdg02 0 112748288
113744128 c4t50060E80056D8340d70 ENA
test0031#
hares -display cfsmount2
#Resource Attribute System Value
cfsmount2 Group global cfs_MCO_DB
cfsmount2 Type global CFSMount
cfsmount2 AutoStart global 1
cfsmount2 Critical global 0
cfsmount2 Enabled global 1
cfsmount2 LastOnline global test0029
cfsmount2 MonitorOnly global
0
cfsmount2 ResourceOwner global
unknown
cfsmount2 TriggerEvent global
0
cfsmount2 ArgListValues test0029 /sv35 /dev/vx/dsk/mcogdg/mcog suid,rw test0030
cfsmount2 ArgListValues test0030 /sv35 /dev/vx/dsk/mcogdg/mcog suid,rw test0030
cfsmount2 ConfidenceLevel test0029 0
cfsmount2 ConfidenceLevel test0030 0
cfsmount2 Flags test0029
cfsmount2 Flags test0030
cfsmount2 IState test0029 not waiting
cfsmount2 IState test0030 not waiting
cfsmount2 Probed test0029 1
cfsmount2 Probed test0030 1
cfsmount2 Start test0029 0
cfsmount2 Start test0030 0
cfsmount2 State test0029 OFFLINE
cfsmount2 State test0030 OFFLINE
cfsmount2 BlockDevice global
/dev/vx/dsk/mcogdg/mcog
cfsmount2 ComputeStats global
0
cfsmount2 ForceOff global
cfsmount2 MountPoint global /sv35
cfsmount2 MountType global
cfsmount2 NodeList global test0029 test0030
cfsmount2 Policy global test0029
cfsmount2 Primary global test0030
cfsmount2 SetPrimary global
cfsmount2 MonitorTimeStats test0029 Avg 0
TS
cfsmount2 MonitorTimeStats test0030 Avg 0
TS
cfsmount2 MountOpt test0029 suid,rw
cfsmount2 MountOpt test0030 suid,rw
cfsmount2 RemountRes test0029 DONE
cfsmount2 RemountRes test0030 DONE
cfsmount2 ResourceInfo test0029 State Stale
Msg TS
cfsmount2 ResourceInfo test0030 State Stale
Msg TS
cfsmount2 BlockDevice global
/dev/vx/dsk/mcogdg/mcog
test0031#
hares -display cvmvoldg2
#Resource Attribute System Value
cvmvoldg2 Group global cfs_MCO_DB
cvmvoldg2 Type global CVMVolDg
cvmvoldg2 AutoStart global 1
cvmvoldg2 Critical global 0
cvmvoldg2 Enabled global 1
cvmvoldg2 LastOnline global test0029
cvmvoldg2 MonitorOnly global
0
cvmvoldg2 ResourceOwner global
unknown
cvmvoldg2 TriggerEvent global
0
cvmvoldg2 ArgListValues test0029 mcogdg 1 mcog
sw
cvmvoldg2 ArgListValues test0030 mcogdg 1 mcog
sw
cvmvoldg2 ConfidenceLevel test0029 0
cvmvoldg2 ConfidenceLevel test0030 0
cvmvoldg2 Flags test0029
cvmvoldg2 Flags test0030
cvmvoldg2 IState test0029 not waiting
cvmvoldg2 IState test0030 not waiting
cvmvoldg2 Probed test0029 1
cvmvoldg2 Probed test0030 1
cvmvoldg2 Start
test0029 0
cvmvoldg2 Start test0030 0
cvmvoldg2 State test0029 OFFLINE
cvmvoldg2 State test0030 OFFLINE
cvmvoldg2 CVMDiskGroup global
mcogdg
cvmvoldg2 CVMVolume global mcog
cvmvoldg2 ComputeStats global
0
cvmvoldg2 voldg_stat global 0
cvmvoldg2 CVMActivation test0029 sw
cvmvoldg2 CVMActivation test0030 sw
cvmvoldg2 MonitorTimeStats test0029 Avg 0
TS
cvmvoldg2 MonitorTimeStats test0030 Avg 0
TS
cvmvoldg2 ResourceInfo test0029 State Stale
Msg TS
cvmvoldg2 ResourceInfo test0030 State Stale
Msg TS
cvmvoldg2 CVMDiskGroup global
mcogdg
cvmvoldg2 CVMVolume global mcog
# haconf -makerw
test0031#
hares -modify cfsmount2 BlockDevice
/dev/vx/dsk/mco1dg/mco1
test0031#
hares -modify cvmvoldg2 CVMDiskGroup
mco1dg
test0031#
hares -modify cvmvoldg2 CVMVolume mco1
# hares -modify vxfsckd ActivationMode
-delete mcogdg -sys test0030
# hares -modify vxfsckd
ActivationMode -delete mcogdg -sys test0029
# hares -modify vxfsckd
ActivationMode -delete mcogdg -sys test0031
# hares -modify vxfsckd
ActivationMode -delete mcogdg -sys test0032
# hares -modify vxfsckd
ActivationMode -add mco1dg sw -sys test0029
# hares -modify vxfsckd
ActivationMode -add mco1dg sw -sys test0030
# hares -modify vxfsckd
ActivationMode -add mco1dg sw -sys test0031
# hares -modify vxfsckd
ActivationMode -add mco1dg sw -sys test0032
# hares -online cvmvoldg2 -sys test0029
# hares -online cvmvoldg2 -sys test0030
# hares -online cfsmount2 -sys test0029
# hares -online cfsmount2 -sys test0030
No comments:
Post a Comment