Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Having become disillusioned with hacking Buffalo NAS devices, I've decided to roll my own Home server. After some research, I have settled on an HP Proliant Microserver with Ubuntu Server and ZFS (OS on 1 Ext4 disk, Data on 3 RAIDZ disks).

As Joel Spolsky and Geoff Atwood say with regards to backup, I can't rest until I have done a restore in all of the failure scenarios that I am seeking to protect against.

Q: How to configure Ubuntu Server to recognise a pre-existing RAIDZ array?

Clearly if one of the data disks die - then that is a resilvering scenario, which is well documented. If two of the data disks die, then I am into regular backup/restore land. If the OS dies and I can restore, also an easy scenario.

But if the OS dies and I can't restore, then I need to recreate an Ubuntu server. But how do I get this to recognise my RAID-Z array? Is the necessary configuration information stored within and across the RAIZ array and simply need to be found (if so, how)? Or does it reside on the OS ext4 disk (in which case how do I recreate it)?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Found my answer at http://docs.oracle.com/cd/E19082-01/817-2271/gazru/index.html

# zpool import

Implication is that config data must be stored in and across RAIDZ devices.

Apparently, if the data is complete, the import results in ONLINE (e.g. in my case, 3 of my 3 RAIDZ disks), if the data is partially but sufficiently complete the result is DEGRADED (e.g. 2/3); and if the data is insufficiently complete the result is FAULTED (e.g. 1/3).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.