Can't create RAID1 on additional Unassigned Devices pool


Recommended Posts

According to this post it is possible to have multiple pools within Unassigned Devices:

 

I could wipe old filesystems on two old drives, format them with BTRFS, did mount and rename the first drive. But converting to RAID1 did not work. Whats wrong with this?

 

root@Tower:~# btrfs dev add -f /dev/sdi1 /mnt/disks/UD01
root@Tower:~# btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt/disks/UD01
-bash: btrfs: command not found
root@Tower:~# whereis btrfs
btrfs: /sbin/btrfs
root@Tower:~# /sbin/btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt/disks/UD01
-bash: /sbin/btrfs: No such file or directory

Thanks in advynce.

 

Edited by hawihoney
Link to comment

Ok. No problem. So, presumably you typed the first line (btrfs dev add ...) because that worked ok. Come to think of it, I've had that before when copy/pasting into the command line. BTW, what you're trying to do really does work. I have four 2 TB disks in RAID 10 mounted like that. You have to do everything from the command line but at least you can use the Unassigned Devices plugin to mount and unmount the volume and trigger scripts as it does so. Maybe one day it will be integrated into the GUI but for the time being this works fine.

Link to comment

May I ask you a question? The RAID1 pool is working currently. Do I need to re-issue these commands (BTRFS add, BTRFS balance start) after a server reboot? If yes, what's the best place to let these commands run automatically after a server reboot (Unassigned Devices script?)

 

BTW, performance of that BTRFS RAID1 pool seems to be degraded by 10% compared with a single XFS formatted drive.

 

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.