[Solved] Convert from Single to Raid 1

Hi All, been using Rockstor for awhile now but never used any of the raids yet. I have been using a single drive and got all my data on it. I have bought another 3TB drive and will convert to raid 1. The question is if I do this from the webui where I add a drive and change the raid type to raid 1, will it erase my data or not? also how long will it take for this process.

Thanks

short answer: GUI

Long one -> gui -> resize array -> add disk -> change raid level -> enjoy :slight_smile:

no it will not wipe you data. btrfs is designed to allow you (user / operator) ultimate flexibility. In terms of execution, you may find that in some cases btrfs will experience a hiccup and all of you data will evaporate :smiley: So ALWAYS have a backup !

ps. in terms of time - why you care ? it will keep going in the background and you can normally use you FS (it will be slower thou)

1 Like

Thanks @Tomasz_Kusmierz while I was waiting the reply, I got a VM going and tested it myself and as you mentioned nothing of my data will be lost. Changed from Single to Raid 1 and later changed from Raid 1 to Raid 5 and the all the data is there as well as the snapshots I have previously scheduled. I know that Raid 5 and Raid 6 aren’t recommended at the moment, but I was just doing it for testing.

This is gonna be a tough one, you mean the data and snapshots will evaporate so there is no rollback? How people will do this and take a backup of all of their data on their NAS? In my case won’t be a problem all my data less than 3TB but some people might have 10TB how they will do that, because this will cost a fortune in buying disks.

You tell me :slight_smile: as an example I’ve got an array of 32 TB doing a continuous CCTV - this is backed up to different server … so you see that there are some logistical aspects here - cctv data rolls in with roughly 3.2 gigabit per second … and that get’s sent out to other server at roughly the same rata … so you should start to see where the problems are … you need to start using sfp+, start using proper SAS to keep up with punching data to disks and reading them out…

Fortunately for home use, even thou a backup NEEDS to be on different machine you can get away with periodically doing data shift to separate pool (FS) via for example btrfs send & receive. For example I’ve got 8 x 2 TB disks in raid10 as main pool - that gives a fantastic random read performance, and I started recently backing up to 2x8 TB raid1 and guess what, main pool developed a problem and some data got corrupted … with lazy backup I was able to get all data back