delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/19/10:47:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4124BD84.4020304@macroscoop.nl>
Date: Thu, 19 Aug 2004 16:47:32 +0200
From: Pim Zandbergen <P DOT Zandbergen AT macroscoop DOT nl>
User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.10-3 + mt 2.3 scsi tape problems
References: <4122275D DOT 6010101 AT macroscoop DOT nl> <20040817155426 DOT GN1689 AT cygbert DOT vinschen DOT de>
In-Reply-To: <20040817155426.GN1689@cygbert.vinschen.de>
X-Antivirus: Scanned by F-Prot Antivirus (http://www.f-prot.com)
X-Antivirus-Summary: Mod score: 0
X-Spam-Status: No, hits=0.0 required=2.0 tests=none autolearn=no version=2.63
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mondriaan.macroscoop.nl
Note-from-DJ: This may be spam

Corinna Vinschen wrote:

>On Aug 17 17:42, Pim Zandbergen wrote:
>  
>
>>I'm using a cygwin script as a wrapper around ntbackup on a number
>>of servers, running windows 2000 and 2003 server.
>>
>>Basically, the script does
>>
>>mt -f /dev/st0 status
>>dd if=labelfile of=/dev/st0
>>ntbackup  [ lots of options ]
>>mt -f /dev/st0 offline
>>
>>After doing cygwin updates, backups started failing.
>>mt and/or dd would hang, ntbackup wouldn't detect the tape drive
>>
>>This usually happened the second day. One day everything would
>>work, the next day, the backup would hang. Rebooting would be
>>the only way to get a good backup the next day. On one server,
>>a cold reboot was always necessary to release the tape.
>>    
>>
>
>A cold reboot shouldn't be necessary AT all.  After the last Cygwin
>process on the machine has stopped, there's nothing in Cygwin left
>which could block the tape device.
>
No, it shouldn't. In fact cygwin itself has left, as there's not a 
single cygwin
process inbetween the backups. The script is started from the Windows Task
Scheduler.

But I did see the write LED burning, so the hardware thinks something 
still is writing.

>>Reverting back to cygwin 1.5.9 and mt 2.1 resolved my problems.
>>    
>>
>
>That's not exactly helpful. 
>
OK, I upgraded one server again and did some more testing.

>Do mt or dd hang when called from the
>command line, too?
>
Yes.

>What does an strace of mt or dd show?
>  
>
They dump core when strace'd.

Anyway, I think I've found the problem. When the system boots, mt status
shows a tape block size of 0. ntbackup seems to change it to 16k. That makes
dd hang in the next script. using "mt setblk 0" before dd, and adding 
"bs=16k"
to the dd command line solves the problem.

Somehow, the old code would not hang in this situation, the new code does.

My problem seems solved now, but this should allow you to reproduce the
problem immediately:

mt -f /dev/st0 setblk 16384
dd if=/dev/zero of=/dev/st0 bs=16k count=1

Thanks,
Pim



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019