A Vertitas filesystem can sometimes become corrupted. This specially happens when your replicating a filesystem. So how do you fix that !? Well lets begin.
Say your importing a diskgroup called app-dg
vxdg import app-dg #VxVM vxdg ERROR V-5-1-10978 Disk group app-dg: import failed: Disk is in use by another host
Now lets list all the disk groups on the system
vxdisk -o alldgs list
So how do you fix it ? You have to clear the host ID attached with that disk group
vxdg -f -C import app-dg vxvol -g app-dg startall
Now lets mount it
mount /local/zones/app/appmount UX:vxfs mount: ERROR: V-3-21268: /dev/vx/dsk/app-dg/appmount is corrupted. needs checking.
Oops so now we begin the real fixing.
fsck -F vxfs -o full /dev/vx/dsk/app-dg/appmount log replay in progress pass0 – checking structural files pass1 – checking inode sanity and blocks pass2 – checking directory linkage pass3 – checking reference counts pass4 – checking resource maps OK to clear log? (ynq)y flush fileset headers? (ynq)y set state to CLEAN? (ynq)y
Now you have repaired the file system now mount it again
And voila ! 😉