Re: [zones-discuss] vxfs setting=value style mount options
On Thu, Sep 11, 2008 at 07:24:57AM -0600, Jerry Jelinek wrote: [EMAIL PROTECTED] wrote: I was thinking about global zones /etc/vfstab. Using zones fs configuration if I want to remount (using other options) it in the middle of the day I would have to reboot the zone. Using only /etc/fstab (from global zone) I just run -o remount, ... option. Using the global zones vfstab to mount file systems into a zone is not supported and will definitely break in the future as we make various changes in zones. I would not recommend using this procedure. I thought of using fs option of zones configuration (just to specify filesystem) but _mount_ option specified in global /etc/vfstab. Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Sprawdz swoja najblizsza przyszlosc! http://link.interia.pl/f1f0b ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
On Wed, Sep 10, 2008 at 06:58:29AM -0600, Jerry Jelinek wrote: [EMAIL PROTECTED] wrote: On Wed, Sep 10, 2008 at 12:55:53PM +0100, Lewis Thompson wrote: On Tue, 2008-09-09 at 09:04 -0400, Jeff Victor wrote: The zonecfg man page has an example of the use of fs options: zonecfg:myzone3 add fs zonecfg:myzone3:fs set dir=/usr/local zonecfg:myzone3:fs set special=/opt/local zonecfg:myzone3:fs set type=lofs zonecfg:myzone3:fs add options [ro,nodevices] zonecfg:myzone3:fs end Have you attempted to specify the options using that syntax? Hi Jeff and Jerry Thank you, I was indeed using the wrong syntax and have added the options successfully now Thanks for fast response Could we please discuss why fs options specified in zone configuration are better then just /etc/vfstab ? Using fs causes the mount to be managed/controlled by the global zone admin. Zones itself does the mount based on how the zone is configured. Using the zone's vfstab means you have to give device access to the zone, which also means that the zone has the ability to construct a bad file system on the device and panic the machine, so this is inherently less secure than using fs. However, sometimes you want to give device access to the zone, so both techniques are available, but it is generally preferred to use fs, since it is more constrained and secure than adding a device to the zone. Jerry, I was thinking about global zones /etc/vfstab. Using zones fs configuration if I want to remount (using other options) it in the middle of the day I would have to reboot the zone. Using only /etc/fstab (from global zone) I just run -o remount, ... option. Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Drogowa Mapa Polski GPS w Twoim telefonie! Pobierz http://link.interia.pl/f1f0a ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
[EMAIL PROTECTED] wrote: I was thinking about global zones /etc/vfstab. Using zones fs configuration if I want to remount (using other options) it in the middle of the day I would have to reboot the zone. Using only /etc/fstab (from global zone) I just run -o remount, ... option. Using the global zones vfstab to mount file systems into a zone is not supported and will definitely break in the future as we make various changes in zones. I would not recommend using this procedure. Jerry ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
On Tue, 2008-09-09 at 09:04 -0400, Jeff Victor wrote: The zonecfg man page has an example of the use of fs options: zonecfg:myzone3 add fs zonecfg:myzone3:fs set dir=/usr/local zonecfg:myzone3:fs set special=/opt/local zonecfg:myzone3:fs set type=lofs zonecfg:myzone3:fs add options [ro,nodevices] zonecfg:myzone3:fs end Have you attempted to specify the options using that syntax? Hi Jeff and Jerry Thank you, I was indeed using the wrong syntax and have added the options successfully now Thanks for fast response Lewis ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
On Wed, Sep 10, 2008 at 12:55:53PM +0100, Lewis Thompson wrote: On Tue, 2008-09-09 at 09:04 -0400, Jeff Victor wrote: The zonecfg man page has an example of the use of fs options: zonecfg:myzone3 add fs zonecfg:myzone3:fs set dir=/usr/local zonecfg:myzone3:fs set special=/opt/local zonecfg:myzone3:fs set type=lofs zonecfg:myzone3:fs add options [ro,nodevices] zonecfg:myzone3:fs end Have you attempted to specify the options using that syntax? Hi Jeff and Jerry Thank you, I was indeed using the wrong syntax and have added the options successfully now Thanks for fast response Could we please discuss why fs options specified in zone configuration are better then just /etc/vfstab ? Regards Przemyslaw Bak (przemol) -- http://przemol.blogspot.com/ -- Tanie polaczenia z Polska i ze swiatem Sprawdz http://link.interia.pl/f1f00 ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
[EMAIL PROTECTED] wrote: On Wed, Sep 10, 2008 at 12:55:53PM +0100, Lewis Thompson wrote: On Tue, 2008-09-09 at 09:04 -0400, Jeff Victor wrote: The zonecfg man page has an example of the use of fs options: zonecfg:myzone3 add fs zonecfg:myzone3:fs set dir=/usr/local zonecfg:myzone3:fs set special=/opt/local zonecfg:myzone3:fs set type=lofs zonecfg:myzone3:fs add options [ro,nodevices] zonecfg:myzone3:fs end Have you attempted to specify the options using that syntax? Hi Jeff and Jerry Thank you, I was indeed using the wrong syntax and have added the options successfully now Thanks for fast response Could we please discuss why fs options specified in zone configuration are better then just /etc/vfstab ? Using fs causes the mount to be managed/controlled by the global zone admin. Zones itself does the mount based on how the zone is configured. Using the zone's vfstab means you have to give device access to the zone, which also means that the zone has the ability to construct a bad file system on the device and panic the machine, so this is inherently less secure than using fs. However, sometimes you want to give device access to the zone, so both techniques are available, but it is generally preferred to use fs, since it is more constrained and secure than adding a device to the zone. Jerry ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
On Wed, Sep 10, 2008 at 8:58 AM, Jerry Jelinek [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: On Wed, Sep 10, 2008 at 12:55:53PM +0100, Lewis Thompson wrote: On Tue, 2008-09-09 at 09:04 -0400, Jeff Victor wrote: The zonecfg man page has an example of the use of fs options: zonecfg:myzone3 add fs zonecfg:myzone3:fs set dir=/usr/local zonecfg:myzone3:fs set special=/opt/local zonecfg:myzone3:fs set type=lofs zonecfg:myzone3:fs add options [ro,nodevices] zonecfg:myzone3:fs end Have you attempted to specify the options using that syntax? Hi Jeff and Jerry Thank you, I was indeed using the wrong syntax and have added the options successfully now Thanks for fast response Could we please discuss why fs options specified in zone configuration are better then just /etc/vfstab ? Using fs causes the mount to be managed/controlled by the global zone admin. Zones itself does the mount based on how the zone is configured. Using the zone's vfstab means you have to give device access to the zone, which also means that the zone has the ability to construct a bad file system on the device and panic the machine, so this is inherently less secure than using fs. However, sometimes you want to give device access to the zone, so both techniques are available, but it is generally preferred to use fs, since it is more constrained and secure than adding a device to the zone. Also, there is one situation - not part of the original request - where the use of /etc/vfstab is not only preferable, it's required: NFS mounts. If a zone needs to mount an NFS share from a different system, the zone's administrator must perform the mount, either manually - from within the zone - or automatically, in the zone's /etc/vfstab. -- --JeffV ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
Hi, why /etc/vfstab is not right solution for you ? We use it and it just works. Regards przemol -- http://przemol.blogspot.com/ On Tue, Sep 09, 2008 at 11:03:38AM +0100, Lewis Thompson wrote: Hi, I have a simple zone configured to test the VxFS 'convosync=direct' option. It's an s10u5 machine with no additional patches: zonecfg:lt203398:fs info fs: dir: /foo special: /dev/lofi/1 raw: /dev/rlofi/1 type: vxfs options: [rw] So far so good, but when I try and add a VxFS-style 'setting=value' option, zonecfg fails: zonecfg:lt203398:fs set options=[convosync=direct] syntax error at '=' From mount_vxfs man page: convosync=direct|dsync|unbuffered|closesync|delay So my question is: do we support these vxfs options when setting up filesystem definitions? If I manually edit the zone definition file to add the convosync=direct option then a zoneadm boot fails with fsck exit status 32... Many thanks, Lewis ___ zones-discuss mailing list zones-discuss@opensolaris.org -- Doladuj telefon szybko i bezpiecznie. Sprawdz http://link.interia.pl/f1f02 ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
Hi Lewis, On Tue, Sep 9, 2008 at 6:03 AM, Lewis Thompson [EMAIL PROTECTED] wrote: Hi, I have a simple zone configured to test the VxFS 'convosync=direct' option. It's an s10u5 machine with no additional patches: zonecfg:lt203398:fs info fs: dir: /foo special: /dev/lofi/1 raw: /dev/rlofi/1 type: vxfs options: [rw] So far so good, but when I try and add a VxFS-style 'setting=value' option, zonecfg fails: zonecfg:lt203398:fs set options=[convosync=direct] syntax error at '=' The zonecfg man page has an example of the use of fs options: zonecfg:myzone3 add fs zonecfg:myzone3:fs set dir=/usr/local zonecfg:myzone3:fs set special=/opt/local zonecfg:myzone3:fs set type=lofs zonecfg:myzone3:fs add options [ro,nodevices] zonecfg:myzone3:fs end Have you attempted to specify the options using that syntax? From mount_vxfs man page: convosync=direct|dsync|unbuffered|closesync|delay So my question is: do we support these vxfs options when setting up filesystem definitions? If I manually edit the zone definition file to add the convosync=direct option then a zoneadm boot fails with fsck exit status 32... Many thanks, Lewis -- --JeffV ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] vxfs setting=value style mount options
Lewis Thompson wrote: Hi, I have a simple zone configured to test the VxFS 'convosync=direct' option. It's an s10u5 machine with no additional patches: zonecfg:lt203398:fs info fs: dir: /foo special: /dev/lofi/1 raw: /dev/rlofi/1 type: vxfs options: [rw] So far so good, but when I try and add a VxFS-style 'setting=value' option, zonecfg fails: zonecfg:lt203398:fs set options=[convosync=direct] syntax error at '=' From mount_vxfs man page: convosync=direct|dsync|unbuffered|closesync|delay So my question is: do we support these vxfs options when setting up filesystem definitions? If I manually edit the zone definition file to add the convosync=direct option then a zoneadm boot fails with fsck exit status 32... You are not specifying the fs entry correctly. Within the fs resource, options are also a resource, so you do not use the 'set' command. Instead, you 'add' options. The syntax for the above example would look like this: zonecfg:lt203398:fs add options convosync=direct Jerry ___ zones-discuss mailing list zones-discuss@opensolaris.org