Hi @suman_chakravartula and @phillxnet
I ran into a problem adding a new HDD to an existing pool and re-balancing it to a new RAID level.
I started with 2 4TB WD Red drives in a BTRFS RAID 1 pool. I checked and made sure I am using the latest version, 3.8-11.20. I decided to create a new topic since I didn’t see one that matched exactly and the similar ones were from almost a year ago.
The pool uses the whole disk and it’s almost completely full. I purchased a 3rd 4TB WD Red drive, tested it with the WD Desktop tool for the short and long SMART tests. It fully passed, so I took the drive, installed it in my Rockstor server and fired it up. The system booted, saw the drive and let me add it to the existing pool. The Add new disk utility seemed to work, it added the third disk to the pool, and started the balance last night. As the balance started, I did something stupid and started a commandline rsync transfer from an old server I’m working to decommission, then realized I should wait so I cancelled the rsync transfer and left the server alone until this morning.
I woke up to the share now being 7.28TB and with 1.97GB free on the share. Looking at the output of the balance command I got this result:
:2 failed February 27th 2016, 8:04:43 am 0 Error running a command. cmd = [‘btrfs’, ‘balance’, ‘start’, ‘-mconvert=raid5’, ‘-dconvert=raid5’, ‘/mnt2/Cluster1’]. rc = 1. stdout = [’’]. stderr = [“ERROR: error during balancing ‘/mnt2/Cluster1’ - No space left on device”, ‘There may be more info in syslog - try dmesg | tail’, ‘’]
The output of dmesg | tail is:
[root@blackhole ~]# dmesg | tail
[27291.841106] BTRFS info (device sdb): relocating block group 100952702976 flags 17
[27292.080869] BTRFS info (device sdb): relocating block group 99878961152 flags 17
[27292.330631] BTRFS info (device sdb): relocating block group 98805219328 flags 17
[27292.559545] BTRFS info (device sdb): relocating block group 97731477504 flags 17
[27292.809210] BTRFS info (device sdb): relocating block group 96657735680 flags 17
[27293.037859] BTRFS info (device sdb): relocating block group 95583993856 flags 17
[27293.276553] BTRFS info (device sdb): relocating block group 94510252032 flags 17
[27293.516306] BTRFS info (device sdb): relocating block group 93436510208 flags 17
[27293.766125] BTRFS info (device sdb): relocating block group 92362768384 flags 17
[27294.923425] BTRFS info (device sdb): 3729 enospc errors during balance
I’d be happy to pull logs if someone wouldn’t mind explaining how, I didn’t see anything that popped up in the forums or on the wiki of how to pull the logs and I didn’t want to mess with it further and risk breaking more stuff. My suspicion is that there’s some sort of corrupted file or that the space is somehow being incorrectly reported. I thought either I could look through the share and try to find and delete the file, remove the new HDD and try to re import it into the pool or retry to balance and scrub the disks. In short I’m happy to try stuff but I didn’t want to tinker further without checking to see what my best course of action would be. I do have SSH access, am somewhat comfortable using linux and BTRFS and am happy to test things if that’ll help. Thanks so much!