AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070124113849.7f5b6bf3@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<larry.scheer@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E02215608@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 24 Jan 2007 11:39:49 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Larry Scheer" <larry.scheer@onstor.com>
Subject: Re: Now that id_secondary is working, new problem...
Message-ID: <20070124113949.71e17ce9@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E02215608@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E02215608@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Doh.  Here is the diff to fix this:


$ diff -pu verify_install.sh,broken  verify_install.sh
--- verify_install.sh,broken     2007-01-24 11:37:11.025916000 -0800
+++ verify_install.sh   2007-01-24 11:37:20.678188000 -0800
@@ -268,11 +268,12 @@ mount_secondary()
                pi=0
                for p in $SEC_MNT_LIST ; do
                        pi=`expr $pi + 1`
-                       if [ $di -eq $di ] ; then
+                       if [ $di -eq $pi ] ; then
                                mount $d ${MNT1}${p} || {
                                        error_cleanup
                                        return 1
                                }
+                               break
                        fi
                done
        done




On Tue, 23 Jan 2007 19:56:50 -0800 "Larry Scheer"
<larry.scheer@onstor.com> wrote:

> Andy,
>     Looks like there still a problem in mount_secondary. Here  is the
> debug output of the script. I'm calling it quits for the day.  Talk to
> you tomorrow...
> 
> id_secondary() 
> =================
> + df /
> + fgrep /dev
> + awk {print $1}
> + root=/dev/wd0a
> + s_base=/dev/wd1
> + mount
> + fgrep /mnt1
> + >> /dev/null 
> + umount_paths /mnt1/usr/local/agile/conf /mnt1/usr/local/agile
> /mnt1/var /mnt1/tmp /mnt1/usr /mnt1
> + mount /dev/wd1a /mnt1
> + [ ! -r /mnt1/etc/fstab ]
> + < /mnt1/etc/fstab 
> + read sdev spath stype rest
> + [ ffs = sw -o ffs = swap ]
> + [ / = / ]
> + [ /dev/wd1a != /dev/wd1a ]
> + SEC_DEV_LIST=/dev/wd1a
> + SEC_MNT_LIST=/
> + SEC_MNT_BLIST=/
> + continue
> + read sdev spath stype rest
> + [ ffs = sw -o ffs = swap ]
> + [ /tmp = / ]
> + [  ]
> + SEC_DEV_LIST=/dev/wd1a /dev/wd1e
> + SEC_MNT_LIST=/ /tmp
> + SEC_MNT_BLIST=/tmp /
> + read sdev spath stype rest
> + [ ffs = sw -o ffs = swap ]
> + [ /usr = / ]
> + [  ]
> + SEC_DEV_LIST=/dev/wd1a /dev/wd1e /dev/wd1d
> + SEC_MNT_LIST=/ /tmp /usr
> + SEC_MNT_BLIST=/usr /tmp /
> + read sdev spath stype rest
> + [ ffs = sw -o ffs = swap ]
> + [ /usr/local/agile = / ]
> + [  ]
> + SEC_DEV_LIST=/dev/wd1a /dev/wd1e /dev/wd1d /dev/wd1g
> + SEC_MNT_LIST=/ /tmp /usr /usr/local/agile
> + SEC_MNT_BLIST=/usr/local/agile /usr /tmp /
> + read sdev spath stype rest
> + [ ffs = sw -o ffs = swap ]
> + [ /var = / ]
> + [  ]
> + SEC_DEV_LIST=/dev/wd1a /dev/wd1e /dev/wd1d /dev/wd1g /dev/wd1f
> + SEC_MNT_LIST=/ /tmp /usr /usr/local/agile /var
> + SEC_MNT_BLIST=/var /usr/local/agile /usr /tmp /
> + read sdev spath stype rest
> + [ ffs = sw -o ffs = swap ]
> + [ /usr/local/agile/conf = / ]
> + [  ]
> + SEC_DEV_LIST=/dev/wd1a /dev/wd1e /dev/wd1d /dev/wd1g /dev/wd1f
> /dev/wd1h
> + SEC_MNT_LIST=/ /tmp /usr /usr/local/agile /var /usr/local/agile/conf
> +
> SEC_MNT_BLIST=/usr/local/agile/conf /var /usr/local/agile /usr /tmp /
> + read sdev spath stype rest
> + export SEC_DEV_LIST SEC_MNT_LIST SEC_MNT_BLIST
> + umount /mnt1
> + set +x
> 
> Unmounting secondary disk...
> umount_secondary()
> ===========================
> + umount /mnt1/usr/local/agile/conf
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/usr/local/agile/conf: not currently mounted
> + umount /mnt1/var
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/var: not currently mounted
> + umount /mnt1/usr/local/agile
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/usr/local/agile: not currently mounted
> + umount /mnt1/usr
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/usr: not currently mounted
> + umount /mnt1/tmp
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/tmp: not currently mounted
> + umount /mnt1/
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/: not currently mounted
> + set +x
> Checking file systems...
> Mounting secondary disk...
> mount_secondary()
> ===============
> + di=0
> + expr 0 + 1
> + di=1
> + pi=0
> + expr 0 + 1
> + pi=1
> + [ 1 -eq 1 ]
> + mount /dev/wd1a /mnt1/
> + expr 1 + 1
> + pi=2
> + [ 1 -eq 1 ]
> + mount /dev/wd1a /mnt1/tmp
> mount_ffs: /dev/wd1a on /mnt1/tmp: Device busy
> + error_cleanup
> Unmounting secondary disk...
> + umount /mnt1/usr/local/agile/conf
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/usr/local/agile/conf: not currently mounted
> + umount /mnt1/var
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/var: not currently mounted
> + umount /mnt1/usr/local/agile
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/usr/local/agile: not currently mounted
> + umount /mnt1/usr
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/usr: not currently mounted
> + umount /mnt1/tmp
> + 2>&1 
> + >> /dev/null 
> umount: /mnt1/tmp: not currently mounted
> + umount /mnt1/
> + 2>&1 
> + >> /dev/null 
> + set +x
> + return 1
> Problem encountered mounting secondary CF, terminating.
> Installation failed, exiting...
