David,

I think that I may have a better solution for mounting aoe based devices. The 
init script should only handle making the block devices available, like the 
lvm init script. The init script should therefore come before the S35mountall 
script. It should ifconfig up the interfaces that are needed. This would make 
the _netdev hack unneeded and not introduce errors in the fstab mounting. It 
would also allow stacking lvm or software raid or evms on top of the aoe 
devices, which your implementation seems to lack. Here is the pseudocode for 
the init.d script do_start() function.

modprobe aoe
sleep 5  # avoid race condition of /dev/etherd being created

#optionally make sure /dev/etherd exists like in your script

if [ -z "$INTERFACES" ]; then
  # add all ethernet interfaces to INTERFACES
fi

#bring up interfaces over which to do aoe
for iface in $INTERFACES; do
  ifconfig $iface up
done

aoe_interfaces $INTERFACES
aoe_discover
sleep 5 # avoid race condition of /dev/etherd/e*.* being created

Then the mountall init script is able to properly mount the aoe devices. You 
would also need to modify the lsb headers to not require $local_fs or 
$network. 

I have a pretty full implementation of this at work. I will send you the 
scripts tomorrow.

Later,
wt
-- 
Warren Turkal, Research Associate III/Systems Administrator
Colorado State University, Dept. of Atmospheric Science


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to