[linux-lvm] how to determine if /dev/... is an LV?

Harald Milz hmilz at linux-magazin.de
Thu Aug 23 15:48:53 UTC 2001


In article <20010822034425.F8742 at pc.ilinx>, Brian J. Murrell <6888736b923846176364586bf2e7649f at interlinx.bc.ca> wrote:

> lvdisplay -D -c /dev/VG/lvol1 2>&1 | grep "^/dev/VG/lvol1" >/dev/null

lvdisplay -D -c /dev/VG/lvol1 2>&1 | grep -q ^/dev/VG/lvol1 && do whatever
you want :-) 

-- 
Harald Milz           |     hm at linux-magazin.de     | "He was a modest,
Linux New Media AG    | phone  +49 (0) 89 993411-20 | good-humored boy. It
Stefan-George-Ring 24 | fax    +49 (0) 89 993411-99 | was Oxford that made
D-81929 Muenchen      | http://www.linux-magazin.de | him insufferable."




More information about the linux-lvm mailing list