Pawel Jakub Dawidek
d5d7e76d2b
Currently there is a problem with fscking UFS file systems created on
...
top of ZVOLs. The problem is that rc.d/fsck runs before rc.d/zfs. The
latter makes ZVOLs to appear in /dev/. In such case rc.d/fsck cannot
find devfs entry and aborts. We cannot simply move rc.d/zfs before
rc.d/fsck, because we first want kern.hostid to be configured (by
rc.d/hostid). If we won't wait (hostid will be 0) we can reuse disks
which are in use by different systems (eg. in SAN/NAS environment).
We also cannot move rc.d/hostid before rc.d/fsck, because rc.d/hostid on
first system start stores generated kern.hostuuid in /etc/hostid file,
so it needs root file system to be mounted read-write.
The fix is to split rc.d/hostid so that rc.d/hostid (which will now run
before rc.d/fsck) only generates hostid and sets up sysctls, but doesn't
touch root file system and rc.d/hostid_save (which is run after
rc.d/root) and only creates /etc/hostid file.
With that in place, we can move ZVOL initialization to dedicated
rc.d/zvol script which runs before rc.d/fsck.
PR: conf/120194
Reported by: James Snow <snow@teardrop.org>
Reviewed by: brooks
Approved by: re (kib)
MFC after: 2 weeks
2009-07-29 05:23:52 +00:00
..
2008-07-16 19:22:48 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2009-06-01 04:55:13 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2009-05-30 21:51:38 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-19 20:11:33 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2008-06-23 04:42:58 +00:00
2007-12-08 07:20:23 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2009-02-17 11:55:50 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:22:48 +00:00
2008-04-15 23:03:35 +00:00
2007-12-08 22:40:31 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2009-06-10 19:03:23 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-11-03 10:38:00 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:22:48 +00:00
2009-07-29 05:23:52 +00:00
2009-07-29 05:23:52 +00:00
2008-07-16 19:22:48 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2009-06-01 05:35:03 +00:00
2009-06-01 05:35:03 +00:00
2009-06-01 05:35:03 +00:00
2009-06-26 01:04:50 +00:00
2007-12-08 07:20:23 +00:00
2009-06-01 05:35:03 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2009-06-10 18:18:14 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2009-06-01 04:55:13 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-06-23 04:46:54 +00:00
2008-06-22 16:23:39 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:50:29 +00:00
2009-07-29 05:23:52 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-06-23 04:46:54 +00:00
2008-07-05 15:19:58 +00:00
2008-06-22 15:40:19 +00:00
2009-06-02 22:15:47 +00:00
2008-07-16 19:22:48 +00:00
2009-05-30 21:51:38 +00:00
2008-07-16 19:22:48 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2009-05-16 20:55:28 +00:00
2008-07-16 19:22:48 +00:00
2009-06-26 01:04:50 +00:00
2008-07-16 19:22:48 +00:00
2009-06-01 05:35:03 +00:00
2009-06-26 01:04:50 +00:00
2008-06-23 04:46:54 +00:00
2009-06-02 22:15:47 +00:00
2008-07-16 19:22:48 +00:00
2009-06-02 22:15:47 +00:00
2008-07-16 19:22:48 +00:00
2009-06-02 22:15:47 +00:00
2009-06-01 04:55:13 +00:00
2009-05-30 21:51:38 +00:00
2008-07-16 19:22:48 +00:00
2009-05-30 21:51:38 +00:00
2006-07-20 10:07:34 +00:00
2008-07-16 19:22:48 +00:00
2009-06-26 01:04:50 +00:00
2009-06-26 01:04:50 +00:00
2009-06-26 01:04:50 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2007-12-08 07:20:23 +00:00
2009-06-01 04:55:13 +00:00
2008-07-16 19:22:48 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:22:48 +00:00
2008-03-11 17:21:14 +00:00
2007-12-08 07:20:23 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2008-08-29 20:30:30 +00:00
2008-07-16 19:50:29 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:50:29 +00:00
2008-07-19 20:12:02 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2009-03-11 12:55:12 +00:00
2008-07-16 19:22:48 +00:00
2008-07-31 22:13:14 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:50:29 +00:00
2009-05-17 08:25:02 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:22:48 +00:00
2007-12-08 07:20:23 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:22:48 +00:00
2008-07-16 19:50:29 +00:00
2009-06-01 04:55:13 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2008-07-16 19:50:29 +00:00
2009-07-29 05:23:52 +00:00
2009-07-29 05:23:52 +00:00