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

Re: [linux-lvm] '/etc/init.d/lvm' script in debian package



On Thu, 21 Dec 2000, Russell Coker wrote:

> Thanks for the suggestion about checking for a directory.  But how will I 
> determine what version of LVM if it's a directory?  Will there be 
> /proc/lvm/version?

You can check the LVM and IOP version in /proc/lvm/global.

[claudio pokey:/home/claudio] cat /proc/lvm/global
LVM module version 0.9 (13/11/2000)

Total:  1 VG  1 PV  5 LVs (5 LVs open 5 times)

Global: 15258 bytes malloced   IOP version: 10   14:55:25 active

VG:  vg00  [1 PV, 5 LV/5 open]  PE Size: 4096 KB
  Usage [KB/PE]: 7557120 /1845 total  2465792 /602 used  5091328 /1243 free
  PV:  [AA] hda3                   7557120 /1845     2465792 /602      5091328 /1243  
    LVs: [AWDL  ] lv_swap                     131072 /32       1x open
         [AWDL  ] lv_tmp                       32768 /8        1x open
         [AWDL  ] lv_share                    204800 /50       1x open
         [AWDL  ] lv_home                    1048576 /256      1x open
         [AWDL  ] lv_src                     1048576 /256      1x open


claudio




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