* [linux-lvm] vgscan can not find active volume group when i add a cdrom
@ 2004-07-15 12:43 Christophe Nowicki
2004-07-15 21:27 ` bowmailtmp-lvm
2004-07-18 22:27 ` Christophe Nowicki
0 siblings, 2 replies; 4+ messages in thread
From: Christophe Nowicki @ 2004-07-15 12:43 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 5942 bytes --]
Hi all,
I'am running Debian GNU/Linux "sarge" with Linux 2.4.26, LVM version
1.0.8 (lib lvm-common 1.5.16).
My server has 3 IDE hard drives when I plug a ide cdrom on /dev/hdd,
vgscan can not find my active volume.
Here is my dmesg output without the cdrom ide plug in :
[...]
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
ide: late registration of driver.
VP_IDE: IDE controller at PCI slot 00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:pio
hda: ST3120026A, ATA DISK drive
hdb: ST3120026A, ATA DISK drive
blk: queue f0825120, I/O limit 4095Mb (mask 0xffffffff)
blk: queue f082525c, I/O limit 4095Mb (mask 0xffffffff)
hdc: ST3120022A, ATA DISK drive
blk: queue f0825574, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63,
UDMA(100)
hdb: attached ide-disk driver.
hdb: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63,
UDMA(100)
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 >
/dev/ide/host0/bus0/target1/lun0: p1
Journalled Block Device driver loaded
[..]
Everything is ok, I can mount all disk and I see my 2 volume groupe :
vgscan -v output :
vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- scanning for all active volume group(s) first
vgscan -- found active volume group "vg_hda"
vgscan -- reading data of volume group "vg_hda" from physical volume(s)
vgscan -- inserting "vg_hda" into lvmtab
vgscan -- backing up volume group "vg_hda"
vgscan -- checking volume group name "vg_hda"
vgscan -- checking volume group consistency of "vg_hda"
vgscan -- checking existence of "/etc/lvmtab.d"
vgscan -- storing volume group data of "vg_hda" in
"/etc/lvmtab.d/vg_hda.tmp"
vgscan -- storing physical volume data of "vg_hda" in
"/etc/lvmtab.d/vg_hda.tmp"
vgscan -- storing logical volume data of volume group "vg_hda" in
"/etc/lvmtab.d/vg_hda.tmp"
vgscan -- renaming "/etc/lvmtab.d/vg_hda.tmp" to "/etc/lvmtab.d/vg_hda"
vgscan -- removing special files and directory for volume group "vg_hda"
vgscan -- creating directory and group character special file for
"vg_hda"
vgscan -- creating block device special files for vg_hda
vgscan -- found active volume group "vg_hdb"
vgscan -- reading data of volume group "vg_hdb" from physical volume(s)
vgscan -- inserting "vg_hdb" into lvmtab
vgscan -- backing up volume group "vg_hdb"
vgscan -- checking volume group name "vg_hdb"
vgscan -- checking volume group consistency of "vg_hdb"
vgscan -- checking existence of "/etc/lvmtab.d"
vgscan -- storing volume group data of "vg_hdb" in
"/etc/lvmtab.d/vg_hdb.tmp"
vgscan -- storing physical volume data of "vg_hdb" in
"/etc/lvmtab.d/vg_hdb.tmp"
vgscan -- storing logical volume data of volume group "vg_hdb" in
"/etc/lvmtab.d/vg_hdb.tmp"
vgscan -- renaming "/etc/lvmtab.d/vg_hdb.tmp" to "/etc/lvmtab.d/vg_hdb"
vgscan -- removing special files and directory for volume group "vg_hdb"
vgscan -- creating directory and group character special file for
"vg_hdb"
vgscan -- creating block device special files for vg_hdb
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
groups
When I plug the IDE cdrom drive nothing is working.
Here is my dmesg output with the cdrom plug in :
[...]
VP_IDE: IDE controller at PCI slot 00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA
hda: ST3120026A, ATA DISK drive
hdb: ST3120026A, ATA DISK drive
blk: queue f082a2c0, I/O limit 4095Mb (mask 0xffffffff)
blk: queue f082a3fc, I/O limit 4095Mb (mask 0xffffffff)
hdc: ST3120022A, ATA DISK drive
hdd: Hewlett-Packard CD-Writer Plus 7500, ATAPI CD/DVD-ROM drive
blk: queue f082a714, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63,
UDMA(100)
hdb: attached ide-disk driver.
hdb: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63,
UDMA(100)
hdc: attached ide-disk driver.
hdc: 234441648 sectors (120034 MB) w/2048KiB Cache, CHS=14593/255/63,
UDMA(100)
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 >
/dev/ide/host0/bus0/target1/lun0: p1
/dev/ide/host0/bus1/target0/lun0: p1
Journalled Block Device driver loaded
[...]
As you can see /dev/hdd, the ide cdrom is detected by the linux kernel.
But vgscan doesn't find my volume groups:
vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d"
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
group
Did I miss something? What's wrong with my setup?
Best Regards,
--
Nowicki Christophe
EPITECH Promo 2006
http://etudiant.epita.fr/~nowick_c/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [linux-lvm] vgscan can not find active volume group when i add a cdrom 2004-07-15 12:43 [linux-lvm] vgscan can not find active volume group when i add a cdrom Christophe Nowicki @ 2004-07-15 21:27 ` bowmailtmp-lvm 2004-07-17 20:33 ` Christophe Nowicki 2004-07-18 22:27 ` Christophe Nowicki 1 sibling, 1 reply; 4+ messages in thread From: bowmailtmp-lvm @ 2004-07-15 21:27 UTC (permalink / raw) To: LVM general discussion and development Have you tried using the "filter" directive in the /etc/lvm/lvm.cnf to force vgscan to ignore the /dev/hdd device? In my config it ignores /dev/cdrom which does not actually point to my real cdrom on /dev/hdc and it still has no issues, but it may be worth a shot anyway. Also, it might be worth strace-ing the vgscan to see what happens when it tries to fstat the /dev/hdd device: strace vgscan >& output.log -dave --- Christophe Nowicki <cscm@meuh.dyndns.org> wrote: > Hi all, > > I'am running Debian GNU/Linux "sarge" with Linux > 2.4.26, LVM version > 1.0.8 (lib lvm-common 1.5.16). > > My server has 3 IDE hard drives when I plug a ide > cdrom on /dev/hdd, > vgscan can not find my active volume. > > Here is my dmesg output without the cdrom ide plug > in : > [...] > ide: Assuming 33MHz system bus speed for PIO modes; > override with > idebus=xx > NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. > ide: late registration of driver. > VP_IDE: IDE controller at PCI slot 00:07.1 > VP_IDE: chipset revision 6 > VP_IDE: not 100% native mode: will probe irqs later > VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 > controller on pci00:07.1 > ide0: BM-DMA at 0xd000-0xd007, BIOS settings: > hda:DMA, hdb:DMA > ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: > hdc:DMA, hdd:pio > hda: ST3120026A, ATA DISK drive > hdb: ST3120026A, ATA DISK drive > blk: queue f0825120, I/O limit 4095Mb (mask > 0xffffffff) > blk: queue f082525c, I/O limit 4095Mb (mask > 0xffffffff) > hdc: ST3120022A, ATA DISK drive > blk: queue f0825574, I/O limit 4095Mb (mask > 0xffffffff) > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 > ide1 at 0x170-0x177,0x376 on irq 15 > hda: attached ide-disk driver. > hda: 234441648 sectors (120034 MB) w/8192KiB Cache, > CHS=14593/255/63, > UDMA(100) > hdb: attached ide-disk driver. > hdb: 234441648 sectors (120034 MB) w/8192KiB Cache, > CHS=14593/255/63, > UDMA(100) > Partition check: > /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 > > /dev/ide/host0/bus0/target1/lun0: p1 > Journalled Block Device driver loaded > [..] > > Everything is ok, I can mount all disk and I see my > 2 volume groupe : > > vgscan -v output : > vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d" > vgscan -- creating empty "/etc/lvmtab" and > "/etc/lvmtab.d" > vgscan -- reading all physical volumes (this may > take a while...) > vgscan -- scanning for all active volume group(s) > first > vgscan -- found active volume group "vg_hda" > vgscan -- reading data of volume group "vg_hda" from > physical volume(s) > vgscan -- inserting "vg_hda" into lvmtab > vgscan -- backing up volume group "vg_hda" > vgscan -- checking volume group name "vg_hda" > vgscan -- checking volume group consistency of > "vg_hda" > vgscan -- checking existence of "/etc/lvmtab.d" > vgscan -- storing volume group data of "vg_hda" in > "/etc/lvmtab.d/vg_hda.tmp" > vgscan -- storing physical volume data of "vg_hda" > in > "/etc/lvmtab.d/vg_hda.tmp" > vgscan -- storing logical volume data of volume > group "vg_hda" in > "/etc/lvmtab.d/vg_hda.tmp" > vgscan -- renaming "/etc/lvmtab.d/vg_hda.tmp" to > "/etc/lvmtab.d/vg_hda" > vgscan -- removing special files and directory for > volume group "vg_hda" > vgscan -- creating directory and group character > special file for > "vg_hda" > vgscan -- creating block device special files for > vg_hda > vgscan -- found active volume group "vg_hdb" > vgscan -- reading data of volume group "vg_hdb" from > physical volume(s) > vgscan -- inserting "vg_hdb" into lvmtab > vgscan -- backing up volume group "vg_hdb" > vgscan -- checking volume group name "vg_hdb" > vgscan -- checking volume group consistency of > "vg_hdb" > vgscan -- checking existence of "/etc/lvmtab.d" > vgscan -- storing volume group data of "vg_hdb" in > "/etc/lvmtab.d/vg_hdb.tmp" > vgscan -- storing physical volume data of "vg_hdb" > in > "/etc/lvmtab.d/vg_hdb.tmp" > vgscan -- storing logical volume data of volume > group "vg_hdb" in > "/etc/lvmtab.d/vg_hdb.tmp" > vgscan -- renaming "/etc/lvmtab.d/vg_hdb.tmp" to > "/etc/lvmtab.d/vg_hdb" > vgscan -- removing special files and directory for > volume group "vg_hdb" > vgscan -- creating directory and group character > special file for > "vg_hdb" > vgscan -- creating block device special files for > vg_hdb > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" > successfully created > vgscan -- WARNING: This program does not do a VGDA > backup of your volume > groups > > When I plug the IDE cdrom drive nothing is working. > > Here is my dmesg output with the cdrom plug in : > > [...] > VP_IDE: IDE controller at PCI slot 00:07.1 > VP_IDE: chipset revision 6 > VP_IDE: not 100% native mode: will probe irqs later > ide: Assuming 33MHz system bus speed for PIO modes; > override with > idebus=xx > VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 > controller on pci00:07.1 > ide0: BM-DMA at 0xd000-0xd007, BIOS settings: > hda:DMA, hdb:DMA > ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: > hdc:DMA, hdd:DMA > hda: ST3120026A, ATA DISK drive > hdb: ST3120026A, ATA DISK drive > blk: queue f082a2c0, I/O limit 4095Mb (mask > 0xffffffff) > blk: queue f082a3fc, I/O limit 4095Mb (mask > 0xffffffff) > hdc: ST3120022A, ATA DISK drive > hdd: Hewlett-Packard CD-Writer Plus 7500, ATAPI > CD/DVD-ROM drive > blk: queue f082a714, I/O limit 4095Mb (mask > 0xffffffff) > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 > ide1 at 0x170-0x177,0x376 on irq 15 > hda: attached ide-disk driver. > hda: 234441648 sectors (120034 MB) w/8192KiB Cache, > CHS=14593/255/63, > UDMA(100) > hdb: attached ide-disk driver. > hdb: 234441648 sectors (120034 MB) w/8192KiB Cache, > CHS=14593/255/63, > UDMA(100) > hdc: attached ide-disk driver. > hdc: 234441648 sectors (120034 MB) w/2048KiB Cache, > CHS=14593/255/63, > UDMA(100) > Partition check: > /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 > > /dev/ide/host0/bus0/target1/lun0: p1 > /dev/ide/host0/bus1/target0/lun0: p1 > Journalled Block Device driver loaded > [...] > As you can see /dev/hdd, the ide cdrom is detected > by the linux kernel. > But vgscan doesn't find my volume groups: > > vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d" > vgscan -- creating empty "/etc/lvmtab" and > "/etc/lvmtab.d" > vgscan -- reading all physical volumes (this may > take a while...) > vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" > successfully created > vgscan -- WARNING: This program does not do a VGDA > backup of your volume > group > > Did I miss something? What's wrong with my setup? > > Best Regards, > -- > Nowicki Christophe > EPITECH Promo 2006 > http://etudiant.epita.fr/~nowick_c/ > > ATTACHMENT part 1.2 application/pgp-signature name=signature.asc > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] vgscan can not find active volume group when i add a cdrom 2004-07-15 21:27 ` bowmailtmp-lvm @ 2004-07-17 20:33 ` Christophe Nowicki 0 siblings, 0 replies; 4+ messages in thread From: Christophe Nowicki @ 2004-07-17 20:33 UTC (permalink / raw) To: LVM general discussion and development [-- Attachment #1.1: Type: text/plain, Size: 1266 bytes --] On Thu, Jul 15, 2004 at 02:27:01PM -0700, bowmailtmp-lvm@yahoo.com wrote: Hi, Thanks for the answer dave, but is still does not work. > Have you tried using the "filter" directive in the > /etc/lvm/lvm.cnf to force vgscan to ignore the > /dev/hdd device? I don't have a /etc/lvm directory on my system. I've only a /etc/lvmconf directory with binary configuration files. > In my config it ignores /dev/cdrom > which does not actually point to my real cdrom on > /dev/hdc and it still has no issues, but it may be > worth a shot anyway. > > Also, it might be worth strace-ing the vgscan to see > what happens when it tries to fstat the /dev/hdd > device: > strace vgscan >& output.log vgscan stat and open /dev/hdd without a problem : $ grep hdd strace_output.log stat64("/dev/hdd", {st_mode=S_IFBLK|0660, st_rdev=makedev(22, 64), ...}) = 0 open("/dev/hdd", O_RDONLY) = 5 stat64("/dev/hdd", {st_mode=S_IFBLK|0660, st_rdev=makedev(22, 64), ...}) = 0 open("/dev/hdd", O_RDONLY) = 4 the full strace log is attached to this mail. thanks -- Nowicki Christophe EPITECH Promo 2006 http://etudiant.epita.fr/~nowick_c/ [-- Attachment #1.2: strace_output.log --] [-- Type: text/plain, Size: 18214 bytes --] execve("/sbin/vgscan", ["/sbin/vgscan"], [/* 14 vars */]) = 0 uname({sys="Linux", node="rescue", ...}) = 0 brk(0) = 0x8049e6c old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=11349, ...}) = 0 old_mmap(NULL, 11349, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200^\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1243856, ...}) = 0 old_mmap(NULL, 1254020, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001b000 old_mmap(0x40143000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x40143000 old_mmap(0x4014b000, 8836, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014b000 close(3) = 0 munmap(0x40018000, 11349) = 0 brk(0) = 0x8049e6c brk(0x806ae6c) = 0x806ae6c brk(0) = 0x806ae6c brk(0x806b000) = 0x806b000 open("/proc/misc", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(3, " 63 device-mapper\n134 apm_bios\n1"..., 4096) = 49 close(3) = 0 munmap(0x40018000, 4096) = 0 brk(0) = 0x806b000 brk(0) = 0x806b000 brk(0x806a000) = 0x806a000 brk(0) = 0x806a000 open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory) open("/proc/lvm/VGs", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3 fstat64(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getdents64(3, /* 2 entries */, 4096) = 48 getdents64(3, /* 0 entries */, 4096) = 0 close(3) = 0 stat64("/lib/lvm-200/vgscan", 0xbffffb3c) = -1 ENOENT (No such file or directory) open("/dev/lvm", O_RDONLY) = 3 ioctl(3, LVM_GET_IOP_VERSION, 0xbffffbde) = 0 close(3) = 0 stat64("/lib/lvm-10/vgscan", {st_mode=S_IFREG|0755, st_size=12828, ...}) = 0 execve("/lib/lvm-10/vgscan", ["/sbin/vgscan"], [/* 14 vars */]) = 0 uname({sys="Linux", node="rescue", ...}) = 0 brk(0) = 0x804bdc4 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=11349, ...}) = 0 old_mmap(NULL, 11349, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/liblvm-10.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PQ\0\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=140328, ...}) = 0 old_mmap(NULL, 156308, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001b000 old_mmap(0x4003d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x21000) = 0x4003d000 old_mmap(0x4003e000, 12948, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003e000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200^\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1243856, ...}) = 0 old_mmap(NULL, 1254020, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40042000 old_mmap(0x4016a000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0x4016a000 old_mmap(0x40172000, 8836, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40172000 close(3) = 0 munmap(0x40018000, 11349) = 0 stat64("/dev/lvm", {st_mode=S_IFCHR|0640, st_rdev=makedev(109, 0), ...}) = 0 open("/dev/lvm", O_RDONLY) = 3 ioctl(3, LVM_GET_IOP_VERSION, 0xbffffc1a) = 0 close(3) = 0 stat64("/dev/lvm", {st_mode=S_IFCHR|0640, st_rdev=makedev(109, 0), ...}) = 0 open("/dev/lvm", O_RDONLY) = 3 ioctl(3, 0xff00, 0x4003dc7c) = 0 rt_sigprocmask(SIG_SETMASK, ~[], [], 8) = 0 unlink("/etc/lvmtab") = 0 lstat64("/etc/lvmtab.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory) open("/etc/lvmtab.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 brk(0) = 0x804bdc4 brk(0x806cdc4) = 0x806cdc4 brk(0) = 0x806cdc4 brk(0x806d000) = 0x806d000 getdents64(4, /* 2 entries */, 4096) = 48 getdents64(4, /* 0 entries */, 4096) = 0 brk(0) = 0x806d000 brk(0) = 0x806d000 brk(0x806c000) = 0x806c000 brk(0) = 0x806c000 close(4) = 0 rmdir("/etc/lvmtab.d") = 0 open("/etc/lvmtab", O_WRONLY|O_CREAT|O_TRUNC, 0640) = 4 write(4, "\0", 1) = 1 fchmod(4, 0640) = 0 fsync(4) = 0 close(4) = 0 mkdir("/etc/lvmtab.d", 0755) = 0 fstat64(1, {st_mode=S_IFREG|0644, st_size=6209, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 open("/proc/partitions", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "major minor #blocks name r"..., 4096) = 840 stat64("/dev/hdd", {st_mode=S_IFBLK|0660, st_rdev=makedev(22, 64), ...}) = 0 open("/proc/devices", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000 read(5, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(5) = 0 munmap(0x4001a000, 4096) = 0 open("/dev/hdd", O_RDONLY) = 5 close(5) = 0 stat64("/dev/ide/host0/bus0/target0/lun0/disc", 0xbffff75c) = -1 ENOENT (No such file or directory) stat64("/dev/ide/host0/bus0/target0/lun0/part1", 0xbffff75c) = -1 ENOENT (No such file or directory) stat64("/dev/ide/host0/bus0/target0/lun0/part2", 0xbffff75c) = -1 ENOENT (No such file or directory) stat64("/dev/ide/host0/bus0/target0/lun0/part5", 0xbffff75c) = -1 ENOENT (No such file or directory) stat64("/dev/ide/host0/bus0/target0/lun0/part6", 0xbffff75c) = -1 ENOENT (No such file or directory) stat64("/dev/ide/host0/bus0/target1/lun0/disc", 0xbffff75c) = -1 ENOENT (No such file or directory) stat64("/dev/ide/host0/bus0/target1/lun0/part1", 0xbffff75c) = -1 ENOENT (No such file or directory) read(4, "", 4096) = 0 stat64("/dev/ide/host0/bus0/target1/lun0/part1", 0xbffff75c) = -1 ENOENT (No such file or directory) close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) open("/dev/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 fstat64(4, {st_mode=S_IFDIR|0755, st_size=24576, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 getdents64(4, /* 139 entries */, 4096) = 4088 getdents64(4, /* 150 entries */, 4096) = 4080 getdents64(4, /* 132 entries */, 4096) = 4072 getdents64(4, /* 128 entries */, 4096) = 4096 getdents64(4, /* 1 entries */, 4096) = 24 getdents64(4, /* 128 entries */, 4096) = 4096 getdents64(4, /* 128 entries */, 4096) = 4096 getdents64(4, /* 133 entries */, 4096) = 4088 getdents64(4, /* 131 entries */, 4096) = 4072 getdents64(4, /* 140 entries */, 4096) = 4072 getdents64(4, /* 141 entries */, 4096) = 3928 getdents64(4, /* 50 entries */, 4096) = 1424 getdents64(4, /* 0 entries */, 4096) = 0 open("/etc/mtab", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=141, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(5, "/dev/hda1 / unknown rw,errors=re"..., 4096) = 141 close(5) = 0 munmap(0x40019000, 4096) = 0 open("/proc/meminfo", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(5, " total: used: free:"..., 4096) = 524 close(5) = 0 munmap(0x40019000, 4096) = 0 close(4) = 0 stat64("/dev/loop0", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 0), ...}) = 0 open("/proc/devices", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop0", O_RDONLY) = 4 close(4) = 0 stat64("/dev/loop1", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 1), ...}) = 0 open("/proc/devices", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop1", O_RDONLY) = 4 close(4) = 0 stat64("/dev/loop2", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 2), ...}) = 0 open("/proc/devices", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop2", O_RDONLY) = 4 close(4) = 0 stat64("/dev/loop3", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 3), ...}) = 0 open("/proc/devices", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop3", O_RDONLY) = 4 close(4) = 0 stat64("/dev/loop4", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 4), ...}) = 0 open("/proc/devices", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop4", O_RDONLY) = 4 close(4) = 0 stat64("/dev/loop5", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 5), ...}) = 0 open("/proc/devices", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop5", O_RDONLY) = 4 close(4) = 0 stat64("/dev/loop6", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 6), ...}) = 0 open("/proc/devices", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop6", O_RDONLY) = 4 close(4) = 0 stat64("/dev/loop7", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 7), ...}) = 0 open("/proc/devices", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(4, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(4) = 0 munmap(0x40019000, 4096) = 0 open("/dev/loop7", O_RDONLY) = 4 close(4) = 0 open("/dev/nb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) open("/dev/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4 fstat64(4, {st_mode=S_IFDIR|0755, st_size=24576, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 getdents64(4, /* 139 entries */, 4096) = 4088 getdents64(4, /* 150 entries */, 4096) = 4080 getdents64(4, /* 132 entries */, 4096) = 4072 getdents64(4, /* 128 entries */, 4096) = 4096 getdents64(4, /* 1 entries */, 4096) = 24 getdents64(4, /* 128 entries */, 4096) = 4096 getdents64(4, /* 128 entries */, 4096) = 4096 getdents64(4, /* 133 entries */, 4096) = 4088 getdents64(4, /* 131 entries */, 4096) = 4072 getdents64(4, /* 140 entries */, 4096) = 4072 getdents64(4, /* 141 entries */, 4096) = 3928 getdents64(4, /* 50 entries */, 4096) = 1424 getdents64(4, /* 0 entries */, 4096) = 0 close(4) = 0 stat64("/dev/hdd", {st_mode=S_IFBLK|0660, st_rdev=makedev(22, 64), ...}) = 0 open("/dev/hdd", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(22, 64), ...}) = 0 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 468) = 468 open("/proc/devices", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(5, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(5) = 0 munmap(0x40019000, 4096) = 0 open("/proc/devices", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000 read(5, "Character devices:\n 1 mem\n 2 p"..., 4096) = 202 close(5) = 0 munmap(0x40019000, 4096) = 0 close(4) = 0 stat64("/dev/loop0", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 0), ...}) = 0 open("/dev/loop0", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 0), ...}) = 0 read(4, "", 468) = 0 close(4) = 0 stat64("/dev/loop1", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 1), ...}) = 0 open("/dev/loop1", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 1), ...}) = 0 read(4, "", 468) = 0 close(4) = 0 stat64("/dev/loop2", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 2), ...}) = 0 open("/dev/loop2", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 2), ...}) = 0 read(4, "", 468) = 0 close(4) = 0 stat64("/dev/loop3", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 3), ...}) = 0 open("/dev/loop3", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 3), ...}) = 0 read(4, "", 468) = 0 close(4) = 0 stat64("/dev/loop4", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 4), ...}) = 0 open("/dev/loop4", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 4), ...}) = 0 read(4, "", 468) = 0 close(4) = 0 stat64("/dev/loop5", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 5), ...}) = 0 open("/dev/loop5", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 5), ...}) = 0 read(4, "", 468) = 0 close(4) = 0 stat64("/dev/loop6", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 6), ...}) = 0 open("/dev/loop6", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 6), ...}) = 0 read(4, "", 468) = 0 close(4) = 0 stat64("/dev/loop7", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 7), ...}) = 0 open("/dev/loop7", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 7), ...}) = 0 read(4, "", 468) = 0 close(4) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 close(3) = 0 write(1, "vgscan -- reading all physical v"..., 211vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group ) = 211 munmap(0x40018000, 4096) = 0 exit_group(0) = ? [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] vgscan can not find active volume group when i add a cdrom 2004-07-15 12:43 [linux-lvm] vgscan can not find active volume group when i add a cdrom Christophe Nowicki 2004-07-15 21:27 ` bowmailtmp-lvm @ 2004-07-18 22:27 ` Christophe Nowicki 1 sibling, 0 replies; 4+ messages in thread From: Christophe Nowicki @ 2004-07-18 22:27 UTC (permalink / raw) To: LVM general discussion and development [-- Attachment #1: Type: text/plain, Size: 2407 bytes --] Hi all, I've solved my problem, I just switched cdrom possition. I put the CD-ROM as secondary master and the hard drive as secondary slave. And now everything is working : /* dmesg output */ ide: late registration of driver. VP_IDE: IDE controller at PCI slot 00:07.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1 ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA hda: ST3120026A, ATA DISK drive hdb: ST3120026A, ATA DISK drive blk: queue f0825120, I/O limit 4095Mb (mask 0xffffffff) blk: queue f082525c, I/O limit 4095Mb (mask 0xffffffff) hdc: Hewlett-Packard CD-Writer Plus 7500, ATAPI CD/DVD-ROM drive hdd: ST3120022A, ATA DISK drive blk: queue f08256b0, I/O limit 4095Mb (mask 0xffffffff) ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: attached ide-disk driver. hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100) hdb: attached ide-disk driver. hdb: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100) hdd: attached ide-disk driver. hdd: 234441648 sectors (120034 MB) w/2048KiB Cache, CHS=14593/255/63, UDMA(100) Partition check: /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 > /dev/ide/host0/bus0/target1/lun0: p1 /dev/ide/host0/bus1/target1/lun0: p1 Journalled Block Device driver loaded /* vgscan output */ vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d" vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d" vgscan -- reading all physical volumes (this may take a while...) vgscan -- scanning for all active volume group(s) first vgscan -- found active volume group "vg_hda" vgscan -- reading data of volume group "vg_hda" from physical volume(s) vgscan -- inserting "vg_hda" into lvmtab vgscan -- backing up volume group "vg_hda" vgscan -- checking volume group name "vg_hda" vgscan -- checking volume group consistency of "vg_hda" vgscan -- checking existence of "/etc/lvmtab.d" [...] Strange, it isn't it? I've a link between /dev/hdc and /dev/cdrom does it play a role? Thanks -- Nowicki Christophe EPITECH Promo 2006 http://etudiant.epita.fr/~nowick_c/ [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-07-18 22:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-07-15 12:43 [linux-lvm] vgscan can not find active volume group when i add a cdrom Christophe Nowicki 2004-07-15 21:27 ` bowmailtmp-lvm 2004-07-17 20:33 ` Christophe Nowicki 2004-07-18 22:27 ` Christophe Nowicki
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox