[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] removing a missing vg



On Mon, 2009-05-11 at 14:22 -0500, Eugene Vilensky wrote:

>         dmsetup remove <device name>
> 
> on the LV device?
> 
> #dmsetup remove /dev/vgTEST/lvTEST 
> dm_task_set_name: Device /dev/vgTEST/lvTEST not found
> Command failed

No, that's just a symbolic link. You want the device in the /dev/mapper
directory named as VgName-LvName.

E.g. on a machine with a VG named system containing an LV named lv00:
# ls -l /dev/system/lv00 
lrwxrwxrwx  1 root root 23 Mar 30 10:04 /dev/system/lv00
-> /dev/mapper/system-lv00

# dmsetup remove /dev/system/lv00 
dm_task_set_name: Device /dev/system/lv00 not found
Command failed
# dmsetup remove system-lv00

The arguments to dmsetup are documented in its man page. When you remove
an LV like this you'll be left with a dangling symlink in
the /dev/VgName directory. You can clean this up with rm if you wish
although leaving it lying around won't cause any zblems.

> on the mpath device?
> 
> # dmsetup remove /dev/mpath/mpath1 
> device-mapper: remove ioctl failed: Device or resource busy
> Command failed

You need to remove the LV first.

Regards,
Bryn.

> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]