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.

cache disk filesystem is not the size of disk/partion

Featured Replies

My cache disk is 250G SSD.  but for some reason, unraid made the filesystem just 500M

root@doublenickels:~# sfdisk -l /dev/sdb
Disk /dev/sdb: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 840 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdb1        2048 488397167 488395120 232.9G 83 Linux
root@doublenickels:~# df -lh | grep cache
/dev/sdb1             500M  385M   56M  88% /mnt/cache

 

I'm not sure if this intentional or if the xfs filesystem on /dev/sdb1 can be grown to the full size of the parition.  If so, what is the supported method of doing that? 

 

  • Author

unraid version: 6.9.2

Model: HP Microserver

M/B: Version - s/n:

BIOS: HP Version O41. Dated: 07/29/2011

CPU: AMD Turion™ II Neo N54L Dual-Core @ 2200 MHz

HVM: Enabled

IOMMU: Disabled

Cache: 256 KiB, 2 MB, 0 KiB

Memory: 8 GiB Other Single-bit ECC (max. installable capacity 8 GiB)

Network: bond0: fault-tolerance (active-backup), mtu 1500
 eth0: 1000 Mbps, full duplex, mtu 1500

Kernel: Linux 5.10.28-Unraid x86_64

OpenSSL: 1.1.1j

Uptime: 47 days, 01:47:17

 

 

  • Community Expert

Did you let unraid format the disk after you assigned it as cache? Or did you use some other method to format? 

  • Author

Yes. Unraid did the formatting on initial deployment. I did not manually format this drive.  Wondering if I can just xfs_growfs it and if so should that be done with the array offline. 

Edited by Scott Harney

  • Community Expert

Does the drive have multiple partitions on it from a previous use?     If so you should remove them before trying to use the drive with Unraid.

  • Author

Nope. sfdisk as shown above shows one partition. So I’m not sure why unraid didn’t create the filesystem using the entire partition that spans the entire drive. 

  • Community Expert
25 minutes ago, Scott Harney said:

sfdisk as shown above shows one partition.

Maybe that partition already existed and Unraid just tried to use it.   I would suggest that you remove that partition and try again.

 

If that has does not work then post your system's diagnostics zip file to see if we can work out what is going on.

  • Community Expert

Wipe the device with

blkdiscard -f /dev/sdX

Then reformat.

  • Author

I went ahead a resized:

root@doublenickels:~# btrfs filesystem resize max /mnt/cache
Resize '/mnt/cache' of 'max'
root@doublenickels:~# df -lh | grep cache
/dev/sdb1             233G  194M  233G   1% /mnt/cache

And it seems to be working just fine. Just odd that it only put the FS on the first 500M

  • Community Expert

That can happen if there was an existing partition.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.