ERROR: could not read device /dev/lvm

Alex Volkov avolkov at gmail.com
Tue Jun 24 22:08:49 CEST 2008


On Tue, 2008-06-24 at 11:10 +0200, Henning Sprang wrote:
> Alex Volkov wrote:
> > Disregard my last message.
> > The version of fai-client installed under nfsroot is 3.1.8 (etch
> > default) instead of newer 3.2.8, installed on the system - is that a
> > bug?
> 
> I think you either installed the new fai version on your server without 
> recreating the nfsroot, or you forgot that the sources.list used in the 
> nfsroot is /etc/fai/apt/sources.list - if you don't have the apt 
> repository with the new fai version in there, nfsroot will only get an 
> older version.

I installed fai on an fresh debian system, and I forgot to add
repository to /etc/fai/apt/sources.list 
Thanks for pointing that out.


> 
> > Upgrading to 3.2.8, which contains /usr/sbin/setup-storage fixes the
> > problem.
> 
> The problem with fai-client 3.1.8 in nfsroot? Hmm, strange...
> 
> Henning

I needed LVM support and for that I had to have setup-storage
installed, otherwise setup_harddisks works just fine.


By the way, for fai-client 3.2.8 is it normal that installation fails if
a target hard drive contains LVM volume? I'm just wondering is this a
bug or a feature. The same disk layout configuration works if I erase a
couple of megabytes in the beginning of the disk.

I haven't looked closely on how to disable this behaviour and so far
It's been a minor annoyance,  

Here is an exempt of a log file:

FAI_ACTION: install
Performing FAI installation. All data may be overwritten!

Calling task_install
Calling task_partition
Partitioning local harddisks using setup-storage
Starting setup-storage 1.0
disklist was: sda
Using config file: /var/lib/fai/config/disk_config/SETUPSTORAGE
Input was:
disk_config sda bootable:1
primary	/boot	128	ext2	rw
primary	-	4096-	-	-

disk_config lvm

vg vgmain	sda2
vgmain-swap	swap		2048	swap	sw
vgmain-root	/		51200	ext3	rw,noatime
vgmain-var	/var		102400	ext3	rw,noatime,data=ordered
vgmain-tmp	/tmp		4096	ext3	rw,noatime,noexec,nodev
vgmain-local	/usr/local/	1024	ext3	rw,noatime,nodev,data=ordered
(CMD) parted -s /dev/sda unit TiB print 1> /tmp/VDKsv5JsM6
2> /tmp/GHHzhXPGA2
Executing: parted -s /dev/sda unit TiB print
(STDOUT) 
(STDOUT) Disk /dev/sda: 0.29TiB
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start    End      Size     Type     File system  Flags
(STDOUT)  1      0.00TiB  0.00TiB  0.00TiB  primary  ext3         boot 
(STDOUT)  2      0.00TiB  0.29TiB  0.29TiB  primary               lvm  
(STDOUT) 
(CMD) parted -s /dev/sda unit B print free 1> /tmp/mmN2UozkV8
2> /tmp/6YCZRYYWAU
Executing: parted -s /dev/sda unit B print free
(STDOUT) 
(STDOUT) Disk /dev/sda: 320071884799B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start       End            Size           Type     File
system  Flags
(STDOUT)  1      32256B      518192639B     518160384B     primary  ext3
boot 
(STDOUT)  2      518192640B  320070320639B  319552128000B  primary
lvm  
(STDOUT) 
(CMD) parted -s /dev/sda unit chs print free 1> /tmp/zzknuVNez1
2> /tmp/9SdbYJuhoE
Executing: parted -s /dev/sda unit chs print free
(STDOUT) 
(STDOUT) Disk /dev/sda: 38913,48,30
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 38913,255,63.  Each
cylinder is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start   End           Type     File system  Flags
(STDOUT)  1      0,1,0   62,254,62     primary  ext3         boot 
(STDOUT)  2      63,0,0  38912,254,62  primary               lvm  
(STDOUT) 
    Finding all volume groups
    Finding volume group "my_pv"
    Creating directory "/etc/lvm/archive"
    Archiving volume group "my_pv" metadata (seqno 3).
    Creating directory "/etc/lvm/backup"
    Creating volume group backup "/etc/lvm/backup/my_pv" (seqno 3).
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 323.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 229.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 230.
    Finding all volume groups
    Finding volume group "my_pv"
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 323.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 229.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 230.
    Finding all volume groups
    Finding volume group "my_pv"
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 323.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 229.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 230.
    Finding all volume groups
    Finding volume group "my_pv"
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 323.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 229.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 230.
    Finding all volume groups
    Finding volume group "my_pv"
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 323.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 229.
Use of uninitialized value in hash element
at /usr/share/perl5/Linux/LVM.pm line 230.
Can't use string ("1/8") as a HASH ref while "strict refs" in use
at /usr/share/fai/setup-storage//Volumes.pm line 321.
Traceback: task_error task_partition task task_install task task_action
task main
Save log files via ssh to root at fai-i386:versiera/install-20080623_214713
Warning: Permanently added 'fai-i386' (RSA) to the list of known hosts.




More information about the linux-fai mailing list