[root@server101 ~]# echo "8192B.p S"| /opt/VRTS/bin/fsdb -t vxfs /dev/vx/dsk/dg1/vol1
UX:vxfs fsdb: ERROR: V-3-20003: Cannot open /dev/vx/dsk/dg1/vol1: Operation not permitted
[root@server101 ~]#
[root@server101 ~]# mount -t vxfs /dev/vx/dsk/dg1/vol1 /opt/VRTSnbu
UX:vxfs mount.vxfs: ERROR: V-3-21252: not super user
[root@server101 ~]#
The system was part of 2 node VVR replication, where both nodes failed one after another, and went to primary primary state, Even after setting correct secondary node (server102) to primary = false, node 1 (server101) was not properly becoming primary.
1. Detach rlink
[root@server101 ~]# vxrlink -g dg1 -f det to_dr
VxVM VVR vxrlink INFO V-5-1-6775 Rlink to_dr is not up-to-date. Before restarting replication a complete synchronization of the secondary data volumes must be performed.
2. Again set primary=true for node 1(server101). Make sure it's right primary before failure.
[root@server101 ~]# vxedit -g dg1 set primary=true RVG1
3. Start Full sync again, as we don't know where the replication was broke.
[root@server101 ~]# vxrlink -g dg1 -a att to_dr
VxVM VVR vxrlink WARNING V-5-1-3359 Attaching rlink to non-empty rvg. Autosync will be performed.
VxVM VVR vxrlink INFO V-5-1-3614 Secondary data volumes detected with rvg RVG1 as parent:
VxVM VVR vxrlink INFO V-5-1-6183 vol1: len=3145728000 primary_datavol=vol1
VxVM VVR vxrlink INFO V-5-1-3365 Autosync operation has started
4. Check vxprint again.
[root@server101 ~]# vxprint -qhtg dg1
dg dg1 default default 28000 1644310196.11.server101
dm disk1 sdb auto 65536 3221159632 -
dm srl_disk sdd auto 65536 838767040 -
rv RVG1 1 ENABLED ACTIVE primary 1 srl
rl to_dr RVG1 CONNECT ACTIVE 192.168.10.04 dg1 to_PAR
v vol1 RVG1 ENABLED ACTIVE 3145728000 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 3145728000 CONCAT - RW
sd disk1-01 vol1-01 disk1 0 3145728000 0 sdb ENA
dc vol1_dco vol1 vol1_dcl
v vol1_dcl - ENABLED ACTIVE 175872 SELECT - gen
pl vol1_dcl-02 vol1_dcl ENABLED ACTIVE 175872 CONCAT - RW
sd disk1-02 vol1_dcl-02 disk1 3145728000 175872 0 sdb ENA
v srl RVG1 ENABLED ACTIVE 734003200 SELECT - SRL
pl srl-01 srl ENABLED ACTIVE 734003200 CONCAT - RW
sd srl_disk-01 srl-01 srl_disk 0 734003200 0 sdd ENA
5. Check FS details with fsdb to confirm proper operation.
[root@server101 ~]# echo "8192B.p S"| /opt/VRTS/bin/fsdb -t vxfs /dev/vx/dsk/dg1/vol1
super-block at 00000001.0000
magic a501fcf5 version 16 variant 1
uuid 9c8e7362-396f-0b00-74a7-0a00ebd74f4a
volguid 5f714700-88bc-11ec-be43-4deb3a43547a
ctime 1644310351 998678 (Tue Feb 8 09:52:31 2022 CEST)
log_version 13 logstart 0 logend 0
bsize 8192 size 196608000 dsize 196608000 ninode 0 nau 0
defiextsize 0 oilbsize 0 immedlen 96 ndaddr 10
aufirst 0 emap 0 imap 0 iextop 0 istart 0
bstart 0 femap 0 fimap 0 fiextop 0 fistart 0 fbstart 0
nindir 2048 aulen 32768 auimlen 0 auemlen 1
auilen 0 aupad 0 aublocks 32768 maxtier 15
inopb 32 inopau 0 ndiripau 0 iaddrlen 1 bshift 13
inoshift 5 bmask ffffe000 boffmask 1fff checksum 10713a1a2
free 183317190 ifree 0
efree 62368 65377 63967 63023 62043 61204 1779 891 1309 1048 760 443 244 7 0 6 4 2 1 1 2 2 0 2 1 2 1 0 0 0 0 0
flags 4000 mod 0 clean 3c pflags 1
time 1657991927 82059 (Sat Jul 16 19:18:47 2022 CEST)
oltext[0] 11 oltext[1] 6156 oltsize 1
iauimlen 1 iausize 4 dinosize 256
checksum2 0 checksum3 0
fsetquotaction 0
fsetquotahardlimit 0 fsetquotasoftlimit 0
log_gen 32
fs_metadevid 0 fs_metablkno 0 fs_metatype 0
fs_bsoffset 0 fs_bsdevid 0 fs_bssize 0
fs_wb_loggen 0
[root@server101 ~]#