NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dump won't dump an fss snapshot on netbsd-5



On Sun, Jul 26, 2009 at 10:13:09PM -0400, Louis Guillaume wrote:
> I just updated the machine connected to my tape drive from netbsd-4 
> (stable) to netbsd-5 (stable). Now dump will not back up my fss snapshots...
> 
> 
> # fssconfig fss0 /home /var/tmp/maat-home
> # fssconfig -l
> fss0: /home
> fss1: not in use
> fss2: not in use
> fss3: not in use
> 
> 
> # dump -L maat-home -b 32 -0eautf /dev/nrst0 /dev/fss0
>   [16:26:21 EDT] DUMP: Date of this level 0 dump: Sun Jul 26 16:26:21 2009
>   [16:26:21 EDT] DUMP: Date of last level 0 dump: the epoch
>   [16:26:21 EDT] DUMP: Dumping /dev/fss0 (an unlisted file system) to 
> /dev/nrst0
>   [16:26:21 EDT] DUMP: Label: maat-home
>   [16:26:21 EDT] DUMP: mapping (Pass I) [regular files]
>   [16:26:47 EDT] DUMP: mapping (Pass II) [directories]
>   [16:26:47 EDT] DUMP: estimated 4749236 tape blocks.
>   [16:26:47 EDT] DUMP: Volume 1 started at: Sun Jul 26 16:26:47 2009
>   DUMP: slave couldn't reopen disk: Device busy
>   DUMP: slave couldn't reopen disk: Device busy
>   [16:26:47 EDT] DUMP: The ENTIRE dump is aborted.
> 
> 
> 
> ... here's my tape drive...
> 
> # dmesg|grep st0
> st0 at scsibus0 target 1 lun 0: <IBM, ULT3580-TD2, 38D0> tape removable
> st0: density code 64, variable blocks, write-enabled
> st0: sync (50.00ns offset 8), 16-bit (40.000MB/s) transfers
> 
> ... and its status...
> 
> # mt status
> SCSI tape drive, residual=0
> ds=3<Mounted>
> er=0
> blocksize: 32768 (0, 0, 0, 0)
> density: 66 (0, 0, 0, 0)
> current file number: 0
> current block number: 0
> 
> 
> 
> ... dump is working fine on "normal" ffs filesystems. I've been using 
> fss snapshots for this purpose for a few years now (since 2.0) with no 
> problems. Any advice would be great.
> 
> Louis

The /dev/fss? devices will not allow multiple opens.  To dump a snapshot
please use the -x / -X flags.  In your example it would be:

    dump -L maat-home -b 32 -0eautf /dev/nrst0 -x /var/tmp/maat-home /home

-- 
Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)


Home | Main Index | Thread Index | Old Index