AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080618112945.73be2536@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<sandrine.boulanger@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	BB375AF679D4A34E9CA8DFA650E2B04E09CB82F9@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 18 Jun 2008 11:30:19 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Sandrine Boulanger" <sandrine.boulanger@onstor.com>
Subject: Re: issue with mirror snapshots when trying to use flash_install
 for sub#26 dev
Message-ID: <20080618113019.02c9a188@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E09CB82F9@onstor-exch02.onstor.net>
References: <20080618104411.52042e8e@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E09CB82F9@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

On Wed, 18 Jun 2008 10:48:01 -0700 "Sandrine Boulanger"
<sandrine.boulanger@onstor.com> wrote:

> Thanks. Can you tell me where this file is checked in (//depot path)?
> I need to build this flash, I'll just copy the fix over.
> 
> -----Original Message-----
> From: Andy Sharp 
> Sent: Wednesday, June 18, 2008 10:44 AM
> To: Sandrine Boulanger
> Cc: Larry Scheer; Vikas Saini; John Rogers
> Subject: Re: issue with mirror snapshots when trying to use
> flash_install for sub#26 dev
> 
> A defect was already filed for this and the check already checked into
> dev.
  ^^^

s/check/fix/


> 
> On Wed, 18 Jun 2008 10:25:46 -0700 "Sandrine Boulanger"
> <sandrine.boulanger@onstor.com> wrote:
> 
> > I guess this is the part of the script that does not seem to work:
> > 
> > 
> > # the OS specific tar command to copy the dist
> > copy_OpenBSD_distribution() {
> >         export tardest="$1"
> >         tar -cf - -s '+\./\.snapshot/.*$++' -s
> > '+\./\.snapshot$++' . | (cd $tardest && nice -n 15 tar -xvpf - -s
> > '+./usr/man/.*++' -s ''
> > +./usr/local/man/.*++')
> > }
> > 
> > copy_Linux_distribution() {
> >         tar cf - --anchored --exclude='.snapshot/'
> > --exclude='\./usr/share/man'
> > . |
> >                 (cd "$1" && tar xvpf - --anchored
> > --exclude='\./usr/share/doc')
> > }
> > 
> > 
> > _____________________________________________
> > From: Sandrine Boulanger 
> > Sent: Wednesday, June 18, 2008 10:19 AM
> > To: Larry Scheer; Andy Sharp
> > Cc: Vikas Saini; John Rogers
> > Subject: issue with mirror snapshots when trying to use
> > flash_install for sub#26 dev
> > 
> > Since we are now having mirrors for all volumes on MD, there is a
> > .snapshot directory for build-trees
> > 
> > The problem is that the flash_install script does not skip it and we
> > run out of space when trying to build a new flash.
> > Is it easy to fix? Should I file a defect to follow up?
> > 
> > g7r204:/mnt/etc# ls /mnt/.snapshot/
> > ./   SANM_SS_move_buildup_000001020000016e_000000e2/
> > ../  SANM_SS_move_buildup_000001020000016e_000000e3/
> > g7r204:/mnt/etc#
> > 
> > g7r204:~#
> > -sub26/nfx-tree/Build/cg/dbg/Release
> > /mntbuild-trees/R4.0.0.0/R4.0.0.0DEV-061408
> > g7r204:~# cd /mnt/etc
> > g7r204:/mnt/etc# ./flash_install.sh
> > 
> > Welcome to the program that will format your Compact Flash card
> > and install the software on it.
> > 
> > Where do you have the new software located? [/mnt]
> > 
> > You are about to format the LOWER compact flash card.
> > You have 3 seconds to hit CTRL-C if this is not what you want.
> > 
> > CF card is 1006 MiB
> > 
> > Disk /dev/sdb: 1022 cylinders, 32 heads, 63 sectors/track
> > Old situation:
> > Units = cylinders of 1032192 bytes, blocks of 1024 bytes, counting
> > from 0
> > 
> >    Device Boot Start     End   #cyls    #blocks   Id  System
> > /dev/sdb1          0+    706     707-    712624+  83  Linux
> > /dev/sdb2        707     736      30      30240   82  Linux swap /
> > Solaris
> > /dev/sdb3        737     909     173     174384   83  Linux
> > /dev/sdb4        910    1021     112     112896   83  Linux
> > New situation:
> > Units = sectors of 512 bytes, counting from 0
> > 
> >    Device Boot    Start       End   #sectors  Id  System
> > /dev/sdb1            63   1425311    1425249  83  Linux
> > /dev/sdb2       1425312   1485791      60480  82  Linux swap /
> > Solaris /dev/sdb3       1485792   1834559     348768  83  Linux
> > /dev/sdb4       1834560   2060351     225792  83  Linux
> > Successfully wrote the new partition table
> > 
> > Re-reading the partition table ...
> > 
> > Formating /dev/sdb1.  This may take a few seconds..done.
> > Formating /dev/sdb3.  This may take a few seconds..done.
> > Formating /dev/sdb4.  This may take a few seconds..done.
> > ./
> > ./.snapshot/
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/ksh
> >
> ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/lsmod.mod
> > utils
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/mt
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/netcat
> >
> ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/nisdomain
> > name
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/pidof
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/rbash
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/rnano
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/sh
> >
> ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/ypdomainn
> > ame
> > ./.snapshot/SANM_SS_move_buildup_000001020000016e_000000e2/bin/arch
> > 
> > ...
> > 
> > 
> > 
> > ./onstor/lib/libipmd.so.1.0
> > ./onstor/lib/liblwp.so.1.0
> > ./onstor/lib/libncm.so.1.0
> > ./onstor/lib/libnfxnis.so.1.0
> > ./onstor/lib/libnfxsh.so.1.0
> > ./onstor/lib/libpm.so.1.0
> > ./onstor/lib/librcon.so.1.0
> > ./onstor/lib/librmc.so.1.0
> > ./onstor/lib/libshlt.so.1.0
> > ./onstor/lib/libsnmp.so.1.0
> > ./onstor/lib/libtimekeep.so.1.0
> > ./onstor/lib/libtrace.so.1.0
> > tar: ./onstor/lib/libtrace.so.1.0: Cannot write: No space left on
> > device ./onstor/lib/libubik.so.1.0
> > tar: ./onstor/lib/libubik.so.1.0: Cannot write: No space left on
> > device ./onstor/lib/libucdagent.so.1.0
> > tar: ./onstor/lib/libucdagent.so.1.0: Cannot write: No space left on
> > device
> > ./onstor/lib/libucdmibs.so.1.0
> > tar: ./onstor/lib/libucdmibs.so.1.0: Cannot write: No space left on
> > device
> > ./onstor/lib/libutils.so.1.0
> > tar: ./onstor/lib/libutils.so.1.0: Cannot write: No space left on
> > device ./onstor/lib/libzebra.so.1.0
> > tar: ./onstor/lib/libzebra.so.1.0: Cannot write: No space left on
> > device
