I have an older Sun server (T5220, Solaris 10, J4200 SAS, LIB162-AIT5) that is still running but
close to being replaced.
I tried to add some holding disk space by allocating from a ZFS pool.
amcheck tells me that there is 0 KB free, but df -k tells me it has 179G free. amcheck debug makes
no reference to this check.
Is it possible that Amanda 2.5.1p3 is using some UFS specific system level call that doesn't work
for ZFS?
Following is just about everything I thought might be relevant.
-------------
wahoo:/usr/local/etc/amanda$ amcheck daily
Amanda Tape Server Host Check
-----------------------------
WARNING: holding disk /var/spool/amanda/disk2: only 0 KB free, using nothing
Holding disk /var/spool/amanda/disk1: 32070944 KB disk space available, using
30534944 KB
-------------
wahoo:/# df -k | grep amanda
/dev/dsk/c1t2d0s3 103275934 70172231 32070944 69% /var/spool/amanda/disk1
/dev/dsk/c1t0d0s6 24784872 24585 24512439 1%
/usr/local/etc/amanda/snapshots
jpool/amandaspace 209715200 29841383 179873817 15% /var/spool/amanda/disk2
--------------
wahoo:/# zfs get all jpool/amandaspace
NAME PROPERTY VALUE SOURCE
jpool/amandaspace type filesystem -
jpool/amandaspace creation Fri Oct 10 17:20 2014 -
jpool/amandaspace used 28.5G -
jpool/amandaspace available 172G -
jpool/amandaspace referenced 28.5G -
jpool/amandaspace compressratio 1.00x -
jpool/amandaspace mounted yes -
jpool/amandaspace quota 200G local
jpool/amandaspace reservation none default
jpool/amandaspace recordsize 128K default
jpool/amandaspace mountpoint /var/spool/amanda/disk2 local
jpool/amandaspace sharenfs off default
jpool/amandaspace checksum on default
jpool/amandaspace compression off default
jpool/amandaspace atime on default
jpool/amandaspace devices on default
jpool/amandaspace exec on default
jpool/amandaspace setuid on default
jpool/amandaspace readonly off default
jpool/amandaspace zoned off default
jpool/amandaspace snapdir hidden default
jpool/amandaspace aclmode groupmask default
jpool/amandaspace aclinherit restricted default
jpool/amandaspace canmount on default
jpool/amandaspace shareiscsi off default
jpool/amandaspace xattr on default
jpool/amandaspace copies 1 default
jpool/amandaspace version 3 -
jpool/amandaspace utf8only off -
jpool/amandaspace normalization none -
jpool/amandaspace casesensitivity sensitive -
jpool/amandaspace vscan off default
jpool/amandaspace nbmand off default
jpool/amandaspace sharesmb off default
jpool/amandaspace refquota none default
jpool/amandaspace refreservation none default
-------------
wahoo:/usr/local/etc/amanda$ more
/tmp/amanda/server/daily/amcheck.20141016151955.debug
amcheck: debug 1 pid 28285 ruid 555 euid 0: start at Thu Oct 16 15:19:55 2014
amcheck: debug 1 pid 28285 ruid 555 euid 555: rename at Thu Oct 16 15:19:56 2014
security_getdriver(name=BSD) returns ff316518
security_handleinit(handle=32cf8, driver=ff316518 (BSD))
amcheck-clients: time 0.010: bind_portrange2: Try port 731: Available -
Success
amcheck-clients: time 0.010: dgram_bind: socket bound to 0.0.0.0.731
amcheck-clients: dgram_send_addr(addr=ffbf7508, dgram=ff316908)
amcheck-clients: time 0.011: (sockaddr_in *)ffbf7508 = { 2, 10080, 127.0.0.1 }
amcheck-clients: dgram_send_addr: ff316908->socket = 5
security_getdriver(name=ssh) returns ff316638
security_handleinit(handle=34880, driver=ff316638 (SSH))
security_streaminit(stream=3bcb8, driver=ff316638 (SSH))
amcheck-clients: time 0.142: dgram_recv(dgram=ff316908, timeout=0,
fromaddr=ff3268f4)
amcheck-clients: time 0.142: (sockaddr_in *)ff3268f4 = { 2, 10080, 127.0.0.1 }
amcheck-clients: time 0.185: dgram_recv(dgram=ff316908, timeout=0,
fromaddr=ff3268f4)
amcheck-clients: time 0.185: (sockaddr_in *)ff3268f4 = { 2, 10080, 127.0.0.1 }
amcheck-clients: dgram_send_addr(addr=ffbf73f8, dgram=ff316908)
amcheck-clients: time 0.185: (sockaddr_in *)ffbf73f8 = { 2, 10080, 127.0.0.1 }
amcheck-clients: dgram_send_addr: ff316908->socket = 5
security_getdriver(name=BSD) returns ff316518
security_handleinit(handle=34ba0, driver=ff316518 (BSD))
amcheck-clients: dgram_send_addr(addr=ffbf7100, dgram=ff316908)
amcheck-clients: time 0.186: (sockaddr_in *)ffbf7100 = { 2, 10080, 127.0.0.1 }
amcheck-clients: dgram_send_addr: ff316908->socket = 5
security_close(handle=32cf8, driver=ff316518 (BSD))
amcheck-clients: time 0.192: dgram_recv(dgram=ff316908, timeout=0,
fromaddr=ff3268f4)
amcheck-clients: time 0.192: (sockaddr_in *)ff3268f4 = { 2, 10080, 127.0.0.1 }
amcheck-clients: time 0.250: dgram_recv(dgram=ff316908, timeout=0,
fromaddr=ff3268f4)
amcheck-clients: time 0.250: (sockaddr_in *)ff3268f4 = { 2, 10080, 127.0.0.1 }
amcheck-clients: dgram_send_addr(addr=ffbf73f8, dgram=ff316908)
amcheck-clients: time 0.251: (sockaddr_in *)ffbf73f8 = { 2, 10080, 127.0.0.1 }
amcheck-clients: dgram_send_addr: ff316908->socket = 5
security_close(handle=34ba0, driver=ff316518 (BSD))
security_getdriver(name=ssh) returns ff316638
security_handleinit(handle=335b8, driver=ff316638 (SSH))
security_streaminit(stream=44940, driver=ff316638 (SSH))
security_close(handle=34880, driver=ff316638 (SSH))
security_stream_close(3bcb8)
security_close(handle=335b8, driver=ff316638 (SSH))
security_stream_close(44940)
changer_query: changer return was 15 1 1
changer_query: searchable = 1
changer_find: looking for ISB-daily-019 changer is searchable = 1
changer_search: ISB-daily-019
changer: got exit: 2 str: 12 Loading media from Storage Element 12 into drive 0...mtx: Request
Sense: Long Report=yes
changer: got exit: 2 str: 12 Unloading drive 0 into Storage Element 12...mtx: Request Sense: Long
Report=yes
amcheck: pid 28285 finish time Thu Oct 16 15:22:03 2014
-------------
wahoo:/usr/local/etc/amanda/daily$ more amanda.conf
[excerpted to show the holding disk specs]
holdingdisk hd1 {
comment "holding disk1"
directory "/var/spool/amanda/disk1"
use -1500 Mb
chunksize 500 Mb
}
holdingdisk hd2 {
comment "holding disk2"
directory "/var/spool/amanda/disk2"
use -1500 Mb
chunksize 500 Mb
}
-------------
wahoo:/# ls -ld /var /var/spool /var/spool/amanda /var/spool/amanda/*
drwxr-xr-x 34 root sys 512 Oct 10 17:14 /var
drwxr-xr-x 11 root bin 512 Nov 10 2008 /var/spool
drwxr-xr-x 4 amanda amanda 512 Nov 10 2008 /var/spool/amanda
drwxr-x--- 20 amanda amanda 5120 Oct 16 15:16 /var/spool/amanda/disk1
drwxr-x--- 9 amanda amanda 15 Oct 16 15:16 /var/spool/amanda/disk2
--
---------------
Chris Hoogendyk
-
O__ ---- Systems Administrator
c/ /'_ --- Biology & Geology Departments
(*) \(*) -- 347 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst
<hoogen...@bio.umass.edu>
---------------
Erdös 4