On 01/25/16 05:52 PM, Gunther Nitzsche wrote: > Hi, > > I recently upgraded bareos from 14.2.2 to 15.2.2. Since that time > my NDMP-smtape backups (from a NetApp-device) fails with the > blocksize error. > > > "<hostname>-dir JobId 55216: Fatal error: For SMTAPE NDMP jobs the NDMP > blocksize needs to be in increments of 4096 bytes, but is set to 64512 " > > > So I found this error description in earlier posts (regarding the > 14-version); > also this error is mentioned in > http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-23500019.15 > > Solution suggested is to adapt the Blocksize to something like 256k - > but the place to set this option is not clearly described. It says: In > version greater 14 use > the pool.conf > (https://www.bareos.org/en/Whitepapers/articles/Speed_Tuning_of_Tape_Drives.html); > in the master reference ( > http://doc.bareos.org/master/html/bareos-manual-main-reference.html#setblocksizes > ) it says this option should go into the Device-configuration. > These blocksizes are only used for writing the data to the native device. As we encapsulate the NDMP stream as opaque data this won't have the wanted effect.
> I tried to set the option in pool.conf, bareos-sd.conf, (device and > storage), even in the NDMP part and > in the "meta" Options in the job-descriptions .. all no effect. Either I > got the error "wrong place for this option" or it just had no effect on the > output - it still reads Default blocksize 64512 > Correct NDMP blocksize has its own keyword in the client definition e.g. NdmpBlockSize. > I guess that is because an SMTape is not really a tape.. > > So I downgraded bareos to 14.2.2 and voila.. everything is running > again. (!) > > Is there a difference in the SMTape - portion of the software regarding > the blocksize issue? > Or what could be the reason for the failure after the upgrade? Netapp has some ideas as to what blocksize are officially supported with the SMTAPE format. For some versions it works ok with our default NDMP blocksize of 64 Kb but the docs are kind of clear on in which interval it needs to be and that is needs to be in certain increments. So we added explicit checks to the code to make sure those requirements are met for specifically the SMTAPE format. >From the code: #define SMTAPE_MIN_BLOCKSIZE 4096 /* 4 Kb */ #define SMTAPE_MAX_BLOCKSIZE 262144 /* 256 Kb */ #define SMTAPE_BLOCKSIZE_INCREMENTS 4096 /* 4 Kb */ I think your query seems to say the default it uses is 240Kb. The default 64512 is 126 x 512 bytes which is the POSIX default. -- Marco van Wieringen [email protected] Bareos GmbH & Co. KG Phone: +49-221-63069389 http://www.bareos.com Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens, P. Storz, M. v. Wieringen -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
