How to handle large number of disk devices in "arbitrary" order?

Carsten Aulbert Carsten.Aulbert at aei.mpg.de
Tue Nov 15 11:50:04 CET 2011


Hi

On Tuesday 15 November 2011 11:14:09 Thomas Lange wrote:
> 
> A different approach is to manipulate the shell variable $disklist.
> This variable is used by setup-storage and can be set by any script
> called class/*.var or class/*.source
> 
> In such a script you could do anything that ensures the variable
> $disklist lists the DOM device as the first disk.

Sounds also like a do-able way if Michael's suggestions don't work.

so far it did, but right now, I'm fighting with the dreaded kernel panics as 
it cannot find the VFS root after the successful installation.

# cat disk_var.sh 
SWAPLIST=""
BOOT_DEVICE="/dev/sda"
ROOT_PARTITION=/dev/sda1
BOOT_PARTITION=/dev/sda1
# cat format.log 
Starting setup-storage 1.3
Using config file: /var/lib/fai/config/disk_config/BONN
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
    Finding all volume groups
  No volume groups found
Executing: mdadm --examine --scan --verbose -c partitions
Executing: parted -s /dev/sda mklabel msdos
Executing: parted -s /dev/sda mkpart primary "ext3" 32256B 8052645887B
Executing: parted -s /dev/sda set 1 boot on
Executing: mkfs.ext3  /dev/sda1
Executing: mdadm --assemble --scan --config=/tmp/fai/mdadm-from-examine.conf
mdadm tried to assemble arrays but failed, ignoring as arrays might be running 
already
Executing: mdadm -W --stop /dev/md0
Executing: fai-vol_id -u /dev/sda1
Executing: fai-vol_id -l /dev/sda1
/dev/sda1 UUID=56c24fde-9e34-45b1-a0da-f46c04701226
# cat mdadm-from-examine.conf 
ARRAY /dev/md/0 level=raid6 metadata=1.2 num-devices=12 
UUID=60a20a72:dd9a3cc2:d0e819ae:a7f067a1 name=test87:0
   devices=/dev/sdm1,/dev/sdl1,/dev/sdk1,/dev/sdj1,/dev/sdi1,/dev/sdh1,/dev/sdf1,/dev/sde1,/dev/sdg1,/dev/sdb1,/dev/sdd1,/dev/sdc1

(this is from a former test)

Is there a way to force FAI to use UUID in /etc/fstab as well as for grub?

Cheers

Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20111115/c919096b/attachment.bin>


More information about the linux-fai mailing list