1834497 Members
2552 Online
110067 Solutions
New Discussion

vxvm database cleanup

 
Bob Moore_1
Advisor

vxvm database cleanup

I am running vxvm on superdomes and want to know how to cleanup old entries for disks in the vxvmdb. I have been adding and deleting drives and it seems the only way to get vxvm to cleanup after itself is to reboot. Is there a way to get vxvm to get rid of old disk entries without rebooting?
6 REPLIES 6
James A. Donovan
Honored Contributor

Re: vxvm database cleanup

Have you take a look at the vxdctl command?

# vxdctl rm
Remember, wherever you go, there you are...
Bob Moore_1
Advisor

Re: vxvm database cleanup

Wow...that totaly sounded like a "RTFM"
LOL..which btw, is exactly what i needed. :-)
Yup..there it is in the man page..

#vxdctl rm disk

Thanks for the kick in the pants!!
take it easy,
BOB
Bob Moore_1
Advisor

Re: vxvm database cleanup

well....that doesn't seem to work.. :-(
i get an error when i use the name given the disk in vxvm. like EMC0_117..and i can't use the ctd number because it's gone..i've already run rmsf on on the NO_HW devices. I also tried vxdisk rm disk..no luck..

root@hostname:>vxdisk rm disk EMC0_117
vxvm:vxdisk: ERROR: Failed to obtain locks:
disk: no such object in the configuration

root@hostname:>vxdctl rm disk EMC0_117
vxvm:vxdctl: ERROR: Cannot remove disk device EMC0_117: Record not in disk group

Am i doing something wrong?

thanks,
BOB

James A. Donovan
Honored Contributor

Re: vxvm database cleanup

Been a while since I worked with VxVM. Reviewing the vxdctl man page, I'm thinking "vxdctl enable" might work.
Remember, wherever you go, there you are...
Bob Moore_1
Advisor

Re: vxvm database cleanup

vxdctl enable only seems to rescan for new disks and adds them..it doesn't remove any of the old devices.
Bob Moore_1
Advisor

Re: vxvm database cleanup

ARRRG!! I got it..my syntax was wrong in using the vxdisk rm command...it's supposed to be:

vxdisk rm
not
vxdisk rm disk

thanks for the help..your initial "rtfm" was correct..you're not losing your mind.. LOL..

thanks again for the help,
BOB