Welcome! Log In Create A New Profile

Advanced

Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)

Posted by 1000001101000 
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
March 31, 2019 03:45AM
Is your power switch in the "ON" position when you make a shutdown?
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
March 31, 2019 01:59PM
yes. I haven't moved it in my testing so far
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
April 01, 2019 04:24PM
The new nas is running very good.
But i have the same error like all Linkstations.
Only Terastations can show the correct value for "Size on disk"

Pic

My try to analyse the difference betrwean the correct working TS1200 and the buggy LS420:
https://forum.nas-hilfe.de/buffalo-technology-nas-anleitungen/wie-viel-platz-benoetigen-kleine-dateien-wirklich-t2740.html

Can you help me to find the error.
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
April 01, 2019 07:48PM
I read the whole thread and have some thoughts. I don't do much with windows so I could be missing some of it.

at one point you notice the difference between the output of df -h and the expected sizes (MB vs MiB). Modern versions of df have a "-H" (uppercase) which may give you what you want.

you mentioned at another point showing 5% usage on an empty filesystem (i think). This seemed like it might be due to "reserved blocks" in the filesystem. you can adjust the reserved blocks of a filesystem with tune2fs -m. I usually set it to 0 for large data disks and keep the default of 5% for my /

You also mention the large difference between file size and size on disk and how it's different between the terastation and linkstation. This is probably due to the inode size. If you plan to store millions of 1k files like your example you may want to move to a smaller inode size to better use the disk space. This will cause larger files to use more inodes which could be a problem if you then run out of inodes

Let me know if there were other scenarios that I missed
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
April 01, 2019 11:03PM
thank you.
I will analyse the xfs formatted disk in a TS and LS
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
April 14, 2019 12:34AM
it is very simple

add the entry
allocation roundup size = 0

in the [global] section from the /etc/samba/smb.conf

and restart the service
/etc/init.d/smbd restart


short command for putty:



sed -i '/\[global\]/a allocation roundup size = 4096' /etc/samba/smb.conf ; /etc/init.d/smbd restart






Now the LS with debian can show the correct values.
rounding is dissabled.

by the way
win7 is lying
it displays the same value for data size and size on disk
this method is very fast but wrong with files smaller than 4kB

my example with 600000 files takes 6min on Win10 and 11 sec on Win7



Edited 1 time(s). Last edit at 04/14/2019 05:59AM by oxygen8.
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
May 18, 2019 05:27PM
@oxygen8

I corrected the issues with my ls400 restart script (see attached). It now:

properly handles shutdown/restart/halt for the ls410d/ls420d/ls421d/ls441d/ts1200d by simply putting the script in /lib/systemd/system-shutdown/ and setting it as executable by root. It no longer introduces any long delays and should work reliably with most network/system configurations.

I'll be adding it to the repository/installer images soon.
Attachments:
open | download - ls400_restart_handler.sh (513 bytes)
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
May 19, 2019 07:27AM
Thank you.
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
June 13, 2019 01:48PM
@oxygen8

I'm working on creating a script to automatically adjust the fan speed on devices that use the microcontroller to control the fan, I think you said you were putting something similar together for the other devices. If so, what logic are you using to map drive temperature to fan speeds?
Re: Debian Stretch on Armada-370 Buffalo Devices (LS2XX, LS4XX, TS1XXX)
June 15, 2019 01:28AM
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: