From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3BC2405B.B6BDBE97@bellatlantic.net> Date: Mon, 08 Oct 2001 20:10:03 -0400 From: Uday Bhaskar Sarma Seetamraju MIME-Version: 1.0 References: Content-Transfer-Encoding: quoted-printable Subject: [linux-lvm] vgcreate blackhole Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: Content-Type: text/plain; charset="windows-1252" To: linux-lvm@sistina.com % uname -a Linux linux1.localdomain 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i68= 6 Unknown (Mandrake Distribution 8.0) % cat /proc/lvm/global LVM module version 0.9.1_beta2 (18/01/2001) % vgcreate --version vgcreate: unrecognized option `--version' Logical Volume Manager 0.9 Heinz Mauelshagen, Sistina Software 13/11/2000 (IOP 10) =2E.. Summary: VGCREATE finishes nicely (verbose output below). But a VGSCAN immediately after vgcreate , shows nothing changed. A little longer Summary of the problem: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Have had LVM up for a little while now. Wanted to add LVM over RAID1 (ref: my previous email help). Created two devices md0 and md1 (see the raidtab below). Had the same identical problem with md0. After reading the linux-lvm list, I tried it with md1 only, butno difference. So, I am writing this email re: the md1 experience only. Note: All the lvm commands were run ONLY in linux-single-user mode. But some of the LVM volumes were mounted while running the cgvreate, pvcreate commands. From my prior experience and by the man pages, it doesn't matter, but then.... DETAILS of the PROBLEM =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Run the command % vgcreate -v MKP4 /dev/md1 (See detailed output below). vgscan does not show MKP4. PVSCAN shows unknown volume. see listing bel= ow. After that any attempt to modify the LVM setup (eg: vgextend, pvcreate, e= tc...) give the following error. Ofcourse, pvscan and vgscan do not give= errors. pvcreate -- ERROR: VGDA in kernel and lvmtab are NOT consistent; plea= se run vgscan Rebooting does not help. Deleting the /etc/lvmtab and /etc/lvmtab.d didn't make any difference. I understand that the /etc/lvmconf directory is more of a backup. And that directory has a MKP4.conf in it! (I guess vgcreate does say that its doing so). To see if md0 and md1 are functionally ok, I did a pvcreate -ff to remove any links between the raid1 devices and any known or unknown VGs. Then I did a mke2fs /dev/md0 and /dev/md1 and mounted them and used them just fine as regular linux-e2fs file systems. The LVM came with the version Mandrake 8.0 distribution. I used the LV modules out of the 'box'. Just in case it makes a difference, I found this about the gcc that came with the 8.0 distribution of Mandrake (after having read some comments about using gcc versions > 2.95.2) % gcc --version 2.96 Also, noted that /etc/rc.d/rc.sysinit loads up LVM before it loads up the raid module and devices. So, I moved the script lines to load up LVM AFTER raid. No difference at all. If any difference it should be if I had no problems with the vgcreate... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D % vgcreate -v MKP4 /dev/md1 vgcreate -- checking volume group name vgcreate -- checking volume group directory existence vgcreate -- locking logical volume manager vgcreate -- checking volume group "MKP4" existence vgcreate -- counting all existing volume groups vgcreate -- reading all physical volume data from disks vgcreate -- checking if all given physical volumes in command line are ne= w vgcreate -- checking physical volumes name "/dev/md1" vgcreate -- checking physical volume "/dev/md1" vgcreate -- getting size of physical volume "/dev/md1" vgcreate -- size of physical volume "/dev/md1" is 4194048 sectors vgcreate -- checking for new physical volume "/dev/md1" vgcreate -- checking for identical physical volumes on command line vgcreate -- 1 physical volume will be inserted into volume group "MKP4" vgcreate -- checking command line arguments vgcreate -- INFO: maximum of 256 physical volumes vgcreate -- INFO: maximum of 256 logical volumes vgcreate -- setting up volume data for creation vgcreate -- INFO: using default physical extent size 4 MB vgcreate -- INFO: maximum logical volume size is 255.99 Gigabyte vgcreate -- storing volume group data on disk(s) vgcreate -- removing any invalid special files of volume group "MKP4" vgcreate -- creating volume group directory /dev/MKP4 vgcreate -- creating VGDA for volume group "MKP4" in kernel vgcreate -- inserting volume group "MKP4" into "/etc/lvmtab" vgcreate -- checking volume group name "MKP4" vgcreate -- checking volume group consistency of "MKP4" vgcreate -- checking existence of "/etc/lvmtab.d" vgcreate -- storing volume group data of "MKP4" in "/etc/lvmtab.d/MKP4.tm= p" vgcreate -- storing physical volume data of "MKP4" in "/etc/lvmtab.d/MKP4= =2Etmp" vgcreate -- storing logical volume data of volume group "MKP4" in "/etc/l= vmtab.d/MKP4.tmp" vgcreate -- renaming "/etc/lvmtab.d/MKP4.tmp" to "/etc/lvmtab.d/MKP4" vgcreate -- doing automatic backup of volume group "MKP4" vgcreate -- checking volume group name "MKP4" vgcreate -- checking volume group consistency of "MKP4" vgcreate -- checking existence of "/etc/lvmconf" vgcreate -- storing volume group data of "MKP4" in "/etc/lvmconf/MKP4.con= f.tmp" vgcreate -- storing physical volume data of "MKP4" in "/etc/lvmconf/MKP4.= conf.tmp" vgcreate -- storing logical volume data of volume group "MKP4" in "/etc/l= vmconf/MKP4.conf.tmp" vgcreate -- checking existence of "/etc/lvmconf/MKP4.conf.tmp" vgcreate -- checking existence of "/etc/lvmconf/MKP4.conf" vgcreate -- renaming "/etc/lvmconf/MKP4.conf.tmp" to "/etc/lvmconf/MKP4.c= onf" vgcreate -- unlocking logical volume manager vgcreate -- volume group "MKP4" successfully created and activated % pvscan pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/md0" is in no VG [2 GB] pvscan -- ACTIVE PV "/dev/md1" is associated to an unknown VG (run v= gscan) pvscan -- ACTIVE PV "/dev/hda7" of VG "migataa" [2 GB / 0 free] pvscan -- ACTIVE PV "/dev/hda8" of VG "migataa" [2 GB / 0 free] pvscan -- ACTIVE PV "/dev/hda10" of VG "maakompa.old" [2 GB / 0 free] pvscan -- ACTIVE PV "/dev/hda11" of VG "maakompa.old" [2 GB / 0 free] pvscan -- inactive PV "/dev/hda12" is in no VG [3.08 GB] pvscan -- inactive PV "/dev/hdc7" is in no VG [2.05 GB] pvscan -- ACTIVE PV "/dev/hdc8" of VG "NFS" [2.04 GB / 0 free= ] pvscan -- inactive PV "/dev/hdc10" is in no VG [2.05 GB] pvscan -- ACTIVE PV "/dev/hdc11" of VG "DBMS" [2.04 GB / 0 free= ] pvscan -- ACTIVE PV "/dev/hdc12" of VG "WEB" [2.04 GB / 0 free= ] pvscan -- ACTIVE PV "/dev/hdc14" of VG "AUDIO" [3 GB / 4 MB free= ] pvscan -- total: 13 [28.32 GB] / in use: 9 [19.15 GB] / in no VG: 4 [9.18= GB] % vgscan vgscan -- reading all physical volumes (this may take a while...) vgscan -- found active volume group "migataa" vgscan -- found active volume group "maakompa.old" vgscan -- found active volume group "NFS" vgscan -- found active volume group "DBMS" vgscan -- found active volume group "WEB" vgscan -- found active volume group "AUDIO" vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: you may not have an actual VGDA backup of your volume = groups =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D lvmdiskscan -- reading all disks / partitions (this may take a while...) lvmdiskscan -- /dev/md0 [ 2 GB] free multiple device lvmdiskscan -- /dev/md1 [ 2 GB] free multiple device lvmdiskscan -- /dev/hda1 [ 3 GB] Primary LINUX native partitio= n [0x83] lvmdiskscan -- /dev/hda2 [ 16.08 GB] DOS extended partition [0x5] lvmdiskscan -- /dev/hda5 [ 1023.72 MB] Extended LINUX swap partition = [0x82] lvmdiskscan -- /dev/hda6 [ 2 GB] Extended [0xFD] lvmdiskscan -- /dev/hda7 [ 2 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hda8 [ 2 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hda9 [ 2 GB] Extended [0xFD] lvmdiskscan -- /dev/hda10 [ 2 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hda11 [ 2 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hda12 [ 3.08 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hdc1 [ 8 GB] Primary LVM partition [0x8E] lvmdiskscan -- /dev/hdc2 [ 20.63 GB] DOS extended partition [0x5] lvmdiskscan -- /dev/hdc5 [ 2.05 GB] Extended LINUX native partitio= n [0x83] lvmdiskscan -- /dev/hdc6 [ 2 GB] Extended [0xFD] lvmdiskscan -- /dev/hdc7 [ 2.05 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hdc8 [ 2.05 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hdc9 [ 2 GB] Extended [0xFD] lvmdiskscan -- /dev/hdc10 [ 2.05 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hdc11 [ 2.05 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hdc12 [ 2.05 GB] Extended LVM partition [0x8E] lvmdiskscan -- /dev/hdc13 [ 1.24 GB] Extended LINUX swap partition = [0x82] lvmdiskscan -- /dev/hdc14 [ 3.01 GB] Extended LVM partition [0x8E] lvmdiskscan -- 2 disks lvmdiskscan -- 0 whole disks lvmdiskscan -- 0 loop devices lvmdiskscan -- 2 multiple devices lvmdiskscan -- 0 network block devices lvmdiskscan -- 22 partitions lvmdiskscan -- 12 LVM physical volume partitions =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Cut n pasted via Win98 telnet window). % cat /etc/lvmconf/MKP4.conf =B4 MKP4=05=99TS=04b=05=EF=04=E0=05]=05=BD=B0=06=02=05=8E=B3=064=C6= =05=C8=04*=06n=040=01=BE=95=026=03=16=03=ABn=E6=02!=05=06=03=04=01=01=01=01= =EC=06 =FF=01P=D1<=83ieT9rIw AlvcgJKpcvjcKLiwzfUn0d2j8=BCP=05@=D8!=02@=C8!=02@ =FC=FF=BF=D8!=02@ =BF=05@=04=E4#=02@=EC1=05@=D8!=02@=01=94[=01@=8E=FFw=01K+=01@=D0=FC=FF=BF= @Z=01@%=89=14T=01@=D8!=02@=FCG=05@=D8!=02@`=D3@,#=02@X$=02@=14V=01@=14T=01= @@Z=01@7=89 =90=FC=FF=BF`=D3@=94[=01@=18$=02@=D8!=02@ =BF=05@=B0=FC=FF=BF=CE=D2@=C0=C07=89=BCP=05@,=1F=17@,=FD=FF=BF=84Y=01@=C8= =FC=FF=BF=02HM=01=04=04=12=18=80=80=9AHI=01=E4=01=1C =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D % fdisk -l /dev/hda Disk /dev/hda: 16 heads, 63 sectors, 39703 cylinders Units =3D cylinders of 1008 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 6241 3145432+ 83 Linux /dev/hda2 6242 39703 16864848 5 Extended /dev/hda5 6242 8321 1048288+ 82 Linux swap /dev/hda6 8322 12482 2097112+ fd Linux raid autodetect /dev/hda7 12483 16643 2097112+ 8e Linux LVM /dev/hda8 16644 20804 2097112+ 8e Linux LVM /dev/hda9 20805 24965 2097112+ fd Linux raid autodetect /dev/hda10 24966 29126 2097112+ 8e Linux LVM /dev/hda11 29127 33287 2097112+ 8e Linux LVM /dev/hda12 33288 39703 3233632+ 8e Linux LVM =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D % fdisk -l /dev/hdc Disk /dev/hdc: 16 heads, 63 sectors, 59556 cylinders Units =3D cylinders of 1008 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 * 1 16644 8388544+ 8e Linux LVM /dev/hdc2 16645 59556 21627648 5 Extended /dev/hdc5 16645 20902 2146000+ 83 Linux /dev/hdc6 20903 25063 2097112+ fd Linux raid autodetect /dev/hdc7 25161 29418 2146000+ 8e Linux LVM /dev/hdc8 29419 33676 2146000+ 8e Linux LVM /dev/hdc9 33677 37837 2097112+ fd Linux raid autodetect /dev/hdc10 37935 42192 2146000+ 8e Linux LVM /dev/hdc11 42193 46450 2146000+ 8e Linux LVM /dev/hdc12 46451 50708 2146000+ 8e Linux LVM /dev/hdc13 50709 53298 1305328+ 82 Linux swap /dev/hdc14 53299 59556 3154000+ 8e Linux LVM =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [EoInfo]