setup-storage issues ...

Sylvain Milot sylvain at bic.mni.mcgill.ca
Tue May 10 19:20:53 CEST 2011


Hello list,

I've come across a problem with setup-storage.

I had this working with version 4.0~beta2+experimental60 (not sure about the
last digit) but the latest experimental version complains about the fact that previous
partitions overflow the beginning of a *preserved* partition.

I have attached some debug output.

Initially I worked with FAI version 3.4.7 but preservation doesn't seem to work
with LVMs ... it complains about the fact that it can't preserve some partition that
doesn't exist ... but it does obviously, more precisely /dev/bic_pv/_exp in my case.
If I use preserve_always, it dies and prints the warning but if I use preserve_lazy,
it overwites the partition.

I then tried the experimental version - version 4.0~beta2+experimental60 at the time
and this worked quite nicely. I then recently rebuilt my NFSROOT with the latest experimental
version and it now complains about overflow. The behavior is the same whether I use
preserve_always or preserve_lazy BTW.

Note also the strange place where the error message is located ... search
for overflow ...

I have perl version 5.10.1-17 installed in my nfsroot.

PS - no real harm done on my installation as I'm in a testing phase ...

All the best,

---
Sylvain Milot (sylvain at bic.mni.mcgill.ca)
               (bicadmin at bic.mni.mcgill.ca)
Brain Imaging Centre
Montreal Neurological Institute
3801 University Street
Webster 2B, Room 206
Montreal, Qc., Canada, H3A 2B4
Phone  : (514) 398-4965, Fax: 398-8948
Mobile : (514) 712-1768
Office : 527 Av Des Pins O., Room 104
          Montreal, Qc., H2W 1S4
-------------- next part --------------
             -------------------------------------------------
                   Fully Automatic Installation  -  FAI

                   FAI 4.0~beta2+experimental90, 01 May 2011   (c) 1999-2010
               Thomas Lange  <lange at informatik.uni-koeln.de>
             -------------------------------------------------

Calling task_confdir
Kernel currently running: Linux 2.6.35.5-i686-64-smp-u x86_64 GNU/Linux
Kernel parameters: initrd=initrd.img-2.6.35.5-i686-64-smp-u ip=dhcp root=/dev/nfs boot=live debug=1 nfsroot=/export/home/fai/squeeze/nfsroot-amd64 FAI_FLAGS=verbose,sshd,createvt FAI_ACTION=install BOOT_IMAGE=vmlinuz-2.6.35.5-i686-64-smp-u ip=132.206.178.81:132.206.178.229:132.206.178.1:255.255.255.0 BOOTIF=01-00-e0-81-74-be-3c 

...
<snip>
...

Calling task_install
Calling task_partition
WARNING: The variable USE_SETUP_STORAGE is not needed any more.
setup-storage is now the default tool for partitioning.
Starting setup-storage 1.3+exp
disklist: sda
sdb
sdc
Using config file: /fai/disk_config/SS_LARGE_DISK_RAID
Input was:
# disk config for SS_LARGE_DISK_RAID - SS stands for FAI's setup-storage

disk_config sda bootable:1
primary   /boot      100    ext2   rw,errors=remount-ro
logical   -          4000   -      -
logical   -          2000   -      -
logical   -          0-     -      -

disk_config sdb bootable:1
primary   -          100    ext2   -
logical   -          4000   -      -
logical   -          2000   -      -
logical   -          0-     -      -

disk_config raid
raid1     swap      sda5,sdb5   swap   sw
raid1     /         sda6,sdb6   ext3   rw,errors=remount-ro
raid1     -         sda7,sdb7   -      -

disk_config lvm preserve_always:bic_pv-_exp
vg  bic_pv   md2
bic_pv-_tmp	/tmp			8000	ext2	rw
bic_pv-_opt	/opt			8000	ext3	rw	createopts="-O dir_index,resize_inode"
bic_pv-_usr	/usr			16000	ext3	rw	createopts="-O dir_index,resize_inode"
bic_pv-_var	/var			600	ext3	rw	createopts="-O dir_index,resize_inode"
bic_pv-_exp	/export01		0-      ext4	rw	createopts="-O dir_index,resize_inode"
(CMD) parted -s /dev/sda unit TiB print 1> /tmp/XVexqyWXP4 2> /tmp/pEfMt5Op6G
Executing: parted -s /dev/sda unit TiB print
(STDOUT) Model: ATA WDC WD740ADFD-00 (scsi)
(STDOUT) Disk /dev/sda: 0.07TiB
(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   ext2         boot
(STDOUT)  2      0.00TiB  0.07TiB  0.07TiB  extended               lba
(STDOUT)  5      0.00TiB  0.00TiB  0.00TiB  logical                raid
(STDOUT)  6      0.00TiB  0.01TiB  0.00TiB  logical                raid
(STDOUT)  7      0.01TiB  0.07TiB  0.06TiB  logical                raid
(STDOUT) 
(CMD) parted -s /dev/sda unit B print free 1> /tmp/Mwk6ZqsOLh 2> /tmp/zE5osJBYAY
Executing: parted -s /dev/sda unit B print free
(STDOUT) Model: ATA WDC WD740ADFD-00 (scsi)
(STDOUT) Disk /dev/sda: 74355769344B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start         End           Size          Type      File system  Flags
(STDOUT)  1      32256B        98703359B     98671104B     primary   ext2         boot
(STDOUT)  2      98703360B     74348305919B  74249602560B  extended               lba
(STDOUT)  5      98735616B     4285370879B   4186635264B   logical                raid
(STDOUT)  6      4285403136B   6374591999B   2089188864B   logical                raid
(STDOUT)  7      6374624256B   74348305919B  67973681664B  logical                raid
(STDOUT)         74348305920B  74355769343B  7463424B                Free Space
(STDOUT) 
(CMD) parted -s /dev/sda unit chs print free 1> /tmp/uU69MoUAdk 2> /tmp/nPSAtzI8fh
Executing: parted -s /dev/sda unit chs print free
(STDOUT) Model: ATA WDC WD740ADFD-00 (scsi)
(STDOUT) Disk /dev/sda: 9039,231,23
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 9039,255,63.  Each cylinder is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start     End          Type      File system  Flags
(STDOUT)  1      0,1,0     11,254,62    primary   ext2         boot
(STDOUT)  2      12,0,0    9038,254,62  extended               lba
(STDOUT)  5      12,1,0    520,254,62   logical                raid
(STDOUT)  6      521,1,0   774,254,62   logical                raid
(STDOUT)  7      775,1,0   9038,254,62  logical                raid
(STDOUT)         9039,0,0  9039,231,23            Free Space
(STDOUT) 
(CMD) parted -s /dev/sdb unit TiB print 1> /tmp/fhxSiSKjxm 2> /tmp/eTNLObX26F
Executing: parted -s /dev/sdb unit TiB print
(STDOUT) Model: ATA WDC WD740ADFD-00 (scsi)
(STDOUT) Disk /dev/sdb: 0.07TiB
(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   ext2         boot
(STDOUT)  2      0.00TiB  0.07TiB  0.07TiB  extended               lba
(STDOUT)  5      0.00TiB  0.00TiB  0.00TiB  logical                raid
(STDOUT)  6      0.00TiB  0.01TiB  0.00TiB  logical                raid
(STDOUT)  7      0.01TiB  0.07TiB  0.06TiB  logical                raid
(STDOUT) 
(CMD) parted -s /dev/sdb unit B print free 1> /tmp/07eW8cz6s5 2> /tmp/udyD7o3KTG
Executing: parted -s /dev/sdb unit B print free
(STDOUT) Model: ATA WDC WD740ADFD-00 (scsi)
(STDOUT) Disk /dev/sdb: 74355769344B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start         End           Size          Type      File system  Flags
(STDOUT)  1      32256B        98703359B     98671104B     primary   ext2         boot
(STDOUT)  2      98703360B     74348305919B  74249602560B  extended               lba
(STDOUT)  5      98735616B     4285370879B   4186635264B   logical                raid
(STDOUT)  6      4285403136B   6374591999B   2089188864B   logical                raid
(STDOUT)  7      6374624256B   74348305919B  67973681664B  logical                raid
(STDOUT)         74348305920B  74355769343B  7463424B                Free Space
(STDOUT) 
(CMD) parted -s /dev/sdb unit chs print free 1> /tmp/rLDtKyxF1M 2> /tmp/hBlSY3MCu1
Executing: parted -s /dev/sdb unit chs print free
(STDOUT) Model: ATA WDC WD740ADFD-00 (scsi)
(STDOUT) Disk /dev/sdb: 9039,231,23
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 9039,255,63.  Each cylinder is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start     End          Type      File system  Flags
(STDOUT)  1      0,1,0     11,254,62    primary   ext2         boot
(STDOUT)  2      12,0,0    9038,254,62  extended               lba
(STDOUT)  5      12,1,0    520,254,62   logical                raid
(STDOUT)  6      521,1,0   774,254,62   logical                raid
(STDOUT)  7      775,1,0   9038,254,62  logical                raid
(STDOUT)         9039,0,0  9039,231,23            Free Space
(STDOUT) 
    Finding all volume groups
    Finding volume group "bic_pv"
    Creating directory "/etc/lvm/archive"
    Archiving volume group "bic_pv" metadata (seqno 6).
    Creating directory "/etc/lvm/backup"
    Creating volume group backup "/etc/lvm/backup/bic_pv" (seqno 6).
    Finding all volume groups
    Finding volume group "bic_pv"
    Finding all volume groups
    Finding volume group "bic_pv"
    Finding all volume groups
    Finding volume group "bic_pv"
(CMD) mdadm --examine --scan --verbose -c partitions 1> /tmp/5ZW8fxScCm 2> /tmp/RrKaQHFQcw
Executing: mdadm --examine --scan --verbose -c partitions
(STDOUT) ARRAY /dev/md/0 level=raid1 metadata=1.2 num-devices=2 UUID=a04c97b1:23ba1a32:ddf9adcf:450224af name=testholyghost:0
(STDOUT)    devices=/dev/sdb5,/dev/sda5
(STDOUT) ARRAY /dev/md/1 level=raid1 metadata=1.2 num-devices=2 UUID=bfce4567:bc9e1868:4b4055b8:b46bd79c name=testholyghost:1
(STDOUT)    devices=/dev/sdb6,/dev/sda6
(STDOUT) ARRAY /dev/md/2 level=raid1 metadata=1.2 num-devices=2 UUID=8e16ee1b:46692c4f:0b96b2f3:d5263418 name=testholyghost:2
(STDOUT)    devices=/dev/sdb7,/dev/sda7
Current disk layout
$VAR1 = {
          '/dev/sda' => {
                          'bios_heads' => '255',
                          'disklabel' => 'msdos',
                          'partitions' => {
                                            '6' => {
                                                     'count_byte' => '2089188864',
                                                     'filesystem' => '',
                                                     'begin_byte' => '4285403136',
                                                     'is_extended' => 0,
                                                     'end_byte' => '6374591999'
                                                   },
                                            '1' => {
                                                     'count_byte' => '98671104',
                                                     'filesystem' => 'ext2',
                                                     'begin_byte' => '32256',
                                                     'is_extended' => 0,
                                                     'end_byte' => '98703359'
                                                   },
                                            '7' => {
                                                     'count_byte' => '67973681664',
                                                     'filesystem' => '',
                                                     'begin_byte' => '6374624256',
                                                     'is_extended' => 0,
                                                     'end_byte' => '74348305919'
                                                   },
                                            '2' => {
                                                     'count_byte' => '74249602560',
                                                     'filesystem' => '',
                                                     'begin_byte' => '98703360',
                                                     'is_extended' => 1,
                                                     'end_byte' => '74348305919'
                                                   },
                                            '5' => {
                                                     'count_byte' => '4186635264',
                                                     'filesystem' => '',
                                                     'begin_byte' => '98735616',
                                                     'is_extended' => 0,
                                                     'end_byte' => '4285370879'
                                                   }
                                          },
                          'bios_cylinders' => '9039',
                          'size' => '74355769344',
                          'sector_size' => '512',
                          'begin_byte' => 0,
                          'end_byte' => '74355769343',
                          'bios_sectors_per_track' => '63'
                        },
          '/dev/sdb' => {
                          'bios_heads' => '255',
                          'disklabel' => 'msdos',
                          'partitions' => {
                                            '6' => {
                                                     'count_byte' => '2089188864',
                                                     'filesystem' => '',
                                                     'begin_byte' => '4285403136',
                                                     'is_extended' => 0,
                                                     'end_byte' => '6374591999'
                                                   },
                                            '1' => {
                                                     'count_byte' => '98671104',
                                                     'filesystem' => 'ext2',
                                                     'begin_byte' => '32256',
                                                     'is_extended' => 0,
                                                     'end_byte' => '98703359'
                                                   },
                                            '7' => {
                                                     'count_byte' => '67973681664',
                                                     'filesystem' => '',
                                                     'begin_byte' => '6374624256',
                                                     'is_extended' => 0,
                                                     'end_byte' => '74348305919'
                                                   },
                                            '2' => {
                                                     'count_byte' => '74249602560',
                                                     'filesystem' => '',
                                                     'begin_byte' => '98703360',
                                                     'is_extended' => 1,
                                                     'end_byte' => '74348305919'
                                                   },
                                            '5' => {
                                                     'count_byte' => '4186635264',
                                                     'filesystem' => '',
                                                     'begin_byte' => '98735616',
                                                     'is_extended' => 0,
                                                     'end_byte' => '4285370879'
                                                   }
                                          },
                          'bios_cylinders' => '9039',
                          'size' => '74355769344',
                          'sector_size' => '512',
                          'begin_byte' => 0,
                          'end_byte' => '74355769343',
                          'bios_sectors_per_track' => '63'
                        }
        };
Current LVM layout
$VAR1 = {
          'bic_pv' => {
                        'volumes' => {
                                       '_var' => {
                                                   'size' => '600.00'
                                                 },
                                       '_usr' => {
                                                   'size' => '15994.88'
                                                 },
                                       '_opt' => {
                                                   'size' => '7997.44'
                                                 },
                                       '_tmp' => {
                                                   'size' => '7997.44'
                                                 },
                                       '_exp' => {
                                                   'size' => '31580.16'
                                                 }
                                     },
                        'physical_volumes' => [
                                                '/dev/md2'
                                              ],
                        'size' => '64819.2'
                      }
        };
Current RAID layout
$VAR1 = {
          '1' => {
                   'mode' => 'raid1',
                   'devices' => [
                                  '/dev/sdb6',
                                  '/dev/sda6'
                                ]
                 },
          '0' => {
                   'mode' => 'raid1',
    Previous partitions overflow begin of preserved partition /dev/sdb7
               'devices' => [
                                  '/dev/sdb5',
                                  '/dev/sda5'
                                ]
                 },
          '2' => {
                   'mode' => 'raid1',
                   'devices' => [
                                  '/dev/sdb7',
                                  '/dev/sda7'
                                ]
                 }
        };
Current device tree
$VAR1 = {
          '/dev/sdb7' => [
                           '/dev/md2'
                         ],
          '/dev/sda6' => [
                           '/dev/md1'
                         ],
          '/dev/sda7' => [
                           '/dev/md2'
                         ],
          '/dev/sda' => [
                          '/dev/sda1',
                          '/dev/sda2',
                          '/dev/sda5',
                          '/dev/sda6',
                          '/dev/sda7'
                        ],
          '/dev/sdb' => [
                          '/dev/sdb1',
                          '/dev/sdb2',
                          '/dev/sdb5',
                          '/dev/sdb6',
                          '/dev/sdb7'
                        ],
          '/dev/md2' => [
                          'VG_bic_pv'
                        ],
          '/dev/sdb6' => [
                           '/dev/md1'
                         ],
          'VG_bic_pv' => [
                           '/dev/bic_pv/_exp',
                           '/dev/bic_pv/_opt',
                           '/dev/bic_pv/_tmp',
                           '/dev/bic_pv/_usr',
                           '/dev/bic_pv/_var'
                         ],
          '/dev/sdb5' => [
                           '/dev/md0'
                         ],
          '/dev/sda5' => [
                           '/dev/md0'
                         ]
        };
Error in task partition. Traceback: task_error task_partition task task_install task task_action task main
FATAL ERROR. Installation stopped.
root at testholyghost:/# 


More information about the linux-fai mailing list