Jean-Louis Martineau <[email protected]> writes: > On 03/27/2013 08:58 AM, Kamil Jońca wrote: >> Jean-Louis Martineau <[email protected]> writes: >> >>> On 03/27/2013 06:39 AM, Kamil Jońca wrote: >>>> (This is duplicate mail, previously sent, but I weren't subscribed) >>>> In some sites there is suggestion, that config: >>>> --8<---------------cut here---------------start------------->8--- >>>> #flush-threshold-dumped 100 # (or more) >>>> #flush-threshold-scheduled 100 # (or more) >>>> #taperflush 100 >>>> #autoflush yes >>>> --8<---------------cut here---------------end--------------->8--- >>>> helps to do better tape utilization. >>>> >>>> But how behave amanda in my configuration (+ these four lines above): >>>> >>>> I have defined 1gb vtapes, placed onto four hard disks rotated >>>> (ie. first flush go to disk 1, second to 2, third to 3, fourth to 4, >>>> fifth to 1, and so on) >>>> >>>> say on first disk are tapes: alfa-1-1 to alfa-1-10 >>>> on second: alfa-2-1 to alfa-2-10 >>>> on third: alfa-3-1 to alfa-3-10 >>>> on fourth: alfa-4-1 to alfa-4-10 >>>> >>>> One day dumps takes 1,5GB and goes to tape alfa-1-1 and (partially) >>>> alfa-1-2. >>> Amanda should not write to alfa-1-2 if the above setting are commented out. >>> Are you using a holding a disk? It must be larger than a vtape (1gb). >> >> My bad. I forgot to say that I have runtapes greater than 1. >> And my question is what amanda do if above flush settings are not >> commmented. > > Amanda should not write to alfa-1-2, the backup should stay in the > holding disk. Yes, I use holding disk.
So far I do not have these lines and amanda writes backup to disk (for example today backup below): --8<---------------cut here---------------start------------->8--- -rw-r----- 1 backup backup 243 Mar 27 16:27 /var/spool/amanda/vtapes/state -rw------- 1 backup backup 39436 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00008.localhost._srv_samba_kopie.2 -rw------- 1 backup backup 33328 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00009.localhost._var_lib_samba.1 -rw------- 1 backup backup 25797104 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00010.localhost._var_spool_news_archive.1 -rw------- 1 backup backup 58407680 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00003.localhost._home_kjonca_Mail.6 -rw------- 1 backup backup 63076 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00004.localhost._home_kjonca_Muzyka.1 -rw------- 1 backup backup 16056464 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00005.localhost._home_kjonca_archiwum.2 -rw------- 1 backup backup 48955192 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00006.localhost._srv_archiwa.2 -rw------- 1 backup backup 43736 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00007.localhost._srv_samba.1 -rw------- 1 backup backup 34024 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00002.localhost._home_kjonca_Drivers.1 -rw------- 1 backup backup 133441876 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00001.localhost._home_kjonca_Downloads.2 -rw------- 1 backup backup 32768 Mar 27 16:23 /var/spool/amanda/vtapes/slot8/00000.alfa-2-8 -rw------- 1 backup backup 965672960 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00008.localhost._home_kjonca_Downloads.2 -rw------- 1 backup backup 53746648 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00006.localhost._home_kjonca.3 -rw------- 1 backup backup 81132 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00007.localhost._home_kjonca_CalibreLibrary.1 -rw------- 1 backup backup 34692104 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00002.bambus.kjonca._home.2 -rw------- 1 backup backup 59360 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00003.localhost._etc.1 -rw------- 1 backup backup 164232 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00004.localhost._home.1 -rw------- 1 backup backup 19114828 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00005.localhost._home_f4y.1 -rw------- 1 backup backup 52240 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00001.bambus.kjonca._etc.1 -rw------- 1 backup backup 32768 Mar 27 16:23 /var/spool/amanda/vtapes/slot7/00000.alfa-2-7 --8<---------------cut here---------------end--------------->8--- As we can see amanda fills two vtapes (slot7 and slot8). And my experience shows that (WITHOUT flush-* settings mentioned above) at next run (with this disk) amanda will use next slot. Right? What amanda do when these flush-* will be set to 100? > They should be written to vtape on the next run or when you have more than > 1GB (100% of 1gb) of dump on holding disk. > > Uncommenting the above setting is useless if you do not use a holding > disk. Yes, of course. > > Did you read the documentation? Yes. But I do not know which vtape amanda use at some of next run. (Because tomorrow I will put disk with labels alfa-3-*, on Friday alfa-4-*, on saturday alfa-1-*, and on Sunday again alfa-2-*) >Did you tried it? I use amanda, but WITHOUT these settings. KJ -- http://blogdebart.pl/2012/06/24/hiena/ Try to get all of your posthumous medals in advance.
