Re: client hangs after eth0 becomes ready

2011-11-09 Diskussionsfäden Florian Streibelt
Am 09.11.2011 16:16 schrieb Vivien Bernet-Rollande:

 eth0: link becomes ready

 and then it hangs

 anyone an idea??


I experienced this when a server with multiple NICs was booting and the nic
the dhcp server was connected was detected as eth1.

The initrd uses a dhcp client to configure the network, after the kernel
did the ip configuration for the NFS root.

In the initrd a dhcp client is started for the first network card that has
a cable attached. Thus a dhcp client was started on eth0, while the dhcp
server was connected on eth1.

I patched the initrd to check all interfaces that have a link, if there is
no response after a timeout.

/Florian


problems with ignoring a lvm on secondary disk.

2011-09-02 Diskussionsfäden Florian Streibelt
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,
  

Re: problems with ignoring a lvm on secondary disk.

2011-09-02 Diskussionsfäden Florian Streibelt
Hi Michael,

Am 02.09.2011 10:33 schrieb Michael Tautschnig:
[...]
 Thanks a lot for providing such detailed information. This is definitively a
 bug; yet I wonder which version of FAI you might be using? Looking at your 
 debug
 log, this trace cannot be produced by setup-storage from 3.4.8, unless I'm
 missing something. May I ask you to re-run this installation using 3.4.8?
 

It is FAI 3.4.7, 24 Dec 2010. Copyright (C) 1999-2009 Thomas Lange
provided by debian version 6.0.1 (squeeze). There don't seem to be any
newer packages available yet in the debian repos. I'll see if we can update
next week -.-

Do you think it is possible to only update setup-storage?

/Florian