Hi all, Since the announce of lvm2 I used succefuly lvm tools (also with evms tools before 1.9 ie evms-1.2.1) on my linux hppa box runing a last updated linux-2.4.21-pa8 (+ a very small hack to use generic_ffs()). Now I try to install lvm2 and dm1. I so recover last lvm-1.0.7. I configure it and build PATCHES which I apply against kernel (without VFS-lock). Then I reboot it and install tools: _no pb_ :-) # vgdisplay --version vgdisplay: Logical Volume Manager 1.0.7 Heinz Mauelshagen Sistina Software 28/03/2003 (IOP 10) # vgdisplay -v --- Volume group --- VG Name EvmsLvm VG Access read/write VG Status available/resizable VG # 0 MAX LV 256 Cur LV 2 Open LV 0 MAX LV Size 255.99 GB Max PV 256 Cur PV 1 Act PV 1 VG Size 3.99 GB PE Size 4 MB Total PE 1022 Alloc PE / Size 896 / 3.50 GB Free PE / Size 126 / 504 MB VG UUID k7px10-qfN2-J3y0-fony-aczD-HLwn-ZnN9G3 --- Logical volume --- LV Name /dev/EvmsLvm/DebianRep VG Name EvmsLvm LV Write Access read/wri e LV Status available LV # 1 # open 0 LV Size 3 GB Current LE 768 Allocated LE 768 Allocation next free Read ahead sectors 120 Block device 58:1 --- Logical volume --- LV Name /dev/EvmsLvm/JfsTst VG Name EvmsLvm LV Write Access read/write LV Status available LV # 2 # open 0 LV Size 512 MB Current LE 128 Allocated LE 128 Allocation next free Read ahead sectors 120 Block device 58:2 --- Physical volumes --- PV Name (#) /dev/sdc (1) PV Status avai able / allocatable Total PE / Free PE 1022 / 126 _no pb_ to mount and use usually the first lv (/dev/EvmsLvm/DebianRep) #df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md2 1700208 1086488 52735 68% / /dev/md0 123891 58924 58571 51% /boot /dev/md3 247791 132508 102490 57% /var /dev/md4 123827 4118 113316 4% /tmp /dev/md5 123827 10339 107095 9% home /dev/md6 2015696 1200328 794892 61% /usr/src /dev/md7 2015696 1927752 67468 97% /Sources /dev/md8 2015696 1612664 382556 81% /Develop /dev/EvmsLvm/DebianRep 3096336 2926848 138032 96% /Debian I so go further and patch kernel with dm/patches/devicemapper-ioctl.patch (no VFS-lock) rebuild it wihtout any pb or warning (about dm part :-)) ). I so install dmsetup tool and reboot with this kernel sucessfully (no pb to discover vg and lv as lvm1 tools are still installed) The dmsetup create well special file: # ll /dev/mapper total 28 drwxr-xr-x 2 root root 4096 Aug 5 17:52 . drwxr-xr-x 9 root root 24576 Aug 5 16:04 .. crw------- 1 root root 10, 63 Aug 5 17:52 control :-) To be care I "vgchange -a n", than compile and install lvm2 tools. Then I just edit lvm.conf file so that filter only sd disc filter = [ "a|^/dev/sd|, "r/.*/" ] [...] file = /var/log/lvm2.log level=7 activation=1 # in log section Unfortunately _vgchange_ failled to recover vg structure: #vgscan --version LVM version: 2.00.05 (2003-07-18) Library version: 1.00.02-ioctl (2003-07-12) Driver version 4.0.1 #vgscan Volume group "EvmsLvm" not found Wiping cache of LVM-capable devices Wiping internal cache Reading all physical volumes. This may take a while... Finding all volume groups Finding volume group "EvmsLvm" Very strange: it first tell 'Volume group "EvmsLvm" not found' and finaly 'Finding volume group "EvmsLvm"' ? Vgchange will it tell the true? #vgchange -a y too bad: Out of memory. Requested 2483027988 bytes. Failed to read extents from /dev/sdc Unable to find volume group "EvmsLvm" Any idea? (As I use full log I join a gz of this lvm2.log) Thanks in advance for help, Joel PS: I do a similar exercise on my ia32 platform (same linux-2.4.21 not pa specific naturaly) and do not met any pb. There is anyway a small difference: on the ia32 I build a vg over a disk slice; on hppa, allover a full disk (i don't think that it does matter, but just in case?) ------------------------------------------------------ Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003. On s'habitue vite à payer son ADSL moins cher! Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr
Attachment:
lvm2.log.gz
Description: GNU Zip compressed data