setup-storage and LVM

Christoph Kluenter ck at iphh.net
Mon Jan 7 14:34:00 CET 2008


On Monday 07 January 2008 13:34:12 you wrote:
> [...]
>
> > Volume group my_pv requires 2.25179981368525e+15 MB
> >
> >
> >
> > Shouldn't the script now start partitioning the harddisk ?
>
> Hmm, well, this message is actually telling you that there is too little
> space on your disk; could you please update to the current SVN revision,
> where I added some more information to this line. Of course your disk
> should be big enough, so there is some bug in there...
>
> Thanks for testing and sorry for the inconvenience,
Thank you for helping me !

this is the output from current svn:

Source hook: partition.LVM.source
disklist was:
sdaInput was:
disk_config sda
primary /boot 500 - -
primary -       0-      -       -

disk_config lvm
vg my_pv        sda2
my_pv-_root     /       2048    ext3 rw -0 dir_index,resize_inode
(CMD) parted -s /dev/sda unit TiB print 1> /tmp/lcOCqMX1bJ 2> /tmp/TtSSeDxgm7
(STDOUT)
(STDOUT) Disk /dev/sda: 0.23TiB
(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/sda unit B print free 1> /tmp/dQoCQVRLH5 2> /tmp/Idop79qikX
(STDOUT)
(STDOUT) Disk /dev/sda: 249988907007B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT)
(STDOUT) Number  Start  End            Size           Type  File system  Flags
(STDOUT)         0B     249988907007B  249988907008B        Free Space
(STDOUT)
(CMD) parted -s /dev/sda unit chs print free 1> /tmp/ln2onp962K 2> /tmp/ObTeHPcgEc
(STDOUT)
(STDOUT) Disk /dev/sda: 30392,192,7
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 30392,255,63.  Each cylinder is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT)
(STDOUT) Number  Start  End          Type  File system  Flags
(STDOUT)         0,0,0  30392,192,7        Free Space
(STDOUT)
    Finding all volume groups
  No volume groups found
(CMD) mdadm --detail --scan --verbose -c partitions 1> /tmp/scFqGn4axO 2> /tmp/qDimuVmgxg
Volume group my_pv requires 2.25179981368525e+15 MB, but available space was estimated to be 235528.823803711
Current disk layout
$VAR1 = {
          '/dev/sda' => {
                          'bios_heads' => '255',
                          'disklabel' => 'msdos',
                          'partitions' => {},
                          'bios_cylinders' => '30392',
                          'size' => '249988907007',
                          'sector_size' => '512',
                          'begin_byte' => 0,
                          'end_byte' => '249988907006',
                          'bios_sectors_per_track' => '63'
                        }
        };
Current LVM layout
$VAR1 = {};
Current RAID layout
$VAR1 = {};
/var/lib/fai/config/hooks/partition.LVM.source: line 12: /var/log/fai/current/disk_var.sh: No such file or directory
partition.LVM.source OK.



And then I changed disk_config to set sda2 to 3000MB but that didn't help:


disk_config sda
primary /boot 500 - -
primary -       3000    -       -

disk_config lvm
vg my_pv        sda2
my_pv-_root     /       2048    ext3 rw -0 dir_index,resize_inode

Volume group my_pv requires 2.25179981368525e+15 MB, but available space was estimated to be 2966.53403320313

And another try with sda2 and my_pv-_root set to 1024MB:

disk_config sda
primary /boot 500 - -
primary -       1024    -       -

disk_config lvm
vg my_pv        sda2
my_pv-_root     /       1024    ext3 rw -0 dir_index,resize_inode

Volume group my_pv requires 1.12589990684262e+15 MB, but available space was estimated to be 1009.55346679688

Was this helpful ?

Christoph



-- 
IPHH Internet Port Hamburg GmbH      Fax: +49 (0)40 374919-29
Grosse Reichenstrasse 27             AG Hamburg, HRB 76071
D-20457 Hamburg                      Geschaeftsfuehrung: Axel G. Kroeger


More information about the linux-fai mailing list