On 4/18/06, Frank Batschulat (Home) <[EMAIL PROTECTED]> wrote: > On Wed, 12 Apr 2006 18:39:21 +0200, Adrian Ramirez Del Rio > <[EMAIL PROTECTED]> wrote: > > > I have this error when apply the command edquota usert in a zone > > non-global. > > > > /etc/mnttab: no UFS filesystems with quotas file > > > > In the file /etc/mnttab > > > > / / ufs > > rw,intr,largefiles,logging,[b]quota[/b],xattr,onerror=panic,dev=1540002 > > 1144305551. > > see quotaon(1M) > > <snip> > Before a file system may have quotas enabled, a file named > quotas, owned by root, must exist in the root directory of > the file system. See edquota(1M) for details on how to > modify the contents of this file. > <snip end> > > did you created the quota file ?
The problem here is likely, in part, due to the fact that / is not really the root directory of any file system. That is, if the system has one partition and the zonepath is /zones/z1, then what is seen in the zone z1 as / is really /zones/z1/root to the global zone. As such, you may need to create a separate file system that gets mounted at /zones/z1/root. I'm not sure how tolerant "zoneadm install" will be of that. There may be other things going on as well. For instance, the following code (from http://cvs.opensolaris.org/source/xref/on/usr/src/uts/common/os/policy.c#549) is executed as part of the permissions check for each system call that modifies quotas: 549 /* 550 * When operating on an existing mount (either we're not mounting 551 * or we're doing a remount and VFS_REMOUNT will be set), zones 552 * can operate only on mounts established by the zone itself. 553 */ 554 if (!mounting || (vfsp->vfs_flag & VFS_REMOUNT) != 0) { 555 zoneid_t zoneid = crgetzoneid(cr); 556 557 if (zoneid != GLOBAL_ZONEID && 558 vfsp->vfs_zone->zone_id != zoneid) { 559 return (EPERM); 560 } 561 } Mike -- Mike Gerdts http://mgerdts.blogspot.com/ _______________________________________________ ufs-discuss mailing list [email protected]
