On 02/02/17 04:34 AM, Stefan G. Weichinger wrote:
> gentoo linux, amanda 3.3.9
> same installation worked for months
>
> now the tape isn't written anymore, amflush or amlabel fails.
>
> we cleaned the tape drive, reloaded st module
>
> $ amcheck daily
> Amanda Tape Server Host Check
> -----------------------------
> Holding disk /mnt/amhold/daily: 52084 MB disk space available, using
> 51984 MB
> slot 1: volume 'ADX514'
> Will write to volume 'ADX514' in slot 1.
> NOTE: skipping tape-writable test
> Server check took 0.109 seconds
>
> Amanda Backup Client Hosts Check
> --------------------------------
> Client check: 1 host checked in 1.086 seconds.  0 problems found.
>
> (brought to you by Amanda 3.3.9)
>
> --->
>
> I try to label that tape:
>
> $ amlabel -f daily ADX514
> Reading label...
> Volume with label 'ADX514' is active and contains data from this
> configuration.
> Consider using 'amrmtape' to remove volume 'ADX514' from the catalog.
> Writing label 'ADX514'...
> Error writing label: Error writing tapestart header: Kernel gave
> unexpected write() result of "Keine Berechtigung" on device /dev/nst0

Either the write-protection tab on the tape or a hardware failure.

Jean-Louis
>
> I even chowned nst0:
>
> # ls -l /dev/nst0
> crw-rw---- 1 amanda tape 9, 128  2. Feb 09:44 /dev/nst0
>
> "dmesg" looks good to me.
>
> any ideas, anyone?
>
>
> ah:
>
> $ cat taper.20170202102843.debug
> Thu Feb  2 10:28:43 2017: thd-0x2aca200: taper: pid 29240 ruid 87 euid
> 87 version 3.3.9: start at Thu Feb  2 10:28:43 2017
> Thu Feb  2 10:28:43 2017: thd-0x2aca200: taper: Arguments: daily
> Thu Feb  2 10:28:43 2017: thd-0x2aca200: taper: pid 29240 ruid 87 euid
> 87 version 3.3.9: rename at Thu Feb  2 10:28:43 2017
> Thu Feb  2 10:28:43 2017: thd-0x2aca200: taper:
> Amanda::Taper::Scan::traditional stage 1: search for oldest reusable volume
> Thu Feb  2 10:28:43 2017: thd-0x2aca200: taper:
> Amanda::Taper::Scan::traditional oldest reusable volume is 'ADX515'
> Thu Feb  2 10:28:43 2017: thd-0x2aca200: taper:
> Amanda::Taper::Scan::traditional changer is not fast-searchable;
> skipping to stage 2
> Thu Feb  2 10:28:43 2017: thd-0x2aca200: taper:
> Amanda::Taper::Scan::traditional stage 2: scan for any reusable volume
> Thu Feb  2 10:28:43 2017: thd-0x2aca200: taper: Device is in variable
> block size
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: Slot 1 with label ADX514
> is usable
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper:
> Amanda::Taper::Scan::traditional result: 'ADX514' on tape:/dev/nst0 slot
> 1, mode 2
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: Amanda::Taper::Scribe
> preparing to write, part size 0, using no cache (PEOM will be fatal)
> (splitter)  (no LEOM)
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: Starting <Xfer@0x2c3e790
> (<XferSourceHolding@0x2c40000> -> <XferDestTaperSplitter@0x2c3f040>)>
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: Final linkage:
> <XferSourceHolding@0x2c40000> -(PULL_BUFFER)->
> <XferElementGlue@0x2b8c210> -(PUSH_BUFFER)->
> <XferDestTaperSplitter@0x2c3f040>
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: Building type TAPESTART
> header of 32768-32768 bytes with name='ADX514' disk='' dumplevel=0 and
> blocksize=32768
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: Device tape:/dev/nst0
> error = 'Error writing tapestart header: Kernel gave unexpected write()
> result of "Permission denied" on device /dev/nst0'
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: Device tape:/dev/nst0
> setting status flag(s): DEVICE_STATUS_DEVICE_ERROR
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: Cancelling
> <Xfer@0x2c3e790 (<XferSourceHolding@0x2c40000> ->
> <XferDestTaperSplitter@0x2c3f040>)>
> Thu Feb  2 10:28:45 2017: thd-0x2c40c50: taper: xfer-source-holding CRC:
> bee1fd76:1441792
> Thu Feb  2 10:28:45 2017: thd-0x2c40c00: taper: xfer-dest-taper-splitter
> CRC: 00000000:0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_utime   : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_stime   : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_maxrss  : 25848
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_ixrss   : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_idrss   : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_isrss   : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_minflt  : 5015
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_majflt  : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_nswap   : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_inblock : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_oublock : 24
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_msgsnd  : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_msgrcv  : 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_nsignals: 0
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_nvcsw   : 11
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: ru_nivcsw  : 4
> Thu Feb  2 10:28:45 2017: thd-0x2aca200: taper: pid 29240 finish time
> Thu Feb  2 10:28:45 2017
>

Reply via email to