Results 1 to 4 of 4

Thread: problem with backing up windows machine

  1. #1
    Join Date
    Sep 2008
    Posts
    32

    Default problem with backing up windows machine

    hi,
    I'm using solaris sxde (like solaris 10) as amanda server, sucesfully backing up itself and another machine (debian). Now I'm trying to back up windows machine using samba that is what i receive after amcheck:

    Code:
    amanda$ amcheck win
    Amanda Tape Server Host Check
    -----------------------------
    Holding disk /vm/amanda/amandahold/win: 385402880 kB disk space available, using 385402880 kB
    Error reading 32768 bytes from /dev/rmt/0n: I/O error
    Error reading Amanda header.
    Found a non-amanda tape.
           (expecting a new tape)
    WARNING: tapecycle (1) <= runspercycle (8).
    NOTE: host info dir /var/log/amanda/win/curinfo/server.mycompany.com does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /var/log/amanda/win/index/server.mycompany.com does not exist
    NOTE: it will be created on the next run.
    Server check took 11.029 seconds
    
    Amanda Backup Client Hosts Check
    --------------------------------
    ERROR: server.mycompany.com: service /usr/local/libexec/amanda/selfcheck failed: pid 26923 exited with signal 11
    Client check: 1 host checked in 3.901 seconds.  1 problem found.
    
    (brought to you by Amanda 2.6.0p2)
    I know about the tape - but that's not the main reason of this post, I'm wondering about the strange error in the end. My config name is "win", here's amanda.conf:

    Code:
    amanda$ cat win/amanda.conf
    # amanda.conf - Amanda configuration file for full dumps
    
    org "mycompany.com"          # your organization name for reports
    
    mailto "myemail@mycompany.com"  # space separated list of operators at your site
    
    dumpuser "amanda" # the user to run dumps under
    
    inparallel 15         # maximum dumpers that will run in parallel (max 63)
                     # this maximum can be increased at compile-time,
                     # modifying MAX_DUMPERS in server-src/driverio.h
    
    dumporder "ttBTBTBTBTBTBTB" # specify the priority order of each dumper
                     #   s -> smallest size
                     #   S -> biggest size
                     #   t -> smallest time
                     #   T -> biggest time
                     #   b -> smallest bandwidth
                     #   B -> biggest bandwidth
                     # try "BTBTBTBTBTBT" if you are not holding
                     # disk constrained
    
    netusage  10000000 Kbps # maximum net bandwidth for Amanda, in KB per sec
    
    dumpcycle 3 weeks # the number of days in the normal dump cycle
    
    runspercycle 8          # the number of amdump runs in dumpcycle days
                     # (4 weeks * 5 amdump runs per week -- just weekdays)
    
    tapecycle 1 tapes # the number of tapes in rotation
                     # 4 weeks (dumpcycle) times 5 tapes per week (just
                     # the weekdays) plus a few to handle errors that
                     # need amflush and so we do not overwrite the full
                     # backups performed at the beginning of the previous
                     # cycle
    
    bumpsize 20 Mb   # minimum savings (threshold) to bump level 1 -> 2
    
    bumpdays 1       # minimum days at each level
    
    bumpmult 4       # threshold = bumpsize * bumpmult^(level-1)
    
    etimeout 600
    
    dtimeout 1800    # number of idle seconds before a dump is aborted.
    
    ctimeout 30      # maximum number of seconds that amcheck waits
                     # for each client host
    
    tapebufs 20
    
    tapedev "tape:/dev/rmt/0n"  #myown
    
    runtapes 1         # number of tapes to be used in a single run of amdump
    
    tapetype LTO2
    
    labelstr "^Win-[0-9][0-9]*$" # label constraint regex: all tapes must match
    
    holdingdisk hd1 {
        comment "main holding disk"
        directory "/vm/amanda/amandahold/win" # where the holding disk is
    }
    
    reserve 0
    
    autoflush no
    columnspec "HostName=0:12,Disk=1:12,Level=1:1,OrigKB=1:7,OutKB=1:7,DumpTime=1:6,DumpRate=1:7,TapeTime=1:6,TapeRate=1:7,Compress=1:0"
    
    infofile "/var/log/amanda/win/curinfo" # database DIRECTORY
    
    logdir   "/var/log/amanda/win"         # log directory
    
    indexdir "/var/log/amanda/win/index" # index directory
    
    #generatred by amtapetype -t LTO2 -e 200g -f /dev/rmt/0 on my server
    define tapetype LTO2 {
        comment "just produced by tapetype prog (hardware compression on)"
        length 180736 mbytes
        filemark 0 kbytes
        speed 18667 kps
    }
    
    
    #myown:
    define dumptype comp-tar {
        program "GNUTAR"
        #exclude file "/usr/local/var/amanda/gnutar-lists"
        compress fast
        index yes
        record no           # Important! avoid interfering with production runs
        auth "bsdtcp"
        strategy noinc
    }
    
    define dumptype global {
        # This is quite useful for setting global parameters, so you don't have
        # to type them everywhere.  All dumptype definitions in this sample file
        # do include these definitions, either directly or indirectly.
        comment "Global definitions"
        compress NONE
        priority high
        dumpcycle 0
        holdingdisk yes
        index yes
        record yes
    }
    
    #server interface 1Gb eth (192.168.4.4)
    define interface bnx1 {
            comment "1 Gbps ethernet"
            use 9000000 kbps
    }
    and my disklist:

    Code:
    amanda$ cat win/disklist
    #test disklist
    
    myserver.mycompany.com    //WINPC/backups comp-tar
    Where myserver.mycompany.com is my amanda server and WINPC is windows machine I want to backup (backups is a shared catalog I want to backup).

    My /etc/amandapass file:

    Code:
    amanda$ cat /etc/amandapass
    //WINPC/backups   user%password   WORKGROUP
    
    amanda$ ls -alh /etc/amandapass
    -rw-------    1 amanda   amanda         44 Sep 24 15:26 /etc/amandapass
    Now, despite the tape error (I know about this, I know what to do with this ; ) what the heck is
    "ERROR: server.mycompany.com: service /usr/local/libexec/amanda/selfcheck failed: pid 26923 exited with signal 11"
    this error? any hints? regards,
    Michał
    Last edited by michas; September 24th, 2008 at 05:58 AM.

  2. #2
    Join Date
    Sep 2008
    Posts
    32

    Default

    ok, I thought the main problem is caused by the tape error, but no, I fixed the tape error:

    Code:
    amanda$ amlabel win Win-01
    Reading label...
    Found Amanda tape Win-01
    Writing label Win-01..
    Checking label...
    Success!
    and tried "amcheck win":

    Code:
    amanda$ amcheck win
    Amanda Tape Server Host Check
    -----------------------------
    Holding disk /vm/amanda/amandahold/win: 383143424 kB disk space available, using 383143424 kB
    read label `Win-01', date `X'.
    NOTE: skipping tape-writable test
    Tape Win-01 label ok
    WARNING: tapecycle (1) <= runspercycle (8).
    NOTE: host info dir /var/log/amanda/win/curinfo/server.mycompany.com does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /var/log/amanda/win/index/server.mycompany.com does not exist
    NOTE: it will be created on the next run.
    Server check took 14.647 seconds
    
    Amanda Backup Client Hosts Check
    --------------------------------
    ERROR: server.mycompany.com: service /usr/local/libexec/amanda/selfcheck failed: pid 4644 exited with signal 11
    Client check: 1 host checked in 3.473 seconds.  1 problem found.
    
    (brought to you by Amanda 2.6.0p2)
    still the same... what I found out, signal 11 is segmentation fault...

    any ideas?

    regards, Michał

  3. #3
    Join Date
    Sep 2008
    Posts
    32

    Default

    I have some more progress...

    Code:
    amanda$ amcheck win
    Amanda Tape Server Host Check
    -----------------------------
    Holding disk /vm/amanda/amandahold/win: 378742784 kB disk space available, using 378742784 kB
    read label `Win-01', date `X'.
    NOTE: skipping tape-writable test
    Tape Win-01 label ok
    WARNING: tapecycle (1) <= runspercycle (8).
    NOTE: host info dir /var/log/amanda/win/curinfo/myserver.mycompany.com does not exist
    NOTE: it will be created on the next run.
    NOTE: index dir /var/log/amanda/win/index/myserver.mycompany.com does not exist
    NOTE: it will be created on the next run.
    Server check took 14.681 seconds
    
    Amanda Backup Client Hosts Check
    --------------------------------
    ERROR: myserver.mycompany.com: service /usr/local/libexec/amanda/selfcheck failed: pid 6142 exited with signal 11
    Client check: 1 host checked in 3.472 seconds.  1 problem found.
    
    (brought to you by Amanda 2.6.0p2)
    this doesn't change; however, in log files You can see:

    Code:
    amanda$ cat /tmp/amanda/client/win/selfcheck.20080925112502.debug
    1222334702.231531: selfcheck: pid 6142 ruid 5555 euid 5555: start at Thu Sep 25 11:25:02 2008
    1222334702.231688: selfcheck: version 2.6.0p2
    1222334702.231956: selfcheck: warning: errors processing config file "/usr/local/etc/amanda/amanda-client.conf" (non-fatal)
    1222334702.232851: selfcheck: warning: errors processing config file "/usr/local/etc/amanda/win/amanda-client.conf" (non-fatal)
    1222334702.233063: selfcheck: pid 6142 ruid 5555 euid 5555: rename at Thu Sep 25 11:25:02 2008
    1222334702.233312: selfcheck: checking disk //WINPC/backups
    1222334702.233542: selfcheck: Spawning "/opt/csw/bin/smbclient smbclient "\\\\WINPC\\backups" -U user -E -W WORKGROUP -c quit" in pipeline
    1222334702.607262: selfcheck: disk //WINPC/backups OK
    1222334702.607288: selfcheck: amdevice //WINPC/backups OK
    Code:
    amanda$ cat /tmp/amanda/server/win/amcheck.20080925112501.debug
    1222334701.154803: amcheck: pid 6136 ruid 5555 euid 5555: start at Thu Sep 25 11:25:01 2008
    1222334701.155827: amcheck: pid 6136 ruid 5555 euid 5555: rename at Thu Sep 25 11:25:01 2008
    1222334701.160289: amcheck-clients: security_getdriver(name=bsdtcp) returns fef02680
    1222334701.160429: amcheck-clients: security_handleinit(handle=8075d48, driver=fef02680 (BSDTCP))
    1222334701.162447: amcheck-clients: security_streaminit(stream=8076bc8, driver=fef02680 (BSDTCP))
    1222334701.162964: amcheck-clients: connect_port: Skip port 512: owned by exec.
    1222334701.163052: amcheck-clients: connect_port: Skip port 513: owned by login.
    1222334701.163127: amcheck-clients: connect_port: Skip port 514: owned by shell.
    1222334701.163198: amcheck-clients: connect_port: Skip port 515: owned by printer.
    1222334701.163525: amcheck-clients: connect_port: Try  port 516: available - Success
    1222334701.163762: amcheck-clients: connected to 192.168.4.4.10080
    1222334701.163773: amcheck-clients: our side is 0.0.0.0.516
    1222334701.163793: amcheck-clients: try_socksize: send buffer size is 65536
    1222334701.163830: amcheck-clients: try_socksize: receive buffer size is 65536
    1222334701.185422: amcheck-server: device_read_label; mode = 0
    1222334702.212295: amcheck-clients: security_getdriver(name=bsdtcp) returns fef02680
    1222334702.212314: amcheck-clients: security_handleinit(handle=807f4d8, driver=fef02680 (BSDTCP))
    1222334702.212475: amcheck-clients: security_streaminit(stream=807f628, driver=fef02680 (BSDTCP))
    1222334702.212497: amcheck-clients: security_close(handle=8075d48, driver=fef02680 (BSDTCP))
    1222334702.212507: amcheck-clients: security_stream_close(8076bc8)
    1222334704.632156: amcheck-clients: security_close(handle=807f4d8, driver=fef02680 (BSDTCP))
    1222334704.632178: amcheck-clients: security_stream_close(807f628)
    1222334707.324345: amcheck-server: device_read_label; mode = 0
    1222334715.844478: amcheck: pid 6136 finish time Thu Sep 25 11:25:15 2008
    Code:
    amanda$ cat /tmp/amanda/amandad/amandad.20080925112501.debug
    1222334701.191546: amandad: pid 6139 ruid 5555 euid 5555: start at Thu Sep 25 11:25:01 2008
    1222334701.192001: amandad: warning: errors processing config file "/usr/local/etc/amanda/amanda-client.conf" (non-fatal)
    1222334701.192164: amandad: security_getdriver(name=bsdtcp) returns fef42680
    1222334701.192203: amandad: version 2.6.0p2
    1222334701.192212: amandad:     build: VERSION="Amanda-2.6.0p2"
    1222334701.192219: amandad:            BUILT_DATE="Mon Sep 8 11:10:15 MEST 2008"
    1222334701.192226: amandad:            BUILT_MACH="i386-pc-solaris2.11" BUILT_REV="1267"
    1222334701.192232: amandad:            BUILT_BRANCH="amanda-260" CC="/usr/sfw/bin/gcc"
    1222334701.192239: amandad:     paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
    1222334701.192245: amandad:            libexecdir="/usr/local/libexec"
    1222334701.192252: amandad:            amlibexecdir="/usr/local/libexec/amanda"
    1222334701.192258: amandad:            mandir="/usr/local/share/man" AMANDA_TMPDIR="/tmp/amanda"
    1222334701.192265: amandad:            AMANDA_DBGDIR="/tmp/amanda"
    1222334701.192271: amandad:            CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/dsk/"
    1222334701.192278: amandad:            RDEV_PREFIX="/dev/rdsk/" DUMP="/usr/sbin/ufsdump"
    1222334701.192284: amandad:            RESTORE="/usr/sbin/ufsrestore" VDUMP=UNDEF VRESTORE=UNDEF
    1222334701.192290: amandad:            XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF
    1222334701.192297: amandad:            SAMBA_CLIENT="/opt/csw/bin/smbclient"
    1222334701.192303: amandad:            GNUTAR="/usr/bin/gtar" COMPRESS_PATH="/usr/bin/gzip"
    1222334701.192310: amandad:            UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lpr"
    1222334701.192317: amandad:            MAILER="/usr/bin/mailx"
    1222334701.192323: amandad:            listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
    1222334701.192330: amandad:     defs:  DEFAULT_SERVER="myserver" DEFAULT_CONFIG="DailySet1"
    1222334701.192336: amandad:            DEFAULT_TAPE_SERVER="myserver" DEFAULT_TAPE_DEVICE=""
    1222334701.192343: amandad:            HAVE_MMAP NEED_STRSTR HAVE_SYSVSHM LOCKING=**NONE**
    1222334701.192349: amandad:            SETPGRP_VOID AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS
    1222334701.192357: amandad:            CLIENT_LOGIN="amanda" CHECK_USERID HAVE_GZIP
    1222334701.192364: amandad:            COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
    1222334701.192370: amandad:            COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
    1222334701.193413: amandad: security_handleinit(handle=806f6a0, driver=fef42680 (BSDTCP))
    1222334701.193452: amandad: security_streaminit(stream=8071218, driver=fef42680 (BSDTCP))
    1222334701.193635: amandad: accept recv REQ pkt:
    <<<<<
    SERVICE noop
    OPTIONS features=ffffffff9ffeffffffff00;
    >>>>>
    1222334701.193665: amandad: creating new service: noop
    OPTIONS features=ffffffff9ffeffffffff00;
    
    1222334701.195571: amandad: sending ACK pkt:
    <<<<<
    >>>>>
    1222334702.211895: amandad: sending REP pkt:
    <<<<<
    OPTIONS features=ffffffff9ffeffffffff00;
    >>>>>
    1222334702.212064: amandad: received ACK pkt:
    <<<<<
    >>>>>
    1222334702.212124: amandad: security_close(handle=806f6a0, driver=fef42680 (BSDTCP))
    1222334702.212136: amandad: security_stream_close(8071218)
    1222334702.212654: amandad: security_handleinit(handle=806f758, driver=fef42680 (BSDTCP))
    1222334702.212665: amandad: security_streaminit(stream=8071218, driver=fef42680 (BSDTCP))
    1222334702.212851: amandad: accept recv REQ pkt:
    <<<<<
    SERVICE selfcheck
    OPTIONS features=ffffffff9ffeffffffff00;maxdumps=1;hostname=myserver.mycompany.com;config=win;
    GNUTAR //WINPC/backups 0 OPTIONS |;auth=bsdtcp;index;
    >>>>>
    1222334702.212873: amandad: creating new service: selfcheck
    OPTIONS features=ffffffff9ffeffffffff00;maxdumps=1;hostname=myserver.mycompany.com;config=win;
    GNUTAR //WINPC/backups 0 OPTIONS |;auth=bsdtcp;index;
    
    1222334702.214486: amandad: sending ACK pkt:
    <<<<<
    >>>>>
    1222334704.631832: amandad: service /usr/local/libexec/amanda/selfcheck failed: pid 6142 exited with signal 11
    1222334704.631982: amandad: sending REP pkt:
    <<<<<
    OPTIONS features=ffffffff9ffeffffffff00;
    ERROR service /usr/local/libexec/amanda/selfcheck failed: pid 6142 exited with signal 11
    >>>>>
    1222334704.632195: amandad: received ACK pkt:
    <<<<<
    >>>>>
    1222334704.632257: amandad: security_close(handle=806f758, driver=fef42680 (BSDTCP))
    1222334704.632267: amandad: security_stream_close(8071218)
    1222334704.632620: amandad: pid 6139 finish time Thu Sep 25 11:25:04 2008
    so I still have signal 11 (segmentation fault) and I don't know what the heck is goin on.... anybody?

    regards, Michał

  4. #4
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    Michas, try the attached patch

    Jean-Louis
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •