Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hard Disk Cluster size?

Featured Replies

What does unraid use for cluster size when formatting the HD? Is this customizable?

 

B2

What does unraid use for cluster size when formatting the HD? Is this customizable?

 

B2

You are thinking in terms of MS-DOS file-systems.  unRAID uses reiserfs file systems.  They use an entirely different way to organize their data.  It does not have "clusters"

 

The default "block" size of a reiserfs is 4096.  According to the manual page for mkreiserfs, you can set the block size to any power-of-2 value between 512 and 8192.   

 

Far more details here: http://homes.cerias.purdue.edu/~florian/reiser/reiserfs.php

 

Since the file-systems in unRAID are created by it when formats the disk, there is no way to alter the default.

 

Joe L.

... unless, of course, you format the drive in another distro before putting it into the array...  :o

 

  • Author

Any chance to get Unraid to support selecting a "block" size at format time? I store mainly Blu Ray rips on my unraid server, so the file size is huge. I would expect it to be much more efficient if it a larger block size were used.

 

B2

Any chance to get Unraid to support selecting a "block" size at format time? I store mainly Blu Ray rips on my unraid server, so the file size is huge. I would expect it to be much more efficient if it a larger block size were used.

 

B2

You could probably do something like this if the disk is completely empty (as it would be if you just added it to the array)

 

Add the disk to the array as usual, let unRAID format the disk.  It will use the default block size of 4096.  Let the array start with it.

 

Then, stop SAMBA and any other processes potentially accessing the new disk, because we will want to un-mount it.

To stop SAMBA

killall smbd nmbd

 

Then un-mount the "md" device affiliated with the newly added (empty) disk.  For this example, I'll use disk2  which would have an affiliated device of /dev/md2

 

umount /dev.md2

 

Next, you will want to re-format /dev/md2 with the new larger block size.  Since the default is 4096 there is only one size larger... 8192.  This WILL ERASE anything on the disk... Only do this on an empty disk... you have been warned.  Also, you must do these steps with the array started.  Do not attempt to perform them with the array stopped or parity will be incorrect.

mkreiserfs -b 8192 /dev/md2

 

Now that you have a newly formatted disk, you need to re-mount it.

mount -t reiserfs -o noacl,nouser_xattr,noatime,nodiratime /dev/md2 /mnt/disk2

 

(It is important to mount the "md2" device for disk2 on /mnt/disk2.  "/dev/md3" would be mounted on /mnt/disk3, etc...)

 

Now you can re-start samba

/usr/sbin/smbd -D

/usr/sbin/nmbd -D

 

The bulk of these instructions are identical to those given in the wiki if you need to perform a file-system check on a disk.  Those instructions are here: http://lime-technology.com/wiki/index.php?title=Check_Disk_Filesystems  The difference is that you are re-formatting the disk, and the wiki describes running reiserfsck on the disk while un-mounted.

 

 

Personally, I'll be curious to see if you notice any difference at all.  I doubt you will, but then I only store smaller DVD ISO images, and they rarely get over 8Gig.

 

Joe L.

Joe L.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.