Setup_hardisk lvm Cannot determine size

Tsapline Sylvain stsapline at prosodie.com
Mon Apr 7 18:14:46 CEST 2008


Hello

Well I did some testing and unfortunately it still does not work on
/dev/cciss controler.

We did some testing and tried to modified the following line in
parser.pm

if ($dev =~
m{^/dev/(cciss/c\dd\dp|ida/c\dd\dp|rd/c\dd\dp|ataraid/d\dp)$}) $dev =
"${dev}p";

To

if ($dev =~ m{^/dev/(cciss/c\dd\d|ida/c\dd\dp|rd/c\dd\dp|ataraid/d\d)$})
$dev = "${dev}p";

It led used to another failure, might be related to sub estimate_size in
sizes.pm ?

Well we do not have to time to dig any further, hope that help.

Cheers 

Sylvain


Fai.log
------------------------------------------------------------------------
Performing FAI installation. All data may be overwritten!
^G^G^G
Calling task_install
Source hook: partition.PROSODIE.source
disklist was:
cciss/c0d0Input was:

disk_config disk1 bootable:1
primary /boot 500 ext3 rw
primary - 0- - -

disk_config lvm
vg VG01 disk1.2
VG01-swap       swap    2048    swap    sw
VG01-root       /       2048    ext3    rw
VG01-opt        /opt    3048    ext3    rw
VG01-var        /var    2000    ext3    rw
VG01-tmp        /tmp    600     ext3    rw
VG01-usr        /usr    2000    ext3    rw
VG01-appli      /appli  0-      ext3    rw
(CMD) parted -s /dev/cciss/c0d0 unit TiB print 1> /tmp/MpxD4URt72 2>
/tmp/eohFRvd09K
Parted could not read a disk label
(STDERR) Error: Unable to open /dev/cciss/c0d0 - unrecognised disk
label.
(CMD) parted -s /dev/cciss/c0d0 mklabel msdos 1> /tmp/rVNJN258r1 2>
/tmp/my5XLCi0zz
(CMD) parted -s /dev/cciss/c0d0 unit TiB print 1> /tmp/7JpHWsNvGK 2>
/tmp/zfieLMznYm
(STDOUT) 
(STDOUT) Disk /dev/cciss/c0d0: 0.03TiB
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start  End  Size  Type  File system  Flags
(STDOUT) 
(CMD) parted -s /dev/cciss/c0d0 unit B print free 1> /tmp/MAC6TJ7jUJ 2>
/tmp/r0RUgEV0gF
(STDOUT) 
(STDOUT) Disk /dev/cciss/c0d0: 36414750719B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start  End           Size          Type  File system
Flags
(STDOUT)         0B     36414750719B  36414750720B        Free Space

(STDOUT) 
(CMD) parted -s /dev/cciss/c0d0 unit chs print free 1> /tmp/1u1jdzhEcd
2> /tmp/klvhDeyOFs
(STDOUT) 
(STDOUT) Disk /dev/cciss/c0d0: 4427,44,32
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 4427,255,63.  Each cylinder
is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start  End         Type  File system  Flags
(STDOUT)         0,0,0  4427,44,32        Free Space        
(STDOUT) 
    Finding all volume groups
  No volume groups found
(CMD) mdadm --detail --scan --verbose -c partitions 1> /tmp/ODEBbYdxaQ
2> /tmp/EfFi4aDRIn
Cannot determine size of /dev/cciss/c0d02
Current disk layout
$VAR1 = {
          '/dev/cciss/c0d0' => {
                                 'bios_heads' => '255',
                                 'disklabel' => 'msdos',
                                 'partitions' => {},
                                 'bios_cylinders' => '4427',
                                 'size' => '36414750719',
                                 'sector_size' => '512',
                                 'begin_byte' => 0,
                                 'end_byte' => '36414750718',
                                 'bios_sectors_per_track' => '63'
                               }
        };
Current LVM layout
$VAR1 = {};
Current RAID layout
$VAR1 = {};
/fai/hooks/partition.PROSODIE.source: line 20:
/var/log/fai/current/disk_var.sh: No such file or directory
partition.PROSODIE.source OK.
Skiping task_partition
Calling task_mountdisks



More information about the linux-fai mailing list