Re: [zones-discuss] fsck during zones boot ?
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
Re: [zones-discuss] fsck during zones boot ?
Detlef Drewanz wrote: 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 ?). For now you'll have to use 'add device' if you want to run an fsck when the zone boots. If the fs was added read-only then you could just use the fs resource and have a small service that did a single fsck from the global zone. I think an RFE for us to fsck file-systems that are added to the zone read-write, and that can be fsck-ed, would also be reasonable. Thanks, Jerry ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] fsck during zones boot ?
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 ___ zones-discuss mailing list zones-discuss@opensolaris.org