On Sat, Dec 29, 2001 at 01:33:26PM -0600, Kevin Corry wrote: > On Friday 28 December 2001 23:48, Matt Zimmerman wrote: > > I have been using LVM for some time, and I am eager to start working > > with EVMS. Once I have working packages, I will be migrating some of my > > LVM volumes to EVMS using them, which should be a good initial test. > > Let me know how your tests go. > > > I have not as yet built a kernel with the EVMS patch. I hope it is > > possible to include both LVM and EVMS for migration purposes; is this > > true? > > Yep. I run kernels with both EVMS and LVM enabled. Just make sure you > don't mount the same LV with both systems at the same time. Also, if you > make any volume modifications with one system (add/delete LVs, add/delete > PVs from a VG, etc), you may need to reboot in order for the other to pick > up the changes.
OK, I now have a functional 2.4.17 with LVM and EVMS. My setup has a few quirks so far: - I build most things as loadable modules, including one of my SCSI drivers, LVM, and the bits of EVMS that support it (I have the MD module disabled for now). Consequently, EVMS doesn't find any devices when it starts up. I tried evms_vgscan, and got badness: Dec 30 20:22:58 mizar Unable to handle kernel paging request at virtual address d89142c0 Dec 30 20:22:58 mizar printing eip: Dec 30 20:22:58 mizar c01650e8 Dec 30 20:22:58 mizar *pde = 01636067 Dec 30 20:22:58 mizar *pte = 00000000 Dec 30 20:22:58 mizar Oops: 0000 Dec 30 20:22:58 mizar CPU: 0 Dec 30 20:22:58 mizar EIP: 0010:[<c01650e8>] Tainted: P Dec 30 20:22:58 mizar EFLAGS: 00010286 Dec 30 20:22:58 mizar eax: 00000004 ebx: d2427900 ecx: 00000000 edx: d89142c0 Dec 30 20:22:58 mizar esi: c682ff38 edi: c682ff68 ebp: 00000000 esp: c682ff1c Dec 30 20:22:58 mizar ds: 0018 es: 0018 ss: 0018 Dec 30 20:22:58 mizar Process evms_vgscan (pid: 7153, stackpage=c682f000) Dec 30 20:22:58 mizar Stack: c682ff38 bffff92c c01667f8 c682ff38 c682ff5c bffff92c c682ff68 00000000 Dec 30 20:22:58 mizar c016380e c682ff5c c00c3f82 00000000 bffff920 00000000 bffff920 00000000 Dec 30 20:22:58 mizar 00000000 00000000 40015a38 c0164d06 bffff920 d1254ac0 bffff920 c00c3f82 Dec 30 20:22:58 mizar Call Trace: [<c01667f8>] [<c016380e>] [<c0164d06>] [<c01355c8>] [<c013ba07>] Dec 30 20:22:58 mizar [<c0106c4b>] I got things to work by using the little evms_rediscover program from the uml tarball on sourceforge, after which evms_vgscan seems happy. - It only seems to find one of my LVM volume groups (see attached evms-rediscover.text and vg_concat.text). - Within that group, apparently because it doesn't recognize one of my PEs (#4, scsi/host1/bus0/target5/lun0/part1), causing lots of messages about incomplete LE maps, though LVM is happy with everything. I think it's being referred to as sdf, but I've been using devfs names on this system through several hardware reconfigurations, so I'm not sure where it falls in the order now. - After running evms_rediscover, when I run evms_vgscan, it sees both of them: mizar# evms_vgscan evms_vgscan -- reading all physical volumes (this may take a while...) evms_vgscan -- Found active volume group "lvm/vg_concat" evms_vgscan -- Found active volume group "lvm/vg_raid1" but there is still only one under /dev/evms/lvm (I'm using DevFS): mizar:[~] ls -R /dev/evms /dev/evms: block_device lvm sda1 sda2 sda3 sdd2 /dev/evms/lvm: vg_concat /dev/evms/lvm/vg_concat: backup debian-cvs hercules music netcache tmp mizar:[~] Both volume groups are visible from the GUI, though, oddly enough. -- - mdz
Dec 31 16:27:56 mizar --ldev_mgr: unrecognized device major : 58 Dec 31 16:27:56 mizar --ldev_mgr: unrecognized device major : 9 Dec 31 16:27:56 mizar --ldev_mgr: found SCSI major : 66 - searching for disks Dec 31 16:27:56 mizar --ldev_mgr: scsi: major name = sd Dec 31 16:27:56 mizar --ldev_mgr: scsi: number of real devices = 0 Dec 31 16:27:56 mizar --ldev_mgr: found SCSI major : 65 - searching for disks Dec 31 16:27:56 mizar --ldev_mgr: scsi: major name = sd Dec 31 16:27:56 mizar --ldev_mgr: scsi: number of real devices = 0 Dec 31 16:27:56 mizar --ldev_mgr: found SCSI major : 8 - searching for disks Dec 31 16:27:56 mizar --ldev_mgr: scsi: major name = sd Dec 31 16:27:56 mizar --ldev_mgr: scsi: number of real devices = 6 Dec 31 16:27:56 mizar --ldev_mgr: scsi: Channel = 0, Id = 0, Lun = 0, Capacity = 8910423 Dec 31 16:27:56 mizar --ldev_mgr: added logical disk(sda) for physical disk(8,0,sda), blocksize(1024) Dec 31 16:27:56 mizar --ldev_mgr: scsi: Channel = 0, Id = 0, Lun = 0, Capacity = 17689267 Dec 31 16:27:56 mizar --ldev_mgr: added logical disk(sdb) for physical disk(8,16,sdb), blocksize(1024) Dec 31 16:27:56 mizar --ldev_mgr: scsi: Channel = 0, Id = 1, Lun = 0, Capacity = 17689267 Dec 31 16:27:56 mizar --ldev_mgr: added logical disk(sdc) for physical disk(8,32,sdc), blocksize(1024) Dec 31 16:27:56 mizar --ldev_mgr: scsi: Channel = 0, Id = 3, Lun = 0, Capacity = 8385121 Dec 31 16:27:56 mizar --ldev_mgr: added logical disk(sdd) for physical disk(8,48,sdd), blocksize(1024) Dec 31 16:27:56 mizar --ldev_mgr: scsi: Channel = 0, Id = 4, Lun = 0, Capacity = 8385121 Dec 31 16:27:56 mizar --ldev_mgr: added logical disk(sde) for physical disk(8,64,sde), blocksize(1024) Dec 31 16:27:56 mizar --ldev_mgr: scsi: Channel = 0, Id = 5, Lun = 0, Capacity = 8385121 Dec 31 16:27:56 mizar --ldev_mgr: added logical disk(sdf) for physical disk(8,80,sdf), blocksize(1024) Dec 31 16:27:56 mizar --ldev_mgr: found IDE major : 3 - searching for disks Dec 31 16:27:56 mizar --dos_part: validate_mbr_ebr: valid MBR detected! Dec 31 16:27:56 mizar --dos_part: creating segment 'sda1'. Dec 31 16:27:56 mizar --dos_part: creating segment 'sda2'. Dec 31 16:27:56 mizar --dos_part: creating segment 'sda3'. Dec 31 16:27:56 mizar --dos_part: validate_mbr_ebr: valid EBR detected! Dec 31 16:27:56 mizar --dos_part: creating segment 'sdb1'. Dec 31 16:27:56 mizar --dos_part: validate_mbr_ebr: valid EBR detected! Dec 31 16:27:56 mizar --dos_part: creating segment 'sdc1'. Dec 31 16:27:56 mizar --dos_part: validate_mbr_ebr: valid EBR detected! Dec 31 16:27:56 mizar --dos_part: creating segment 'sdd1'. Dec 31 16:27:56 mizar --dos_part: creating segment 'sdd2'. Dec 31 16:27:56 mizar --dos_part: validate_mbr_ebr: valid EBR detected! Dec 31 16:27:57 mizar --dos_part: creating segment 'sde1'. Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: partition(3) larger than available space detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: valid MBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: partition(1) larger than available space detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: partition(3) larger than available space detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: valid MBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: partition(1) larger than available space detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: invalid signature! Dec 31 16:27:57 mizar --dos_part: validate_mbr_ebr: no valid MBR/EBR detected! Dec 31 16:27:57 mizar --lvm: PV sdb1 is unassigned. Deleting. Dec 31 16:27:57 mizar --dos_part: deleting segment 'sdb1'. Dec 31 16:27:57 mizar --lvm: Discovered volume group vg_concat Dec 31 16:27:57 mizar --lvm: PV sdc1 added to Group vg_concat Dec 31 16:27:57 mizar --lvm: Detected UUID mismatch for PV sdd1! Dec 31 16:27:57 mizar --lvm: PV sdd1 is recorded as being at index 3, Dec 31 16:27:57 mizar --lvm: but Group vg_concat has it recorded at index 2. Dec 31 16:27:57 mizar --lvm: Run the EVMS Engine to correct the problem. Dec 31 16:27:57 mizar --lvm: If you have any snapshot regions in group vg_concat Dec 31 16:27:57 mizar --lvm: it is recommended that you delete them immediately! Dec 31 16:27:57 mizar --lvm: PV sdd1 added to Group vg_concat Dec 31 16:27:57 mizar --lvm: Detected UUID mismatch for PV sde1! Dec 31 16:27:57 mizar --lvm: PV sde1 is recorded as being at index 5, Dec 31 16:27:57 mizar --lvm: but Group vg_concat has it recorded at index 4. Dec 31 16:27:57 mizar --lvm: Run the EVMS Engine to correct the problem. Dec 31 16:27:57 mizar --lvm: If you have any snapshot regions in group vg_concat Dec 31 16:27:57 mizar --lvm: it is recommended that you delete them immediately! Dec 31 16:27:57 mizar --lvm: PV sde1 added to Group vg_concat Dec 31 16:27:57 mizar --lvm: Checking Group vg_concat Dec 31 16:27:57 mizar --lvm: Group vg_concat is incomplete. Dec 31 16:27:57 mizar --lvm: Only 3 of 4 PVs found. Dec 31 16:27:57 mizar --lvm: Volumes in this group may be incomplete. Dec 31 16:27:57 mizar --lvm: Searching for volumes in group vg_concat Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/netcache in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/tmp in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/backup in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/hercules in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/music in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/debian-cvs in group vg_concat. Dec 31 16:27:57 mizar --lvm: Building LE maps for new volumes in group vg_concat. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/netcache has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/tmp has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/backup has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 233 out of 281 LEs. Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/netcache Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/netcache has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Deleting volume lvm/vg_concat/netcache Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/tmp Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/tmp has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Deleting volume lvm/vg_concat/tmp Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/backup Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/backup has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 233 out of 281 LEs. Dec 31 16:27:57 mizar --lvm: Deleting volume lvm/vg_concat/backup Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/hercules Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/music Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/debian-cvs Dec 31 16:27:57 mizar --lvm: Exporting LVM volume lvm/vg_concat/hercules Dec 31 16:27:57 mizar --lvm: Exporting LVM volume lvm/vg_concat/music Dec 31 16:27:57 mizar --lvm: Exporting LVM volume lvm/vg_concat/debian-cvs Dec 31 16:27:57 mizar --lvm: Searching for volumes in group vg_concat Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/netcache in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/tmp in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/backup in group vg_concat. Dec 31 16:27:57 mizar --lvm: Building LE maps for new volumes in group vg_concat. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/netcache has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/tmp has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/backup has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 233 out of 281 LEs. Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/netcache Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/netcache has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Deleting volume lvm/vg_concat/netcache Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/tmp Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/tmp has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Deleting volume lvm/vg_concat/tmp Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/backup Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/backup has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 233 out of 281 LEs. Dec 31 16:27:57 mizar --lvm: Deleting volume lvm/vg_concat/backup Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/hercules Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/music Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/debian-cvs Dec 31 16:27:57 mizar --lvm: Searching for volumes in group vg_concat Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/netcache in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/tmp in group vg_concat. Dec 31 16:27:57 mizar --lvm: Discovered volume lvm/vg_concat/backup in group vg_concat. Dec 31 16:27:57 mizar --lvm: Building LE maps for new volumes in group vg_concat. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/netcache has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/tmp has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/backup has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 233 out of 281 LEs. Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/netcache Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/netcache has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/tmp Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/tmp has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 128 out of 256 LEs. Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/backup Dec 31 16:27:57 mizar --lvm: Volume lvm/vg_concat/backup has incomplete LE map. Dec 31 16:27:57 mizar --lvm: Missing 233 out of 281 LEs. Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/hercules Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/music Dec 31 16:27:57 mizar --lvm: Checking logical volume lvm/vg_concat/debian-cvs Dec 31 16:27:57 mizar --lvm: LVM volume lvm/vg_concat/netcache is read-only Dec 31 16:27:57 mizar --lvm: Exporting LVM volume lvm/vg_concat/netcache Dec 31 16:27:57 mizar --lvm: LVM volume lvm/vg_concat/tmp is read-only Dec 31 16:27:57 mizar --lvm: Exporting LVM volume lvm/vg_concat/tmp Dec 31 16:27:57 mizar --lvm: LVM volume lvm/vg_concat/backup is read-only Dec 31 16:27:57 mizar --lvm: Exporting LVM volume lvm/vg_concat/backup Dec 31 16:27:57 mizar --evms: no feature header found on 'sdf'. Dec 31 16:27:57 mizar --evms: no feature header found on 'sda1'. Dec 31 16:27:57 mizar --evms: no feature header found on 'sda2'. Dec 31 16:27:57 mizar --evms: no feature header found on 'sda3'. Dec 31 16:27:57 mizar --evms: no feature header found on 'sdd2'. Dec 31 16:27:57 mizar --evms: no feature header found on 'lvm/vg_concat/hercules'. Dec 31 16:27:57 mizar --evms: no feature header found on 'lvm/vg_concat/music'. Dec 31 16:27:57 mizar --evms: no feature header found on 'lvm/vg_concat/debian-cvs'. Dec 31 16:27:57 mizar --evms: no feature header found on 'lvm/vg_concat/netcache'. Dec 31 16:27:57 mizar --evms: no feature header found on 'lvm/vg_concat/tmp'. Dec 31 16:27:57 mizar --evms: no feature header found on 'lvm/vg_concat/backup'. Dec 31 16:27:57 mizar --evms: preventing logical disk 'sdf' from becoming a compatibility volume! Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,1) from "/dev/evms/sda1". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,2) from "/dev/evms/sda2". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,3) from "/dev/evms/sda3". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,4) from "/dev/evms/sdd2". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,5) from "/dev/evms/lvm/vg_concat/hercules". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,6) from "/dev/evms/lvm/vg_concat/music". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,7) from "/dev/evms/lvm/vg_concat/debian-cvs". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,8) from "/dev/evms/lvm/vg_concat/netcache". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,9) from "/dev/evms/lvm/vg_concat/tmp". Dec 31 16:27:57 mizar --evms: Exorting EVMS Volume(63,10) from "/dev/evms/lvm/vg_concat/backup".