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.

(SOLVED) Full disk now showing as -15 TB / nan

Featured Replies

  • Author

Yeah, I have not modified anything like that and 236 GB have been written to disk4 over the last few months so It has worked fine, until "something" happened. Very strange.

  • Replies 61
  • Views 7.5k
  • Created
  • Last Reply
  • Community Expert
41 minutes ago, project6 said:

not modified anything like that and 236 GB have been written to disk4

Note that the settings I mentioned are per user share. Just because some user shares were able to write to disk4 doesn't mean others weren't configured in such a way to prevent them from doing so.

  • Author

Yeah, I appreciate the info, but all my shares have include all exclude none, and have always been like that. This is not a configuration issue, it would've surfaced much earlier.

 

If I were to guess, "something" happened with disk3 that caused free space to jump from almost nothing to 17.6 TB (as in the screen shot), then Unraid pushed new data onto it despite it being full. I can't say what caused it since I was not home at the time, I just received 100% full alerts on my mail all of a sudden.

 

My priority now is to save the data but it would be nice if Unraid could identify this mismatch in free space (I guess Unraid has metadata about the disk that shows the drive as 2 TB, so it should never be able to have 17.6 TB free) and maybe instead default to zero free or something.

  • Community Expert
44 minutes ago, project6 said:

all my shares have include all exclude none

Split level has precedence over allocation method

  • Author
12 hours ago, trurl said:

Split level has precedence over allocation method

Thanks, split level looks good as well.

  • Author

Disk cloning is now in progress, to an external 4 TB drive.

Once this is done, do I simply run the reiserfsck command again (with --rebuild-tree) on the cloned device and let it finish? And then, in theory, I have the disk with filesystem "back" but on another disk, and I somehow need to shrink it to make it fit on the 2 TB drive again, right?

  • Community Expert
16 minutes ago, project6 said:

do I simply run the reiserfsck command again (with --rebuild-tree) on the cloned device and let it finish?

You need to resize the partition first.

  • Author
1 hour ago, JorgeB said:

You need to resize the partition first.

Ok, not sure how I do that. Googled and found resize_reiserfs.

 

So In my case the partition is currently 4 TB and I want it to be 2 TB, so something like:

resize_reiserfs -s 2000G /dev/sdh2

Would that make sense?

  • Author

I also stumbled upon the resizepart -command; looking back, would it perhaps have worked to simply run this on the partition that showed the wrong size to force Unraid to treat it as 2 TB instead of 17.6 TB?

  • Community Expert

Unlikely that any filesystem resize will work due to being damaged, you can resize the partition by creating a new one on top of the existing one, same start sector but using the full disk.

  • Author

Ok, looking for some more guidance on this, I'm not very familiar with partitioning Unix devices.

 

The external drive I used as target for the dd operation (/dev/sdh) seems to have come with some prepared partition that is already set to pretty much the entire drive (sdh2). Though the type is Microsoft basic data, so I guess it's prepared for Windows. The dd operation was successful in cloning to it though.

 

Disk /dev/sdh: 3.65 TiB, 4000787029504 bytes, 7814037167 sectors
Disk model: Expansion
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 94AC4C02-F4C0-4043-8C43-037A0A2B3841

Device      Start        End    Sectors  Size Type
/dev/sdh1      34     262177     262144  128M Microsoft reserved
/dev/sdh2  264192 7814035455 7813771264  3.7T Microsoft basic data

Partition 1 does not start on physical sector boundary.

So should I delete the partition sdh2 and re-create it? Will it make any difference, as it's already of max capacity? Just for the fun of it I tried the reiserfsck rebuild command on the current sdh2, it corrected and fixed the same stuff as on the original 2TB disk and eventually ended up failing with not enough free space.

Edited by project6

  • Community Expert

That's not a linux partition, dd should have overwritten any existing paritition(s), though since a 2TB disk will be MBR it might be using the backup GPT, suggest you completely wipe that disk and delete all partitions, then re-run dd, also make sure you're using the correct target.

  • Author

Ok, what is the preferred way to completely wipe a disk in Unraid?

 

Should my dd command target the entire disk then? Like so

 

if=/dev/md3 of=/dev/sdh

or should I set up a partition on it and use that as a dd target?

  • Community Expert

Yes, you should use the device, it's also possible it's still using the old layout, try rebooting first.

  • Author

Ok, I removed the out-of-the-box partitions and completely wiped the extension disk and have now re-cloned the 2TB disk onto it.

 

However, neither the original 2 TB disk (/dev/md3) or the 4 TB extension (/dev/sdh) have any partitions as far as I can tell:

Disk /dev/md3: 1.84 TiB, 2000398901248 bytes, 3907029104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdh: 3.65 TiB, 4000787029504 bytes, 7814037167 sectors
Disk model: Expansion
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Should I create a partition on the external drive or just go ahead and run reiserfsck as it is currently?

  • Author

Hmm I am unable to create a partition starting on sector 64, 2048 is the minimum:

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p):

Using default response p.
Partition number (1-4, default 1):
First sector (2048-4294967295, default 2048): 64
Value out of range.

 

  • Community Expert

You can use this:

sgdisk -o -a 8 -n 1:32K:0 /dev/sdX

 

  • Community Expert

Also don't forget that you'll then need to always run reiserfsck on the partition, not the disk, always /dev/sdX1 never /dev/sdX

  • Author

Thank you. Partitioned created, superblock rebuilt and now waiting for the rebuild-tree to finish.

 

Just a thought: I did the dd from the raid device (/dev/md3) to the extension disk, should I have done it from the actual disk (/dev/sdg) instead?

  • Community Expert
1 hour ago, project6 said:

should I have done it from the actual disk (/dev/sdg) instead?

Yes!!! That explains the missing partition.

  • Author

Damnit, I'm aborting the reiserfsck then and re-doing the dd with the disk as input...

I ran the initial reiserfsck --rebuild-tree on /dev/md3 as well. Maybe this could've been fixed simply running it on the partition on /dev/sdg instead?

 

Do you think I should try that first?

  • Community Expert
1 minute ago, project6 said:

I ran the initial reiserfsck --rebuild-tree on /dev/md3 as well.

That is correct, when running on an array device you always use the md device to maintain parity, since the md device is the partition no need to specify it, when running on a device outside the array you need to use the sdX device and always specify the partition.

  • Author
Just now, JorgeB said:

That is correct, when running on an array device you always use the md device to maintain parity, since the md device is the partition no need to specify it, when running on a device outside the array you need to use the sdX device and always specify the partition.

Ok, gotcha.

 

Looking with fdisk on the device itself makes a lot more sense, it indeed has a partition that will hopefully be transferred to the external drive now! :S

Disk /dev/sdg: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM001-1ER1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdg1          64 3907029167 3907029104  1.8T 83 Linux

So after dd finished, I delete the 1.8T partition on the extension disk, re-create one with same start but full size, then rebuild-tree. Fingers crossed!

  • Community Expert
2 minutes ago, project6 said:

I delete the 1.8T partition on the extension disk

No need to delete just create a new one on top, also best to rebuild the super block if not pretty sure it won't use the extra size.

 

 

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.