AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070124102528.3d2670b3@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	BB375AF679D4A34E9CA8DFA650E2B04E02215607@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 24 Jan 2007 10:25:41 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Larry Scheer" <larry.scheer@onstor.com>
Subject: Re: One last problem with verify_install.sh but I have a fix.
Message-ID: <20070124102541.291f4997@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E02215607@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E02215607@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

I think cmd_upgrade should unmount what it mounts.  I'll take a look at
the code when I get in.

Cheers,

a


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

> Coming dfrom id_secondary():
> 		mount_ffs: /dev/wd1a on /mnt1: Device busy
> 		id_secondary: problem mounting secondary flash root
> file system on device /dev/wd1a
> 		Unmounting secondary disk...
> 
> This is due to cmd_upgrade previously mounting the secondary flash to
> do the mtree stuff.
> 
> Here is my fix if you agree:
> 
> # get the mount points from the fstab file on the secondary flash.
> # they might be different from primary; and they
> # might be "wrong" in that they may have the wrong
> # devices (say, for instance, if CF cards were swapped)
> id_secondary()
> {
> set -x
>     root=`df / | fgrep /dev | awk '{print $1}'`
>     case $root in
>         /dev/wd0a)
>             s_base=/dev/wd1
>             ;;
>         /dev/wd1a)
>             s_base=/dev/wd0
>             ;;
>     esac
> 
> **** ADD: ***
>     # secondary flash may have been previously mounted by cmd_upgrade
> so # silently unmount it if the mount path is in mtab
>     # this is needed to mount the secondary root in the next step
>     mount | fgrep ${MNT1} >>/dev/null && umount_path
> ${MNT1}${ONSTOR_CONF} \
>     ${MNT1}${ONSTOR_PATH} ${MNT1}/var ${MNT1}/tmp  ${MNT1}/usr ${MNT1}
> 
> *** ***
> The rest of the function is the same.
> 
> I will be testing this shortly.
> 
> Larry
