3 Replies Latest reply: Jan 28, 2013 4:34 AM by 916437 RSS

    Unable to delete non-existent harddisk in OVM manager

    916437
      Unable to delete the previously removed (unpresented, deleted) SAN disk from the OVM 3.0.3 manager database.

      When we trying to delete the physical disk, we can't because in OVMMGR-s database there is a partition it.
      When we trying to delete the partition, we can't, because the disk is unreachable.



      Is there any solution?
        • 1. Re: Unable to delete non-existent harddisk in OVM manager
          985976
          Deleting the Disk from the OVM Manager Database is something really not easy to do or there might be no direct way to do it but from the OVM Manager UI or from the OVM_Shell

          Please provide the messages in /var/log/ovs-agent.log from one of the VM Servers related to the missing disk. does the VM server gives an error about this missing disk. please run multipath -ll on the vm server look for the Disk failure.

          you need to clear this disk frist from the VM server agent and you can do this by restarting the VM server. if you have VMs running on that Server you could migrate them to another servers prior of restarting it.

          after restarting the all VM servers and cleaning the non exist disks. then you can move to cllear it from the VM Manager by doing a database fixup.

          please provide your VM Manager Version
          • 2. Re: Unable to delete non-existent harddisk in OVM manager
            916437
            Thanks for your help,

            We have already restarted the server, and checked the disk with multipath command. The disk is completely removed from the hypervisor.


            [root@bvovm ~]# multipath -ll
            3600c0ff0001383728deb384f01000000 dm-1 HP,P2000 G3 FC
            size=931G features='1 queue_if_no_path' hwhandler='0' wp=rw
            |-+- policy='round-robin 0' prio=50 status=active
            | |- 1:0:1:3 sdd 8:48 active ready running
            | `- 2:0:2:3 sdp 8:240 active ready running
            `-+- policy='round-robin 0' prio=10 status=enabled
            |- 1:0:2:3 sdh 8:112 active ready running
            `- 2:0:1:3 sdl 8:176 active ready running
            3600c0ff000138372f2ff344f01000000 dm-0 HP,P2000 G3 FC
            size=140G features='1 queue_if_no_path' hwhandler='0' wp=rw
            |-+- policy='round-robin 0' prio=50 status=active
            | |- 1:0:1:2 sdc 8:32 active ready running
            | `- 2:0:2:2 sdo 8:224 active ready running
            `-+- policy='round-robin 0' prio=10 status=enabled
            |- 1:0:2:2 sdg 8:96 active ready running
            `- 2:0:1:2 sdk 8:160 active ready running
            3600c0ff00013837294c83b4f01000000 dm-2 HP,P2000 G3 FC
            size=19G features='1 queue_if_no_path' hwhandler='0' wp=rw
            |-+- policy='round-robin 0' prio=50 status=active
            | |- 1:0:1:4 sde 8:64 active ready running
            | `- 2:0:2:4 sdq 65:0 active ready running
            `-+- policy='round-robin 0' prio=10 status=enabled
            |- 1:0:2:4 sdi 8:128 active ready running
            `- 2:0:1:4 sdm 8:192 active ready running
            3600c0ff0001383729e16354f01000000 dm-3 HP,P2000 G3 FC
            size=14G features='1 queue_if_no_path' hwhandler='0' wp=rw
            |-+- policy='round-robin 0' prio=50 status=active
            | |- 1:0:1:1 sdb 8:16 active ready running
            | `- 2:0:2:1 sdn 8:208 active ready running
            `-+- policy='round-robin 0' prio=10 status=enabled
            |- 1:0:2:1 sdf 8:80 active ready running
            `- 2:0:1:1 sdj 8:144 active ready running


            [root@bvovm ~]# tail -f /var/log/ovs-agent.log

            [2013-01-22 13:58:19 32173] DEBUG (OVSServices:56) dispatch function storage_plugin_destroyFileSystem to server https://oracle:******@192.168.70.170:8899/api/1
            [2013-01-22 13:58:19 32174] DEBUG (OVSCommons:124) storage_plugin_destroyFileSystem: ('oracle.ocfs2.OCFS2.OCFS2Plugin', {'status': '', 'admin_user': '', 'admin_host': '', 'uuid': '0004fb0000090000a14cb80a6fb34384', 'total_sz': 0, 'admin_passwd': '******', 'storage_desc': '', 'free_sz': 0, 'access_host': '', 'storage_type': 'FileSys', 'alloc_sz': 0, 'access_grps': [], 'used_sz': 0, 'name': '0004fb0000090000a14cb80a6fb34384'}, {'status': '', 'uuid': 'b20c36a940cb4bc69e099e683503bb63', 'backing_device': '/dev/mapper/3600c0ff000138372dd7cf45001000000', 'ss_uuid': '0004fb0000090000a14cb80a6fb34384', 'size': '149999845376', 'free_sz': '129358626816', 'state': 1, 'access_grp_names': [], 'access_path': '/dev/mapper/3600c0ff000138372dd7cf45001000000', 'name': None})
            [2013-01-22 13:58:19 32174] INFO (StoragePluginManager:37) storage_plugin_destroyFileSystem(oracle.ocfs2.OCFS2.OCFS2Plugin)
            [2013-01-22 13:58:19 32174] ERROR (OCFS2:793) Cannot destroy filesystem "None" on device "/dev/mapper/3600c0ff000138372dd7cf45001000000": No filesystem on device
            [2013-01-22 13:58:19 32174] INFO (StoragePluginManager:61) Exception:
            [2013-01-22 13:58:19 32174] ERROR (OVSCommons:143) catch_error: 'Cannot destroy filesystem "None" on device "/dev/mapper/3600c0ff000138372dd7cf45001000000": No filesystem on device'
            Traceback (most recent call last):
            File "/opt/ovs-agent-3.0/OVSCommons.py", line 141, in wrapper
            return func(*args)
            File "/opt/ovs-agent-3.0/StoragePluginManager.py", line 286, in storage_plugin_destroyFileSystem
            return storage_plugin(impl_name, *params)
            File "/opt/ovs-agent-3.0/StoragePluginManager.py", line 53, in storage_plugin
            result = plugin_method(*params)
            File "/opt/storage-connect/plugins/oracle/ocfs2/OCFS2.py", line 794, in destroyFileSystem
            raise InvalidValueEx(error)
            InvalidValueEx: 'Cannot destroy filesystem "None" on device "/dev/mapper/3600c0ff000138372dd7cf45001000000": No filesystem on device'
            [2013-01-22 13:58:19 32173] ERROR (OVSServices:60) dispatch error: storage_plugin_destroyFileSystem: <Fault 1: 'OSCPlugin.InvalidValueEx:\'Cannot destroy filesystem "None" on device "/dev/mapper/3600c0ff000138372dd7cf45001000000": No filesystem on device\''>
            [2013-01-22 13:58:19 32173] ERROR (OVSCommons:143) catch_error: <Fault 1: 'OSCPlugin.InvalidValueEx:\'Cannot destroy filesystem "None" on device "/dev/mapper/3600c0ff000138372dd7cf45001000000": No filesystem on device\''>
            Traceback (most recent call last):
            File "/opt/ovs-agent-3.0/OVSCommons.py", line 141, in wrapper
            return func(*args)
            File "/opt/ovs-agent-3.0/OVSServices.py", line 58, in dispatch
            return getattr(sp, func)(*args)
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1099, in __call__
            return self.__send(self.__name, args)
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1386, in __request
            verbose=self.__verbose
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1150, in request
            return self._parse_response(h.getfile(), sock)
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 1289, in parseresponse
            return u.close()
            File "/opt/ovs-agent-3.0/utils/xmlrpclib.py", line 746, in close
            raise Fault(**self._stack[0])
            Fault: <Fault 1: 'OSCPlugin.InvalidValueEx:\'Cannot destroy filesystem "None" on device "/dev/mapper/3600c0ff000138372dd7cf45001000000": No filesystem on device\''>


            How can we continue with database fixup?
            • 3. Re: Unable to delete non-existent harddisk in OVM manager
              916437
              We have tried to run the fixup, without success.

              The script

              /ovm_upgrade.sh fixup dbhost=localhost dbport=1521 dbsid=OVM dbuser=ovs dbpass=password


              run OK, but the non-existent disk with the partition remained in the OVMMGR.


              Is there any idea?

              Regards

              Zsolt