Thanks Jerry,
that makes very much sense to do that in this way. But we should keep in mind that checking a filesystem during zonesboot might be required (esspecially after a crash or a cluster switch).

With "add device" the raw device is in the zone available to do the fsck.
With "add fs" the zoneadm command would be required to do the fsck during the zonesboot, which do not happens today.

With this in mind it would make more sense to use "add device" if we expect fsck or fs crashes (or should I open an RFE ?).

Detlef

On 11/16/06 00:35, Jerry Jelinek wrote:
Detlef Drewanz wrote:

Hi,
is there a way to check a filesystem during a zones boot that was configured with zonecfg ?


Sorry for the delayed response to this question.  I have
gotten a bit behind.

I don't know of a way to do this when you add a file system
in zonecfg using the fs resource.  However, you can do this
by adding the device instead and modifying the zones vfstab
to mount the filesystem.

You would use the 'add device' capability in zonecfg (e.g.
"add device; set match=/dev/*dsk/c0d1s5).  You then add the usual
entry into the zones vfstab to mount the ufs filesystem on this
device.  When the zone boots it will then fsck the ufs filesystems
that are in the vfstab.

Jerry

--
Detlef Drewanz          Technical Specialist/OS Ambassador
Sun Microsystems GmbH   Phone: (+49 30) 747096 856
Komturstrasse 18a       Fax:   (+49 30) 747096 878
D-12099 Berlin          mailto:[EMAIL PROTECTED]
                        http://blogs.sun.com/solarium
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to