Can ZFS be setup for redundancy of my entire OS (Ubuntu 16) and data?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I'm planning to do redundancy backup for my office server running Ubuntu 14 and the ZFS option came up in my research. To my understanding, hardware raid (RAID1) creates a full clone (mirror) of my disk on another disk, therefore having two exact copies running. If one fails I can just swap the failed disk and it will just rebuild another copy to the new disk. Can I set up the same function with ZFS?



From what I've read, I'm not so sure that the OS is part of the created zpool. What if the disk fails with the OS in it?










share|improve this question























  • Yes: ZFS calls it RAID-Z1, RAID-Z2 and RAID-Z3 (those are similar to RAID-5 (allows for 1 disk failing), 6 (same for 2 disks) and 7 (same for 3 disks )) and "Striped Vdev’s" (= RAID-0/mirroring what you are asking about) . If you plan to use 5+ Tb disks rebuilding can take weeks ;) Oh, and RAID is not a replacement for a backup (the title would assume you think that that is the case).
    – Rinzwind
    Feb 21 at 9:40










  • Thanks for that answer. Any installation links i could try for this setup?
    – airzoink
    Feb 21 at 9:48










  • Guess why I did not make it an answer? No, I do not. That was all I know about ZFS because we once had a discussion about it for our internal machines but we opted for cloud servers :-D
    – Rinzwind
    Feb 21 at 9:52














up vote
1
down vote

favorite












I'm planning to do redundancy backup for my office server running Ubuntu 14 and the ZFS option came up in my research. To my understanding, hardware raid (RAID1) creates a full clone (mirror) of my disk on another disk, therefore having two exact copies running. If one fails I can just swap the failed disk and it will just rebuild another copy to the new disk. Can I set up the same function with ZFS?



From what I've read, I'm not so sure that the OS is part of the created zpool. What if the disk fails with the OS in it?










share|improve this question























  • Yes: ZFS calls it RAID-Z1, RAID-Z2 and RAID-Z3 (those are similar to RAID-5 (allows for 1 disk failing), 6 (same for 2 disks) and 7 (same for 3 disks )) and "Striped Vdev’s" (= RAID-0/mirroring what you are asking about) . If you plan to use 5+ Tb disks rebuilding can take weeks ;) Oh, and RAID is not a replacement for a backup (the title would assume you think that that is the case).
    – Rinzwind
    Feb 21 at 9:40










  • Thanks for that answer. Any installation links i could try for this setup?
    – airzoink
    Feb 21 at 9:48










  • Guess why I did not make it an answer? No, I do not. That was all I know about ZFS because we once had a discussion about it for our internal machines but we opted for cloud servers :-D
    – Rinzwind
    Feb 21 at 9:52












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm planning to do redundancy backup for my office server running Ubuntu 14 and the ZFS option came up in my research. To my understanding, hardware raid (RAID1) creates a full clone (mirror) of my disk on another disk, therefore having two exact copies running. If one fails I can just swap the failed disk and it will just rebuild another copy to the new disk. Can I set up the same function with ZFS?



From what I've read, I'm not so sure that the OS is part of the created zpool. What if the disk fails with the OS in it?










share|improve this question















I'm planning to do redundancy backup for my office server running Ubuntu 14 and the ZFS option came up in my research. To my understanding, hardware raid (RAID1) creates a full clone (mirror) of my disk on another disk, therefore having two exact copies running. If one fails I can just swap the failed disk and it will just rebuild another copy to the new disk. Can I set up the same function with ZFS?



From what I've read, I'm not so sure that the OS is part of the created zpool. What if the disk fails with the OS in it?







server backup raid zfs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 23 at 20:01









Zanna

48.2k13120228




48.2k13120228










asked Feb 21 at 9:23









airzoink

62




62











  • Yes: ZFS calls it RAID-Z1, RAID-Z2 and RAID-Z3 (those are similar to RAID-5 (allows for 1 disk failing), 6 (same for 2 disks) and 7 (same for 3 disks )) and "Striped Vdev’s" (= RAID-0/mirroring what you are asking about) . If you plan to use 5+ Tb disks rebuilding can take weeks ;) Oh, and RAID is not a replacement for a backup (the title would assume you think that that is the case).
    – Rinzwind
    Feb 21 at 9:40










  • Thanks for that answer. Any installation links i could try for this setup?
    – airzoink
    Feb 21 at 9:48










  • Guess why I did not make it an answer? No, I do not. That was all I know about ZFS because we once had a discussion about it for our internal machines but we opted for cloud servers :-D
    – Rinzwind
    Feb 21 at 9:52
















  • Yes: ZFS calls it RAID-Z1, RAID-Z2 and RAID-Z3 (those are similar to RAID-5 (allows for 1 disk failing), 6 (same for 2 disks) and 7 (same for 3 disks )) and "Striped Vdev’s" (= RAID-0/mirroring what you are asking about) . If you plan to use 5+ Tb disks rebuilding can take weeks ;) Oh, and RAID is not a replacement for a backup (the title would assume you think that that is the case).
    – Rinzwind
    Feb 21 at 9:40










  • Thanks for that answer. Any installation links i could try for this setup?
    – airzoink
    Feb 21 at 9:48










  • Guess why I did not make it an answer? No, I do not. That was all I know about ZFS because we once had a discussion about it for our internal machines but we opted for cloud servers :-D
    – Rinzwind
    Feb 21 at 9:52















Yes: ZFS calls it RAID-Z1, RAID-Z2 and RAID-Z3 (those are similar to RAID-5 (allows for 1 disk failing), 6 (same for 2 disks) and 7 (same for 3 disks )) and "Striped Vdev’s" (= RAID-0/mirroring what you are asking about) . If you plan to use 5+ Tb disks rebuilding can take weeks ;) Oh, and RAID is not a replacement for a backup (the title would assume you think that that is the case).
– Rinzwind
Feb 21 at 9:40




Yes: ZFS calls it RAID-Z1, RAID-Z2 and RAID-Z3 (those are similar to RAID-5 (allows for 1 disk failing), 6 (same for 2 disks) and 7 (same for 3 disks )) and "Striped Vdev’s" (= RAID-0/mirroring what you are asking about) . If you plan to use 5+ Tb disks rebuilding can take weeks ;) Oh, and RAID is not a replacement for a backup (the title would assume you think that that is the case).
– Rinzwind
Feb 21 at 9:40












Thanks for that answer. Any installation links i could try for this setup?
– airzoink
Feb 21 at 9:48




Thanks for that answer. Any installation links i could try for this setup?
– airzoink
Feb 21 at 9:48












Guess why I did not make it an answer? No, I do not. That was all I know about ZFS because we once had a discussion about it for our internal machines but we opted for cloud servers :-D
– Rinzwind
Feb 21 at 9:52




Guess why I did not make it an answer? No, I do not. That was all I know about ZFS because we once had a discussion about it for our internal machines but we opted for cloud servers :-D
– Rinzwind
Feb 21 at 9:52










1 Answer
1






active

oldest

votes

















up vote
1
down vote













First: RAID is not backup. It gives disk redundancy, so if a disk dies you can replace it without loosing data. If you delete a file it will be gone on all copies on disk. So, raid for handling disk issues, backup for handling corrupted or removed files.



That said, ZFS (and similar filesystems) have features like snapshot and clones that can act as (a part of) a backup solution. ZFS uses CopyOnWrite, so a snapshot don't take up any space before you start modifying the original filesystem. This is great for having online access to "yesterdays" copy - but to be safe, we also need a backup "off premise" in case of a catastrophic event where you loose the whole server - fire, theft or so.



As far as I remember Ubuntu can be set up to boot from ZFS too, but I havent tried it. Originally (on Solaris whare ZFS was born) it required a seperate Zpool - only mirrored - for root file system and one (or more) Zpool for other disks. But that might be different on Linux.






share|improve this answer




















  • Yes, i think redundancy is the right word for what i am looking for. I'm already backed-up in the cloud. Thank you for your answer.
    – airzoink
    Feb 22 at 3:57










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008313%2fcan-zfs-be-setup-for-redundancy-of-my-entire-os-ubuntu-16-and-data%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













First: RAID is not backup. It gives disk redundancy, so if a disk dies you can replace it without loosing data. If you delete a file it will be gone on all copies on disk. So, raid for handling disk issues, backup for handling corrupted or removed files.



That said, ZFS (and similar filesystems) have features like snapshot and clones that can act as (a part of) a backup solution. ZFS uses CopyOnWrite, so a snapshot don't take up any space before you start modifying the original filesystem. This is great for having online access to "yesterdays" copy - but to be safe, we also need a backup "off premise" in case of a catastrophic event where you loose the whole server - fire, theft or so.



As far as I remember Ubuntu can be set up to boot from ZFS too, but I havent tried it. Originally (on Solaris whare ZFS was born) it required a seperate Zpool - only mirrored - for root file system and one (or more) Zpool for other disks. But that might be different on Linux.






share|improve this answer




















  • Yes, i think redundancy is the right word for what i am looking for. I'm already backed-up in the cloud. Thank you for your answer.
    – airzoink
    Feb 22 at 3:57














up vote
1
down vote













First: RAID is not backup. It gives disk redundancy, so if a disk dies you can replace it without loosing data. If you delete a file it will be gone on all copies on disk. So, raid for handling disk issues, backup for handling corrupted or removed files.



That said, ZFS (and similar filesystems) have features like snapshot and clones that can act as (a part of) a backup solution. ZFS uses CopyOnWrite, so a snapshot don't take up any space before you start modifying the original filesystem. This is great for having online access to "yesterdays" copy - but to be safe, we also need a backup "off premise" in case of a catastrophic event where you loose the whole server - fire, theft or so.



As far as I remember Ubuntu can be set up to boot from ZFS too, but I havent tried it. Originally (on Solaris whare ZFS was born) it required a seperate Zpool - only mirrored - for root file system and one (or more) Zpool for other disks. But that might be different on Linux.






share|improve this answer




















  • Yes, i think redundancy is the right word for what i am looking for. I'm already backed-up in the cloud. Thank you for your answer.
    – airzoink
    Feb 22 at 3:57












up vote
1
down vote










up vote
1
down vote









First: RAID is not backup. It gives disk redundancy, so if a disk dies you can replace it without loosing data. If you delete a file it will be gone on all copies on disk. So, raid for handling disk issues, backup for handling corrupted or removed files.



That said, ZFS (and similar filesystems) have features like snapshot and clones that can act as (a part of) a backup solution. ZFS uses CopyOnWrite, so a snapshot don't take up any space before you start modifying the original filesystem. This is great for having online access to "yesterdays" copy - but to be safe, we also need a backup "off premise" in case of a catastrophic event where you loose the whole server - fire, theft or so.



As far as I remember Ubuntu can be set up to boot from ZFS too, but I havent tried it. Originally (on Solaris whare ZFS was born) it required a seperate Zpool - only mirrored - for root file system and one (or more) Zpool for other disks. But that might be different on Linux.






share|improve this answer












First: RAID is not backup. It gives disk redundancy, so if a disk dies you can replace it without loosing data. If you delete a file it will be gone on all copies on disk. So, raid for handling disk issues, backup for handling corrupted or removed files.



That said, ZFS (and similar filesystems) have features like snapshot and clones that can act as (a part of) a backup solution. ZFS uses CopyOnWrite, so a snapshot don't take up any space before you start modifying the original filesystem. This is great for having online access to "yesterdays" copy - but to be safe, we also need a backup "off premise" in case of a catastrophic event where you loose the whole server - fire, theft or so.



As far as I remember Ubuntu can be set up to boot from ZFS too, but I havent tried it. Originally (on Solaris whare ZFS was born) it required a seperate Zpool - only mirrored - for root file system and one (or more) Zpool for other disks. But that might be different on Linux.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 21 at 10:25









Soren A

3,0681724




3,0681724











  • Yes, i think redundancy is the right word for what i am looking for. I'm already backed-up in the cloud. Thank you for your answer.
    – airzoink
    Feb 22 at 3:57
















  • Yes, i think redundancy is the right word for what i am looking for. I'm already backed-up in the cloud. Thank you for your answer.
    – airzoink
    Feb 22 at 3:57















Yes, i think redundancy is the right word for what i am looking for. I'm already backed-up in the cloud. Thank you for your answer.
– airzoink
Feb 22 at 3:57




Yes, i think redundancy is the right word for what i am looking for. I'm already backed-up in the cloud. Thank you for your answer.
– airzoink
Feb 22 at 3:57

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1008313%2fcan-zfs-be-setup-for-redundancy-of-my-entire-os-ubuntu-16-and-data%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491