Side effect in setup-storage using 3.3.4~beta1+experimental3

Michael Tautschnig mt at debian.org
Wed Mar 17 12:21:01 CET 2010


> Michael Tautschnig a écrit :
> >>Michael Tautschnig a écrit :
> >>>Err, sorry, one should really test their code before releasing it.
> >>>3.3.4~beta1+experimental7 should be online in a few minutes and finally fix
> >>>those problems; at least it worked on my system.
> >>>
> >>>Best,
> >>>Michael
> >>>
> >>Still failing a little later, I've put the log on
> >>http://paste.debian.net/64576/.
> >>
> >
> >Hmm, that's weird, it seemingly cannot match sda to any of the configured disks;
> >could you please replace /usr/share/fai/setup-storage/Volumes.pm (in your
> >NFSROOT) with the attached one and once again paste the output?
> >
> >
> Here you go: http://paste.debian.net/64596/
> 

Err, could please use the attached version of disk-info to replace
/usr/lib/fai/disk-info? And retry...

Thanks,
Michael

-------------- next part --------------
#! /bin/bash

### BEGIN SUBROUTINE INFO
# Provides-Var:    none
# Requires-Var:    none
# Short-Description: <task desc.>
### END SUBROUTINE INFO
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diskandsize() {

    local isdisk major minor blocks device suffix

    while read major minor blocks device suffix; do
	isdisk=1
	# skip ide cdrom
	[ -f /proc/ide/$device/media ] && grep -q cdrom /proc/ide/$device/media && isdisk=0
# old way of detecting disks: [ `cat /sys/block/$device/removable` -eq 1 ] && isdisk=0
	[ `stat -c %G /dev/$device` = "disk" ] || isdisk=0
	[ $isdisk -eq 1 ] && echo "$device"
    done
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# echo a space separated list of devices and their block size
egrep ' etherd/e[[:digit:]]+\.[[:digit:]]+\b| i2o/hd.\b| cciss/c.d.\b| ida/c.d.\b| rd/c.d.\b| hd.\b| sd[a-z]{1,2}\b|/disc\b| vd.\b| xvd.\b' /proc/partitions | diskandsize


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100317/426bf5c7/attachment.bin 


More information about the linux-fai mailing list