• April 23, 2024, 08:58:27 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: [1] 2

Author Topic: defragment network drives for d-link 323?  (Read 16003 times)

ocedoc

  • Level 1 Member
  • *
  • Posts: 1
defragment network drives for d-link 323?
« on: September 14, 2010, 05:28:12 PM »

How can I defrag my DNS323 network drives? Thanks.
Logged

dosborne

  • Level 5 Member
  • *****
  • Posts: 598
Re: defragment network drives for d-link 323?
« Reply #1 on: September 14, 2010, 05:41:26 PM »

You don'tneed to defrag drives running linux like you do a windows file system.
Logged
3 x DNS-323 with 2 x 2TB WD Drives each for a total of 12 TB Storage and Backup. Running DLink Firmware v1.08 and Fonz Fun Plug (FFP) v0.5 for improved software support.

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: defragment network drives for d-link 323?
« Reply #2 on: September 14, 2010, 05:41:47 PM »

The short answer is, you don't. :)  There is no native defrag in the NAS.  It's possible to do it with 3rd party tools, but it's a bit complex.
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: defragment network drives for d-link 323?
« Reply #3 on: September 14, 2010, 05:42:54 PM »

You don'tneed to defrag drives running linux like you do a windows file system.
Well, this isn't really true.  While it's true that EXT2/3 do a better job with fragmentation than the Windows filesystems. they are not immune to fragmentation.

However, it's a moot point with this product. :)
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

tentimes

  • Level 3 Member
  • ***
  • Posts: 127
Re: defragment network drives for d-link 323?
« Reply #4 on: September 15, 2010, 12:06:53 PM »

It's easy to do. GEt funplug installed and google it. If you are totally new to linux then don't bother and just leave them alone (is my advice ;)) They don't really need defragged. Especiialy if files aren't being constantly deleted and replaced with new ones.

Even if you did manage to defrag it, the difference in speed (which would be negligible at best) would not affect the speed you get the data from the 323 as it is limited to way way slower than the speed of the disk.

Logged

fordem

  • Level 10 Member
  • *****
  • Posts: 2168
Re: defragment network drives for d-link 323?
« Reply #5 on: September 15, 2010, 12:28:03 PM »

It's easy to do. GEt funplug installed and google it. If you are totally new to linux then don't bother and just leave them alone (is my advice ;)) They don't really need defragged. Especiialy if files aren't being constantly deleted and replaced with new ones.

Even if you did manage to defrag it, the difference in speed (which would be negligible at best) would not affect the speed you get the data from the 323 as it is limited to way way slower than the speed of the disk.



I have to assume that you speak from a point of NO experience in this regard ...

First - and - I will admit to not having checked recently, the last time I looked there were NO defraggers available for either the ext2 or ext3 formats, much less ones ported to the arm platform.

Second - simply using the torrent clients on the DNS-323 will cause fragementation, and a noticeable decline in performance.

There are many who simply regurgitate the hype of ext2/3 not cause fragmentation and not needing to be defragmented - others, like gunrunnerjohn, in his post above, state correctly that it's less of a problem than it is with a windows file system, but the truth of the matter is, that under certain circumstances, which by the way, I can duplicate at will, and ext file system will fragment, and in the case of ext2 on a DNS-323, the resulting performance hit IS significant.

Feel free to let us know what you experience you have with a fragmented disk in your DNS-323, and also how you used fun_plug to defrag it - as far as I am aware, the only way to deal with a fragemented disk on a DNS-323, is to back up the data, and reformat the drive.
Logged
RAID1 is for disk redundancy - NOT data backup - don't confuse the two.

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: defragment network drives for d-link 323?
« Reply #6 on: September 15, 2010, 01:20:03 PM »

There are Linux defrag programs mentioned, which in itself points out that it must be considered to be an issue. :)

A quote from http://en.wikipedia.org/wiki/Ext3#Defragmentation:

Quote
Defragmentation

There is no online ext3 defragmentation tool that works on the filesystem level. An offline ext2 defragmenter, e2defrag, exists but requires that the ext3 filesystem be converted back to ext2 first. But depending on the feature bits turned on in the filesystem, e2defrag may destroy data; it does not know how to treat many of the newer ext3 features.[14]

There are userspace defragmentation tools like Shake[15] and defrag.[16][17] Shake works by allocating space for the whole file as one operation, which will generally cause the allocator to find contiguous disk space. It also tries to write files used at the same time next to each other. Defrag works by copying each file over itself. However they only work if the filesystem is reasonably empty. A true defragmentation tool does not exist for ext3.[18]

That being said, as the Linux System Administrator Guide states, "Modern Linux filesystem(s) keep fragmentation at a minimum by keeping all blocks in a file close together, even if they can't be stored in consecutive sectors. Some filesystems, like ext3, effectively allocate the free block that is nearest to other blocks in a file. Therefore it is not necessary to worry about fragmentation in a Linux system."[19]

While ext3 is more resistant to file fragmentation than the FAT filesystem, nonetheless ext3 filesystems can get fragmented over time or on specific usage patterns, like slowly-writing large files.[20][21] Consequently the successor to the ext3 filesystem, ext4, is planned to eventually include an online filesystem defragmentation utility[22], and currently supports extents (contiguous file regions).

Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

fordem

  • Level 10 Member
  • *****
  • Posts: 2168
Re: defragment network drives for d-link 323?
« Reply #7 on: September 15, 2010, 06:06:10 PM »

There are Linux defrag programs mentioned, which in itself points out that it must be considered to be an issue. :)

A quote from http://en.wikipedia.org/wiki/Ext3#Defragmentation:



Yes - they are mentioned in wikipedia, and other places - try to actually locate that one, rather than just a mention of it.  I'm not going to say you can't, but I will say that I gave up trying.
Logged
RAID1 is for disk redundancy - NOT data backup - don't confuse the two.

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: defragment network drives for d-link 323?
« Reply #8 on: September 16, 2010, 05:12:48 AM »

I'm not saying you can locate the defrag, my sole point was that it's obvious that there is a perceived need for a defrag capability for EXT2/EXT3 volumes.  Apparently, there is a defrag for EXT2, but not for EXT3.

I found references to defrag and performance hits all over the web, it's not a secret. :)
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

fordem

  • Level 10 Member
  • *****
  • Posts: 2168
Re: defragment network drives for d-link 323?
« Reply #9 on: September 16, 2010, 07:15:05 AM »

Oh - I have no problem finding references, or even fanbois who say it doesn't fragment - on the other hand, actually getting my hands on a defrag utility has proven infintely more challenging.

Logged
RAID1 is for disk redundancy - NOT data backup - don't confuse the two.

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: defragment network drives for d-link 323?
« Reply #10 on: September 16, 2010, 07:21:51 AM »

I admit, it would be nice to defrag my EXT3 disks in these NAS units, but since it's not an option... :)
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

chriso

  • Guest
Re: defragment network drives for d-link 323?
« Reply #11 on: September 16, 2010, 11:36:42 AM »

Has anyone actually looked at how much fragmentation is on their drives?  It has been my experience (about 35 years) that Unix/Linux file systems have less then 5% fragmentation.  As a matter of fact defrag programs where first introduced for the terrible DOS/Window files systems of the past (not current ones).  Once that was embedded in the thinking of people then some companies tried to sell defrag programs to people on Unix/Linux and it was a complete failure because any Unix/Linux administrator with experience wouldn't buy it, they just didn't see the need.

If you go to a large company with hundreds of Unix/Linux machines you will see that they don't run defrag programs.

The performance gains are just not there, and depending on how often you defrag you may be causing your disk heads to move more to do the defrag then they save doing normal reads.
Logged

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: defragment network drives for d-link 323?
« Reply #12 on: September 16, 2010, 01:28:44 PM »

Well, the comment about moving the disk heads more is pointless, I don't care how much they move when the machine is otherwise idle.

I truthfully don't know how much fragmentation my drives have, and I'm not sure I have an easy way to find out.
Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.

dosborne

  • Level 5 Member
  • *****
  • Posts: 598
Re: defragment network drives for d-link 323?
« Reply #13 on: September 18, 2010, 09:09:36 PM »

ffp includes the standard linux 'filefrag' utility that reports on file fragmentation. Haven't tried it myself, just came across it.
Logged
3 x DNS-323 with 2 x 2TB WD Drives each for a total of 12 TB Storage and Backup. Running DLink Firmware v1.08 and Fonz Fun Plug (FFP) v0.5 for improved software support.

gunrunnerjohn

  • Level 11 Member
  • *
  • Posts: 2717
Re: defragment network drives for d-link 323?
« Reply #14 on: September 19, 2010, 07:12:08 AM »

Don't think this is going to be much help.  From the description.


Quote
DESCRIPTION
       filefrag  reports  on  how badly fragmented a particular file might be.
       It makes allowances for indirect blocks for ext2 and ext3  filesystems,
       but can be used on files for any filesystem.



Logged
Microsoft MVP - Windows Desktop Experience
Remember: Data you don't have two copies of is data you don't care about!
PS: RAID of any level is NOT a second copy.
Pages: [1] 2