To see who has in charge the VG:
[root@f18ovn01 ~]# fuser /dev/013bcc40-5f3d-4394-bd3b-971b14852654/*
/dev/dm-83: 27445
/dev/dm-73: 27445
/dev/dm-84: 27445
/dev/dm-82: 27445
[root@f18ovn01 ~]# ps -wfp 27445
UID PID PPID C STIME TTY TIME CMD
qemu 27445 1 7 Apr16 ? 03:02:22 /usr/bin/qemu-kvm
-name zensrv -S -M pc-0.14 -cpu Opteron_G2 -enable-kvm -m 2048 -sm
It was a vm for which I moved the disk and apparently I got error
about it but from the gui the disk was the new one (original disk was
on this sd...); see:
http://lists.ovirt.org/pipermail/users/2013-April/013847.html
So shutdown of the VM
[root@f18ovn01 ~]# fuser /dev/013bcc40-5f3d-4394-bd3b-971b14852654/*
[root@f18ovn01 ~]#
Now remove operation from gui gets:
Error while executing action Remove Storage Domain: Storage domain
cannot be reached. Please ensure it is accessible from the host(s).
So it seems I have a missing link but the actual structure is there:
[root@f18ovn01 ~]# ll /rhev/data-center/5849b030-626e-47cb-ad90-3ce782d831b3/
total 32
lrwxrwxrwx. 1 vdsm kvm 66 Apr 18 09:03
14b5167c-5883-4920-8236-e8905456b01f ->
/rhev/data-center/mnt/blockSD/14b5167c-5883-4920-8236-e8905456b01f
lrwxrwxrwx. 1 vdsm kvm 66 Apr 18 09:03
2aff7dc6-e25b-433b-9681-5541a29bb07c ->
/rhev/data-center/mnt/blockSD/2aff7dc6-e25b-433b-9681-5541a29bb07c
lrwxrwxrwx. 1 vdsm kvm 66 Apr 18 09:03
3fb66ba1-cfcb-4341-8960-46f0e8cf6e83 ->
/rhev/data-center/mnt/blockSD/3fb66ba1-cfcb-4341-8960-46f0e8cf6e83
lrwxrwxrwx. 1 vdsm kvm 66 Apr 18 09:03
596a3408-67d7-4b26-b482-e3a7554a5897 ->
/rhev/data-center/mnt/blockSD/596a3408-67d7-4b26-b482-e3a7554a5897
lrwxrwxrwx. 1 vdsm kvm 66 Apr 18 09:03
8573d237-f86f-4b27-be80-479281a53645 ->
/rhev/data-center/mnt/blockSD/8573d237-f86f-4b27-be80-479281a53645
lrwxrwxrwx. 1 vdsm kvm 66 Apr 18 09:03
be882de7-6c79-413b-85aa-f0b8b77cb59e ->
/rhev/data-center/mnt/blockSD/be882de7-6c79-413b-85aa-f0b8b77cb59e
lrwxrwxrwx. 1 vdsm kvm 88 Apr 18 09:03
e3251723-08e1-4b4b-bde4-c10d6372074b ->
/rhev/data-center/mnt/f18engine.ceda.polimi.it:_ISO/e3251723-08e1-4b4b-bde4-c10d6372074b
lrwxrwxrwx. 1 vdsm kvm 66 Apr 18 09:03 mastersd ->
/rhev/data-center/mnt/blockSD/2aff7dc6-e25b-433b-9681-5541a29bb07c
[root@f18ovn01 ~]# ll
/rhev/data-center/mnt/blockSD/013bcc40-5f3d-4394-bd3b-971b14852654
total 8
drwxr-xr-x. 2 vdsm kvm 4096 Mar 11 18:48 dom_md
drwxr-xr-x. 4 vdsm kvm 4096 Apr 16 17:54 images
I don't know if
existence of the link <--> SD associated to DC or what is
so I try to force destroy it
Message:
"
The following operation is unrecoverable and destructive!
All references to objects that reside on Storage Domain DS6800_Z2_1601
in the database will be removed. You may need to manually clean the
storage in order to reuse it.
"
Approve
and I get it
Storage Domain DS6800_Z2_1601 was forcibly removed by admin@internal
vg is still there:
[root@f18ovn01 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
013bcc40-5f3d-4394-bd3b-971b14852654 1 5 0 wz--n- 99.62g 83.50g
14b5167c-5883-4920-8236-e8905456b01f 1 11 0 wz--n- 99.62g 58.25g
2aff7dc6-e25b-433b-9681-5541a29bb07c 1 11 0 wz--n- 99.62g 21.75g
3fb66ba1-cfcb-4341-8960-46f0e8cf6e83 1 18 0 wz--n- 149.62g 64.38g
596a3408-67d7-4b26-b482-e3a7554a5897 1 13 0 wz--n- 99.62g 57.75g
8573d237-f86f-4b27-be80-479281a53645 1 6 0 wz--n- 49.62g 45.75g
VG_ISCSI 1 1 0 wz--n- 50.00g 0
be882de7-6c79-413b-85aa-f0b8b77cb59e 1 6 0 wz--n- 99.62g 95.75g
fedora_f18ovn01 1 2 0 wz--n- 67.84g 4.00m
vg_drbd0 1 1 0 wz--n- 2.00g 0
could I safely remove from OS that VG and its LVs?
Gianluca