[pve-devel] vm stop tasks hanging
Dietmar Maurer
dietmar at proxmox.com
Fri Apr 20 17:37:00 CEST 2012
> it's possible to filter at command line like this:
>
> (exemple for scanning /dev/sda only)
>
> /sbin/lvs --config 'devices { filter = [ "a|^/dev/sda$|", "r/.*/" ] }' --separator :
> --noheadings --units b --unbuffered --nosuffix --options
> vg_name,lv_name,lv_size,uuid,tags
>
> maybe can we pass device to lvm_lvs () ?
I don't really understand why you want to do that. We want to 'deactivate' active devices,
So all we need to do is testing if the device is active (-b /dev/${VG}/${NAME})? Maybe I miss something?
- Dietmar
More information about the pve-devel
mailing list