Hi,
we try to install a debian system on a bunch of servers with different disk
layouts. Some machines only have one disk, some have additional disks,
which leads to a strange issue.
During install we like fai to ignore all additional disks and lvm's and
whatever is on disks besides sda.
Our disk setup is:
disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid
primary / 80%-100%ext4rw,noatime,errors=remount-ro
primary swap200-1000swaprw
Now the problem is, that when users have setup a lvm on disk sdb fai
detects this lvm, at first seems to ignore it, but later tries to create
that exact lvm again on the system, although its not configured anywhere.
A debugging log is attached.
The question is: bug or misconfiguration?
Florian
Starting setup-storage 1.3
disklist was: sda
sdb
Using config file: /var/lib/fai/config/disk_config/RLBASE
Input was:
#
# type mountpoint size fs type mount options misc options
disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid
primary / 80%-100% ext4 rw,noatime,errors=remount-ro
primary swap 200-1000 swap rw
(CMD) parted -s /dev/sda unit TiB print 1 /tmp/9jfIKSyTW7 2 /tmp/dxphs1V5M1
Executing: parted -s /dev/sda unit TiB print
(STDOUT) Model: ATA ST3500641AS (scsi)
(STDOUT) Disk /dev/sda: 0.45TiB
(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/k7jeOlJzjN 2 /tmp/UWhBXhXMTi
Executing: parted -s /dev/sda unit B print free
(STDOUT) Model: ATA ST3500641AS (scsi)
(STDOUT) Disk /dev/sda: 500107862016B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT)
(STDOUT) Number Start EndSize Type File system Flags
(STDOUT) 32256B 500107862015B 500107829760BFree Space
(STDOUT)
(CMD) parted -s /dev/sda unit chs print free 1 /tmp/meDq08B1ob 2 /tmp/L1LGbj7K3G
Executing: parted -s /dev/sda unit chs print free
(STDOUT) Model: ATA ST3500641AS (scsi)
(STDOUT) Disk /dev/sda: 60801,80,62
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 60801,255,63. Each cylinder is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT)
(STDOUT) Number Start End Type File system Flags
(STDOUT) 0,1,0 60801,80,62Free Space
(STDOUT)
Creating directory /tmp/lvm/lock
Finding all volume groups
Finding volume group vboxspace
Creating directory /etc/lvm/archive
Archiving volume group vboxspace metadata (seqno 4).
Creating directory /etc/lvm/backup
Creating volume group backup /etc/lvm/backup/vboxspace (seqno 4).
Finding all volume groups
Finding volume group vboxspace
Finding all volume groups
Finding volume group vboxspace
Finding all volume groups
Finding volume group vboxspace
(CMD) mdadm --examine --scan --verbose -c partitions 1 /tmp/6NnNC23EVQ 2 /tmp/E_1z3xjgRh
Executing: mdadm --examine --scan --verbose -c partitions
Current disk layout
$VAR1 = {
'/dev/sda' = {
'bios_heads' = '255',
'disklabel' = 'msdos',
'partitions' = {},
'bios_cylinders' = '60801',
'size' = '500107862016',
'sector_size' = '512',
'begin_byte' = 0,
'end_byte' = '500107862015',
'bios_sectors_per_track' = '63'
}
};
Current LVM layout
$VAR1 = {
'vboxspace' = {
'volumes' = {
'images' = {
'size' = '40960'
},
'bender' = {
'size' = '20480'
}
},
'physical_volumes' = [
'/dev/sdb1'
],
'size' = '476938.24'
}
};
Current RAID layout
$VAR1 = {};
Desired disk layout
$VAR1 = {
'PHY_/dev/sda' = {
'preserveparts' = 0,
'disklabel' = 'msdos',
'partitions' = {
'1' = {
'journal_dev' = undef,
'encrypt' = 0,
'start_byte' = 32256,
'number' = 1,