[lvm] Logical volume vg00/vol01 is used by another device

사용하던 vcs 용 iscsi 볼륨을 삭제 할려고 하니 Logical volume vg00/vol01 is used by another device

메시지가 출력되며 삭제가 되지 않습니다.  dmsetup remove 를 통해 lvremove 를 통해 삭제 할수 있었습니다.

 

 

lvm 삭제시 used by another device 메세지 출력

[root@vcs-storage ~]# lvremove /dev/vg00/vol01
  Logical volume vg00/vol01 is used by another device.
[root@vcs-storage ~]# lvremove /dev/vg00/vol02
  Logical volume vg00/vol02 is used by another device.
[root@vcs-storage ~]# lvremove /dev/vg00/vol03
  Logical volume vg00/vol03 is used by another device.
[root@vcs-storage ~]# lvremove /dev/vg00/vol04
  Logical volume vg00/vol04 is used by another device.
[root@vcs-storage ~]# lvremove /dev/vg00/vol05
  Logical volume vg00/vol05 is used by another device.
[root@vcs-storage ~]#

 

dmsetup ls 로 lvm 볼륨 확인

[root@vcs-storage ~]# dmsetup ls
vg00-vol02      (252:1)
vg01-vol05      (252:14)
vg00-vol01      (252:0)
vg01-vol04      (252:13)
vg01-vol03      (252:12)
vg01-vol02      (252:11)
vg01-vol01      (252:10)
vg00-vol01p8    (252:8)
vg00-vol02p8    (252:9)
vg00-vol03p8    (252:7)
vg00-vol04p8    (252:5)
vg00-vol05p8    (252:6)
vg00-vol05      (252:4)
vg00-vol04      (252:3)
vg00-vol03      (252:2)
[root@vcs-storage ~]#

 

dmset remove 로 볼륨 삭제

[root@vcs-storage ~]# dmsetup remove vg00-vol01p8
[root@vcs-storage ~]# dmsetup remove vg00-vol02p8
[root@vcs-storage ~]# dmsetup remove vg00-vol03p8
[root@vcs-storage ~]# dmsetup remove vg00-vol04p8
[root@vcs-storage ~]# dmsetup remove vg00-vol05p8
[root@vcs-storage ~]# dmsetup remove vg00-vol05
[root@vcs-storage ~]# dmsetup remove vg00-vol04
[root@vcs-storage ~]# dmsetup remove vg00-vol03

 

lvremove 명령어로 정상적으로 삭제 할수 있습니다.

[root@vcs-storage ~]# lvs
  LV    VG   Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  vol01 vg00 -wi-a----- 1.00g
  vol02 vg00 -wi-a----- 1.00g
  vol03 vg00 -wi------- 1.00g
  vol04 vg00 -wi------- 5.00g
  vol05 vg00 -wi------- 5.00g
  vol01 vg01 -wi-ao---- 1.00g
  vol02 vg01 -wi-ao---- 1.00g
  vol03 vg01 -wi-ao---- 1.00g
  vol04 vg01 -wi-ao---- 5.00g
  vol05 vg01 -wi-ao---- 5.00g
[root@vcs-storage ~]# lvremove /dev/vg00/vol01
Do you really want to remove active logical volume vg00/vol01? [y/n]: y
  Logical volume "vol01" successfully removed
[root@vcs-storage ~]# lvremove /dev/vg00/vol02
Do you really want to remove active logical volume vg00/vol02? [y/n]: y
  Logical volume "vol02" successfully removed
[root@vcs-storage ~]# lvremove /dev/vg00/vol03
  Logical volume "vol03" successfully removed
[root@vcs-storage ~]# lvremove /dev/vg00/vol04
  Logical volume "vol04" successfully removed
[root@vcs-storage ~]# lvremove /dev/vg00/vol05
  Logical volume "vol05" successfully removed
[root@vcs-storage ~]# lvs
  LV    VG   Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  vol01 vg01 -wi-ao---- 1.00g
  vol02 vg01 -wi-ao---- 1.00g
  vol03 vg01 -wi-ao---- 1.00g
  vol04 vg01 -wi-ao---- 5.00g
  vol05 vg01 -wi-ao---- 5.00g
[root@vcs-storage ~]#



 

댓글 남기기