*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Raid 1 from a single drive

Software RAID information and help
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
nicolas1400
NewUser
NewUser
Posts: 4
Joined: 18 Nov 2012 13:33
Status: Offline

Raid 1 from a single drive

#1

Post by nicolas1400 »

Hello.
Is it posible using nas4free, to declare a single drive and start working with it, and later add a second identical drive for building a RAID1, without losing the data on the original drive?

User avatar
shakky4711
Advanced User
Advanced User
Posts: 273
Joined: 25 Jun 2012 08:27
Status: Offline

Re: Raid 1 from a single drive

#2

Post by shakky4711 »

Hi,

I have done it in the past one time by shell commands on a FreeBSD machine and it worked, but it is extrem risky, file system was UFS2.
Better way (but I would not do it likewise) is to create the mirror with two disks, then remove the second one. In this case you run a degraded mirror.

ZFS can do it out of the box by shell commands (not sure if it is possible by WebGUI).
When you have a pool named tank containing one disk called disk1 you can create the mirror with "zpool attach tank disk1 disk2".

google for "solaris zfs administration guide", it is a free available document from oracle and shows all zfs features and tips how to work with it.


Best regards
Shakky

ku-gew
Advanced User
Advanced User
Posts: 173
Joined: 29 Nov 2012 09:02
Location: Den Haag, The Netherlands
Status: Offline

Re: Raid 1 from a single drive

#3

Post by ku-gew »

Adding disks to a mirror is always possible. You can for example make a mirror with 2 disks and add a third disk (as mirror), so that you increase the performances for both random seeks and sequential transfers and, at the same time, improve the fault tolerance.
The same change 2->3 applies also to 1->2. The change is not risky, risky is only having a single drive in the beginning (drives fail often in the first three months and then only after years).
If you are aware of the risk of having a single drive in the beginning, go for it.
When you are ready, from the command line "man zfs" and "man zpool" and then, after reading everything, "zpool add _pool_ mirror _new_device_" (I think, check the syntax).
HP Microserver N40L, 8 GB ECC, 2x 3TB WD Red, 2x 4TB WD Red
XigmaNAS stable branch, always latest version
SMB, rsync

Post Reply

Return to “Software RAID”