12-11-2013 09:19 AM
i am on the secondary of a rvg. but the primary is not connected.
how can i remove the rvg stuff?
i tried
vradmin -g $dg -f delsec $rvg
but it gave me this error:
Solved! Go to Solution.
12-12-2013 05:05 AM
Hi,
what is the error you are getting while runing vxvol dis ? did you stop rvg first using vxrvg stop OR vxrvg -f stop ?
disassociating volume from rvg means you are taking out volume out of RVG. You need to disassociate all the volumes before you can delete the rvg using vxedit command.
You can also try giving a "-f" with vxvol command to force disassociate
vxvol -f -g <diskgroup> dis <volume> <rvg>
G
12-11-2013 09:22 AM
12-11-2013 09:46 AM
To delete manually use:
Mike
12-11-2013 09:51 AM
i am afraid it is not as simple as that.
i have disabled the rvg. removed the rlink
how can i just remove the volume association without removing the volumes?
12-11-2013 10:28 AM
use "vxvol -g diskgroup dis vol_name"
12-12-2013 03:07 AM
I tried below but it didn't work:
vxvol -g $dg dis $rvg
but i guess i should have tried to dis the data vol as well.
12-12-2013 05:05 AM
Hi,
what is the error you are getting while runing vxvol dis ? did you stop rvg first using vxrvg stop OR vxrvg -f stop ?
disassociating volume from rvg means you are taking out volume out of RVG. You need to disassociate all the volumes before you can delete the rvg using vxedit command.
You can also try giving a "-f" with vxvol command to force disassociate
vxvol -f -g <diskgroup> dis <volume> <rvg>
G
12-12-2013 05:45 AM
i have run "vxrvg -g $dg stop $rvg". and the rvg became DISABLED
i have run "vxvol -g $dg dis $rvg" but as you suggested i should probably have run "vxvol -g $dg dis $vol $rvg"
12-12-2013 05:52 AM
After the RVG is disabled, when you ran vxvol -g $dg dis $rvg, did you got any error ?
If yes, paste the error message
Also, try a force option as I suggested above
# vxvol -f -g $dg dis $vol $rvg
G
12-12-2013 06:10 AM
there was error reported when running "vxvol -f -g $dg dis $rvg", it complained about the data volume associated.
anyway i can't try any more. i have run "vxedit -g $dg -rf rm $rvg" already.
but next time i would give your method a shot though.