mounting a filesystem within the zone root before booting it...
Hi all,
I want to mount a filesystem within the zone root before booting it. The mount works (of course...), but when I want to boot the zone (zoneadm -z stat-prod-02 boot), I've got the following error:
zoneadm: zone 'stat-prod-02': These file-systems are mounted on subdirectories of /zones/stat-prod-02/zone/root:
zoneadm: zone 'stat-prod-02':/zones/stat-prod-02/zone/root/sas
zoneadm: zone 'stat-prod-02': call to zoneadmd failed
So, my question is: is it possible to mount a filesystem within the zone root before booting it ? If yes, what am I missing ?
Regards,
Jeff
# 3
I certainly see what he's trying to achieve -- an easy transition for admins who are not experienced with zones.
If I tell an admin that everything under /zoneroots/foobar/root is part of the server "foobar"'s root directory, that's a pretty easy concept. That admin can go onto the global zone, create a new logical volume and mount it as (for example) /zoneroots/foorbar/root/dba93 (updating the global zone's /etc/vfstab) using all their "regular" skills. Unfortunately this works for the moment, but now the zone is unbootable (unbeknownst to the poor admin...).
If I tell the same admin they have to create the logical volume like normal, but then they have to go into this unfamiliar "zoneadm" command and start typing in these new commands, they suddenly are a lot less interested in doing the work (meaning it gets push to the "guy who knows zones"). Not only does this place a burden on the person who knows zones best, it slows their adoption because the admin team isn't supportive of them.
I too don't see why the zone cares that something is mounted as a sub-dir of it's root -- it's not a directory that the zone configuration is going to try and mount (THAT would be a problem and a suitable reason to abort). Tracing into this I see that the "zone_create" system call is returning with "EBUSY" which just seems wrong...