Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use chg-manual #263

Open
kcleal opened this issue Sep 20, 2024 · 0 comments
Open

How to use chg-manual #263

kcleal opened this issue Sep 20, 2024 · 0 comments

Comments

@kcleal
Copy link

kcleal commented Sep 20, 2024

Hi,
Im just starting out with amanda and am having some issues getting a manual tape change to work. I have followed advice from #81 , but still run into issues. I have a 30 Tb volume and 18 Tb tapes (single tape drive). Here is my config file:

# Directories
infofile "/home/amandabackup/state/curinfo"
logdir "/home/amandabackup/state/log"
indexdir "/home/amandabackup/state/index"

# Tape management
tapedev "/dev/st0"
tpchanger "chg-single:/dev/st0"
runtapes 2
labelstr "BLA[0-9][0-9][0-9]"
autolabel "BLA%%%" EMPTY VOLUME_ERROR

device_property "LEOM" "TRUE"

tapetype LTO-9
define tapetype LTO-9 {
    length 18 Tb
    filemark 4 kb
    part_size 900 Gb  # 1/20 of tape size (18 Tb)
    part_cache_type disk
    part_cache_dir "/home/amandabackup/part_cache"
    part_cache_max_size 500 Gb  # Adjust based on available disk space
}


define interactivity "email-change" {
  comment "Send email to have tapes swapped"
  plugin "email"
  property "mailto" "[email protected]"
  property "resend-delay" "43200"
}

interactivity "email-change"


define taperscan lexical-scan {
  plugin "lexical"
}
taperscan "lexical-scan"


# Dump definitions
define dumptype simple-gnutar-local {
    auth "local"
    compress NONE
    program "GNUTAR"
    # change to this once full backup has been performed?
    #strategy incronly
    strategy standard
    allow-split yes
}

# Holding disk configuration
holdingdisk hd1 {
    comment "10 GB fast PCIe-SSD for staging backups"
    directory "/home/amandabackup/holding"
    use 500 Gb
    chunksize 1 Gb
}

# Backup definition
define application-tool app_bairdlab {
    plugin "gnutar"
    property "GNUTAR-PATH" "/bin/tar"
    property "ONE-FILE-SYSTEM" "yes"
    property "SPARSE" "no"
}

I pre-labelled 4 tapes using amlabel (BLA001 - BLA004) to make sure I have enough. I inserted BLA001 and started amdump. Everything progresses as expected until the tape runs out of space. The full tape is ejected automatically, I then inserted the next tape BLA002. However, the amdump command exits straight away and I see this in the log:

....
SUCCESS dumper localhost /etc/amanda 20240918145501 0 bfe8409c:20480 bfe8409c:20480 [sec 1.060 kb 20 kps 18.9 orig-kb 20]
SUCCESS chunker localhost /etc/amanda 20240918145501 0 bfe8409c:20480 [sec 1.049031 kb 20 kps 19.065214]
STATS driver estimate localhost /etc/amanda 20240918145501 0 [sec 0 nkb 52 ckb 64 kps 1024]
INFO chunker pid-done 31246
INFO dumper gzip pid 31278
START taper datestamp 20240918145501 "ST:BairdLabA" "POOL:BairdLabA" label BLA001 tape 1
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 1 localhost /media/baird_A 20240918145501 1/-1 0 [sec 7755.526272 bytes 966367641600 kps 121683.347706]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 2 localhost /media/baird_A 20240918145501 2/-1 0 [sec 7629.796365 bytes 966367641600 kps 123688.543554]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 3 localhost /media/baird_A 20240918145501 3/-1 0 [sec 7748.405072 bytes 966367641600 kps 121795.181232]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 4 localhost /media/baird_A 20240918145501 4/-1 0 [sec 7892.052903 bytes 966367641600 kps 119578.316517]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 5 localhost /media/baird_A 20240918145501 5/-1 0 [sec 7497.198881 bytes 966367641600 kps 125876.132537]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 6 localhost /media/baird_A 20240918145501 6/-1 0 [sec 7448.204837 bytes 966367641600 kps 126704.141555]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 7 localhost /media/baird_A 20240918145501 7/-1 0 [sec 7460.200738 bytes 966367641600 kps 126500.403024]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 8 localhost /media/baird_A 20240918145501 8/-1 0 [sec 7493.623331 bytes 966367641600 kps 125936.193790]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 9 localhost /media/baird_A 20240918145501 9/-1 0 [sec 7473.471328 bytes 966367641600 kps 126275.777156]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 10 localhost /media/baird_A 20240918145501 10/-1 0 [sec 7493.154280 bytes 966367641600 kps 125944.077052]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 11 localhost /media/baird_A 20240918145501 11/-1 0 [sec 7519.775807 bytes 966367641600 kps 125498.209551]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 12 localhost /media/baird_A 20240918145501 12/-1 0 [sec 7490.582991 bytes 966367641600 kps 125987.309817]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 13 localhost /media/baird_A 20240918145501 13/-1 0 [sec 7518.618794 bytes 966367641600 kps 125517.522015]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 14 localhost /media/baird_A 20240918145501 14/-1 0 [sec 7538.838483 bytes 966367641600 kps 125180.875294]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 15 localhost /media/baird_A 20240918145501 15/-1 0 [sec 7504.140477 bytes 966367641600 kps 125759.692651]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 16 localhost /media/baird_A 20240918145501 16/-1 0 [sec 7444.603412 bytes 966367641600 kps 126765.436353]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 17 localhost /media/baird_A 20240918145501 17/-1 0 [sec 7503.726602 bytes 966367641600 kps 125766.629044]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 18 localhost /media/baird_A 20240918145501 18/-1 0 [sec 7488.511611 bytes 966367641600 kps 126022.158878]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 19 localhost /media/baird_A 20240918145501 19/-1 0 [sec 7478.955564 bytes 966367641600 kps 126183.180516]
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA001 20 localhost /media/baird_A 20240918145501 20/-1 0 [sec 1864.160304 bytes 242869370880 kps 127230.002426]
INFO taper tape BLA001 Barcode  kb 18167826720 fm 20 [OK]
INFO taper Slot 1 with label BLA001 is usable
INFO taper Slot 1 without label can be labeled
INFO taper Slot 1 without label can be labeled
INFO taper Slot 1 without label can be labeled
...
INFO taper Slot 1 without label can be labeled
INFO taper Slot 1 without label can be labeled
INFO taper Slot 1 with label BLA002 is usable
START taper datestamp 20240918145501 "ST:BairdLabA" "POOL:BairdLabA" label BLA002 tape 2
PARTIAL taper "ST:BairdLabA" "POOL:BairdLabA" localhost /media/baird_A 20240918145501 20 0 00000000:0 00000000:0 00000000:0 [sec 163806.000000 bytes 18603854561280 kps 110910.630380] "shm-ring cancelled"
PART taper "ST:BairdLabA" "POOL:BairdLabA" BLA002 1 localhost /etc/amanda 20240918145501 1/-1 0 [sec 1.869904 bytes 20480 kps 10.695736 orig-kb 20]
DONE taper "ST:BairdLabA" "POOL:BairdLabA" localhost /etc/amanda 20240918145501 1 0 bfe8409c:20480 bfe8409c:20480 bfe8409c:20480 [sec 2.000000 bytes 20480 kps 10.000000 orig-kb 20]
FAIL driver localhost /media/baird_A 20240918145501 0 [out of holding space in degraded mode]
INFO taper tape BLA002 Barcode  kb 20 fm 1 [OK]

Ok so next I tried restarting amdump with the BLA002 tape in the drive, however the BLA002 tape gets ejected immediately. What do I do? I want to finish the backup on the BLA002 tape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant