2012-10-06 14:49, Jim Klimov wrote:
$ cat /lib/svc/method/iscsi-mount-dcpool
------
#!/bin/sh
DELAY=600
case "$1" in
start)
if [ -f /etc/zfs/delay.dcpool ]; then
D="`head -1 /etc/zfs/delay.dcpool`"
[ "$D" -gt 0 ] 2>/dev/null && DELAY="$D" || D=10
echo "`date`: Delay requested... ${DELAY}sec"
Oops, a typo (thoughtlessly entered by hand into email,
although happens to be harmless in effect due to another
typo in the process):
- [ "$D" -gt 0 ] 2>/dev/null && DELAY="$D" || D=10
+ [ "$D" -gt 0 ] 2>/dev/null && DELAY="$D"
The default delay is defined above, and is large enough (600)
so that I can enter a panicking system after reboot and disable
the pool-importing service or otherwise influence or monitor
the situation.
//Jim
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss