Scott Harney Posted June 17, 2022 Share Posted June 17, 2022 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? Quote Link to comment
Scott Harney Posted June 17, 2022 Author Share Posted June 17, 2022 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 Quote Link to comment
trurl Posted June 18, 2022 Share Posted June 18, 2022 Did you let unraid format the disk after you assigned it as cache? Or did you use some other method to format? Quote Link to comment
Scott Harney Posted June 18, 2022 Author Share Posted June 18, 2022 (edited) 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 June 18, 2022 by Scott Harney Quote Link to comment
itimpi Posted June 18, 2022 Share Posted June 18, 2022 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. Quote Link to comment
Scott Harney Posted June 18, 2022 Author Share Posted June 18, 2022 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. Quote Link to comment
itimpi Posted June 18, 2022 Share Posted June 18, 2022 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. Quote Link to comment
JorgeB Posted June 18, 2022 Share Posted June 18, 2022 Wipe the device with blkdiscard -f /dev/sdX Then reformat. Quote Link to comment
Scott Harney Posted June 20, 2022 Author Share Posted June 20, 2022 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 Quote Link to comment
JorgeB Posted June 20, 2022 Share Posted June 20, 2022 That can happen if there was an existing partition. Quote Link to comment
Recommended Posts
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.