Ubuntu natty setup-storage question

Andreas Sindermann sinder at thp.Uni-Koeln.DE
Tue Jul 26 15:35:47 CEST 2011


An issue with setup-storage in Ubuntu  11.04 (natty) occurs:

root at faisrv:/srv/fai/config/disk_config# cat ~fai/l00/last/format.log 
Starting setup-storage 1.3
Using config file: /var/lib/fai/config/disk_config/SCRATCH
Executing: parted -s /dev/sda unit TiB print
Executing: parted -s /dev/sda unit B print free
Executing: parted -s /dev/sda unit chs print free
    Creating directory "/var/lock/lvm"
    Finding all volume groups
  No volume groups found
Executing: mdadm --examine --scan --verbose -c partitions
/dev/sda3 will be preserved
Executing: vgchange -a n
Executing: parted -s /dev/sda mklabel msdos
Executing: parted -s /dev/sda mkpart primary "ext3" 32256B 10479006719B
Executing: parted -s /dev/sda mkpart extended "" 500105249280B 502194470399B
Command had non-zero exit code


Manually on the fai client:

root at l00:~# parted -s /dev/sda mklabel msdos
root at l00:~# parted -s /dev/sda mkpart primary "ext3" 32256B 10479006719B
Warning: The resulting partition is not properly aligned for best performance.
root at l00:~# parted -s /dev/sda mkpart extended "" 500105249280B 502194470399B
Error: The location 502194470399B is outside of the device /dev/sda.


root at l00:~# parted -s /dev/sda unit B print free
Model: ATA ST3500514NS (scsi)
Disk /dev/sda: 500107862016B
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start         End            Size           Type     File system  Flags
 1      32256B        10479006719B   10478974464B   primary  ext3
        10479006720B  500107862015B  489628855296B           Free Space


So 502194470399B seems to be really outside of the device (swap-partition).


Here the disk_config/SCRATCH file:

root at faisrv:/srv/fai/config/disk_config# cat SCRATCH 
# example of new config file for setup-storage
#
# <type> <mountpoint> <size>   <fs type> <mount options> <misc options>

disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid preserve_always:3
primary  /        10000    ext3  rw,noatime,errors=remount-ro
logical  swap      2000    swap  rw
primary  /scratch  0-      ext3  rw


I.e. if already existing, the /scratch partition is supposed to be
preserved, otherwise it should be created.

Any idea?

And why does parted want to start the first partition at 32256B?
(bad performance?)


Best wishes
Andreas



More information about the linux-fai mailing list