D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: random404 on June 12, 2011, 06:17:59 AM

Title: Several miscellaneous questions I have about my DNS 323
Post by: random404 on June 12, 2011, 06:17:59 AM
1) After doing an rsync of one drive to the other, why is du -s /dev/sda2 && du -s /dev/sdb2 off by a couple hundred bytes when rsync executes successfully, and the results of fsck of both drives don't show any errors? (When I do an ls -lR comparison of both drives, a few directory sizes are different - how is that even possible - but size differences combined are larger than total bytes difference from du -s. What could be going on here?

2) What would be faster, doing a cp or rsync from Vol1 to Vol2, or from Vol1 or Vol2 to the attached usb? (Also what speed is the usb, is it 2.0 or 3.0?)

3) I'm a little confused as to the different ways of representing the two drives in the device. For example, there's Volume_1 and Volume_2, /dev/sda and /dev/sdb, and /mnt/HD_a2 and /mnt/HD_b2. Which refers to which drive (left or right, when looking at the DNS 323 from the front straight-on. If i were to switch physical drives with each other's slots, what would all the identifiers from above refer to?

4) When looking at the fsck documentation for the device, I noticed there's documentation for fsck as well as for fsck2007 - what's the difference, and which should I use?

Thanks a lot for your help with these questions.
Title: Re: Several miscellaneous questions I have about my DNS 323
Post by: dosborne on June 12, 2011, 07:09:24 AM
1) Are the drive models identical? They could have different configurations which could end up with different cluster sizes. Did you format them the same either EXT2 or EXT3?

2) 'cp' is definitely faster than 'rsync' for an initial copy but obviously doesn't provide the 'differential' information for subsequent updates. USB access is definitely slower than SATA.

3) You can check /etc/samba/smb.conf to see what maps where. The right slot (viewed from the front) is the primary and defaults to /dev/sda which mounts to /mnt/HD_a2. I believe if you swap the drives, then the mounting stay the same essentailly swapping the data.
Title: Re: Several miscellaneous questions I have about my DNS 323
Post by: random404 on June 12, 2011, 07:49:16 AM
1) Yes the drives are identical, and they're both formatted as ext3. Not sure what's causing this difference. Any way for me to look more into this cluster size thing you mentioned?

2) So transferring between the first drive and second drive goes at SATA speed? (Or does it somehow 'pass through' the DNS323 itself?)