Tabriz's Weblog

« ZFS On-Disk Format | Main

http://blogs.sun.com/tabriz/date/20060413 Thursday April 13, 2006

Are You Ready to RUMBLE!!!

ZFS Mountroot

ZFS Mountroot

Description

ZFS Mountroot provides the capability of configuring a ZFS root filesystem. ZFS Mountroot is NOT a complete boot solution; it relies on the existence of a small UFS boot environment to bootstrap the machine.

ZFS Mountroot was integrated in Solaris Nevada Build 37, but is off by default. The following web page provides instructions for manually turning on and setting up ZFS as your root filesystem. A script will be provided shortly to automatically perform the actions described in this script.

Known Problems

  • The ZFS Mountroot does not current work on SPARC, check back soon for an update.
  • ACLs are not entirely preserved when copying files from a ufs root to a zfs root. ZFS will convert ufs style ACLs to the new NFSv4 acls, but they may not be entirely identical.
  • 5008936 ZFS and/or zvol should support dumps
  • 6256649 the boot-archive check should not trip over changes in devid-cache

Instructions

Filing Bugs

File bugs early and often! If you aren't sure if something is a bug, that's a bug. Please file a bug and mention your uncertainty in the bug report. All ZFS bugs should be filed via The Opensolaris Bug Database under kernel/zfs.

Thank you!

Comments:

Hi Tabriz, Great news, and thanks for sharing the details. Don't suppose there is an ETA on this procedure being scriptified? Also, is this the "final" solution. I.e. should people start using it now and it will continue to work in the future or is this an interim and should only currently be used for testing et al? Thanks. --Peter

Posted by Peter Galvin on April 20, 2006 at 08:32 AM PDT #

Tim Foster was kind enough to automate Mountroot setup. You can find his script here. Thanks Tim!!!

Posted by Tabriz Leman on April 25, 2006 at 01:00 PM PDT #

Should
# tar xvf /devices.tar
actually be
# tar xpvf /devices.tar
to preserve permissions and ownerships of the extracted files?

Posted by Peter W. Osel on April 25, 2006 at 04:42 PM PDT #

From the tar man page, it appears as if this is already the default...

Restore the named files to their original modes, and ACLs if applicable, ignoring the present umask(1). This is the default behavior if invoked as super-user with the x function letter specified.

However, I certainly don't think it would hurt to add the 'p'.

:-)

Posted by Tabriz on April 25, 2006 at 05:40 PM PDT #

Hi Tabriz, I've just run into a few problems with zfs root built on a large zpool ( 2.1TB ) on an amd64 box it looks like it's a good idea to set a reasonable quota ( up to about 1.99TB ;) ) on the root filesystem to avoid overflowing statvfs called from 32-bit executables which upsets at least bootadm and sendmail. Also I haven't been able to get a clean boot with the modified bootadm command, it always complains that files in the boot archive differ with those on the root and stops the boot with svc:/system/boot-archive:default: Method "/lib/svc/method/boot-archive" failed with exit status 95. I think because the /ufsboot filesystem isn't mounted early enough in the boot sequence and the cp fails, but if you add an exit 0 as the last line in the bootadm wrapper script it boots cleanly and still updates the archive on /ufsboot when called. Having moaned about that, the zfs root is performing very well using raidz and with compression turned on :) Many thanks to all involved in zfs and keep up the great work! Cheers, Alan

Posted by Alan Romeril on April 30, 2006 at 06:16 PM PDT #

Hi Alan, I am sorry you have stumbled over ANY problems =(. As far as the clean boot problem, the bootadm service failure really has nothing to do with the bootadm script. If /ufsboot is not mounted, the cp will fail, but that will not cause the svc:/system/boot-archive:default to fail. The next time you boot up, check the log associated with the boot-archive service; it will tell you which files are out of sync. If it is etc/devices/mdi_ib_cache, I imagine you are tripping over bugid 6256649:the boot-archive check should not trip over changes in devid-cache.

I will add this bug to the mountroot known bugs. Thanks for using mountroot and please let me know if this helps.

Posted by Tabriz Leman on May 01, 2006 at 11:08 AM PDT #

Thanks for the howto Tabriz, this is great! I have the same error about /etc/devices/mdi_ib_cache. Is there a workaround? It prevents unattended reboots ...

Posted by Dick Davies on May 04, 2006 at 07:06 AM PDT #

Sorry - just reread Alans comment and edited the bootadm wrapper. That seems to get a clean boot. Could you amend the article to reflect that? Thanks again for the howto!

Posted by Dick Davies on May 04, 2006 at 07:11 AM PDT #

great work ! same experience as Alan & Dick /etc/devices/mdi_ib_cache is said to be recreated at boot but its not. did try touch /etc/devices/mdi_ib_cache how serious is missing /etc/devices/mdi_ib_cache ... # mount -p | head -1 root - / zfs - no noatime ...

Posted by Jörgen Moquist on May 05, 2006 at 03:04 PM PDT #

Good Werk! I'm wondering if there will, in the future, to convert ufs to zfs?

Posted by Karl on May 05, 2006 at 08:30 PM PDT #

did reinstall nv_38 section 9. skipped the boot miniroot. just booted and when it stops. "uadmin 4 8" then continued, everything worked fine. nothing about /etc/devices/mdi_ib_cache. no errors at all booting zfs root. /Jorgen

Posted by Jörgen Moquist on May 06, 2006 at 02:27 PM PDT #

Hi, do you know if this feature is now implemented on sparc platform with build 39 ? I think this projet is really important for solaris : 1- It is a need for the coherence of solaris 2- It could allow easy multi-boot on SAN environment ! Thanks a lot ! Armand

Posted by Armand Delcros on May 16, 2006 at 07:06 AM PDT #

do you have to BFU? since soalris express community build should have support for it.

Posted by James Dickens on July 27, 2006 at 08:13 PM PDT #

Is it possible to do this with a mirrored pool? Eg change step 2 to : # /usr/sbin/zpool create pool_name mirror vdev_list

Posted by Ben Short on August 21, 2006 at 02:19 AM PDT #

This comment is in response to the last three questions.

Question: Do you have to bfu?
Answer: No, not as long as you are running build 37 or later.

Question: Is this feature implemented on Sparc?
Answer: Not currently, but we are actively working on this!

Question: Is it possible to mirror your rootpool?
Answer: Absolutely!

Posted by Tabriz Leman on August 24, 2006 at 04:41 PM PDT #

(This isn't really related to zfs mountroot but this is the only reference I've found relating to a problem I encountered.)

Hi Tabriz, could you fix the bug report for the bugid 6256649 you mentioned so that something more than 'see comments' is visible at http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6256649

I ran into a problem on Solaris 10 6/06 which seems to be related to this bug but I can't be sure since there's so little publicly visible. In particular it would be nice to know if this bug is applicable to Solaris 10 6/06 and if a fix will be backported?

There's more detail on what I ran into on my blog: http://blog.jameslick.com/?p=807

There's also an additional problem wherein the recommended fix the system suggests for mirrored (md) filesystems will cause ufs corruption.

Posted by James Lick on September 17, 2006 at 09:18 AM PDT #

Early in your blog you stated: "It relies on the existence of a small UFS boot environment" Any pointers on exactly what it need to start up after these changes? I am trying to remove everything that isn't necessary out of the old UFS filesystem so I can re-allocate that space. Thanks!

Posted by Jeff Berube on September 23, 2006 at 01:35 AM PDT #

I didn't have much success - after grub loads the kernel, it simply displays the message: SunOS Release 5.11 .... ...... Use is subject to license terms. There is some hard drive activity for a few seconds, then nothing else.

Posted by Brandon Barker on September 27, 2006 at 11:34 PM PDT #

I'm seeing the same problem with b54 as Brandon, but this worked some time ago with b49 or something similar (I can't remember exactly). Is zfsroot development dead? This, and the zfsroot script stuff, seems -awfully- quiet. This is a shame, as ZFS is what's bringing me back to SunOS 5 after a long time of using loonucks and *BSD.

Posted by Carl Brewer on January 17, 2007 at 01:57 AM PST #

Hey guys ! How is running how this very important project ? Cheers, Armand Delcros

Posted by Armand Delcros on February 14, 2007 at 03:53 AM PST #

[Trackback] Multiple orgasms through cialis. Buy cialis. Purchase cialis online. Liquid cialis. Cialis.

Posted by Cialis levitra viagra. on April 15, 2007 at 08:24 PM PDT #

The disk on my SUN Blade 2500 died and I'm getting another disk, so - I'm thinking of setting up /export as a zfs filesystem. How do I set up a boot partition and a zfs on the same machine? Do I set up the c0t0d0s0 as root and then create a zpool on c0t0d0 (zpool create main c0t0d0) and set up a filesystem export (zfs create main/export)? Please answer ASAP as the disk is on the way! Thanks, Roger

Posted by roger on June 20, 2007 at 11:24 AM PDT #

برای خرید کتاب نفیس و ذیقیمت تبریز شهر کهن تاریخ با شماره 09141002833 تماس بگیرید.
همچنین میتوانید برای خرید کتاب تبریز شهر کهن تاریخ (چاپ دوم با تغییرات و تکمله) به آدرس تبریز خیابان امام سه راه طالقانی پاساژ جام جم زیرزمین موبایل غفاری (تلفن 5555202ـ 0411) یا موبایل فرشباف مراجعه فرمایید.
یا از کتابفروشی اختر به آدرس تبریزـ اول خیابان طالقانی (تلفن 5555393 ـ0411) تهیه نمایید. با تشکرات فراوان

Posted by rahnama on August 22, 2008 at 07:36 AM PDT #

Used honda civic hybrid
http://honda-civic-hybrid.greatnow.com
2008 honda civic hybrid
http://en.netlog.com/2009_honda_civichybrid/extra
2009 honda civic hybrid, honda civic hybrid for sale, reviews of honda civic hybrid.

Posted by Berg on August 31, 2008 at 04:53 AM PDT #

thnks for great news

Posted by Migraine Headaches on September 05, 2008 at 02:34 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.