if your running solaris 10 or an early nevada build then it's
possible your hitting this bug (which i fixed in build 35):

        4976415 devfsadmd for zones could be smarter when major numbers change

if you're running a recent nevada build then this could be a new issue.

so what version of solaris are you running?

thanks
ed

On Tue, Oct 31, 2006 at 03:26:06PM -0700, Jason Gallagher - Sun Microsystems 
wrote:
> Team,
>
> **Please respond to me and my coworker listed in the Cc, since neither
> one of us are on this alias**
>
> QUICK PROBLEM DESCRIPTION:
>
> Cu created a dataset which contains all the zvols for a particular
> zone.  The zone is then given access to all the zvols in the dataset
> using a match statement in the zoneconfig (see long problem description
> for details).  After the initial boot of the zone everything appears
> fine and the localzone zvol dev files match the globalzone zvol dev
> files.
>
> Upon the reboot of the box (following the initial that had no problems)
> the Minor numbers of the zvols are different between the local zone and
> the Global zone and some of the volumes are not mounted in the correct
> location and some volumes can't even be mounted.
>
>
> LONG PROBLEM DESCRIPTION:
>
> All the details are listed below, authored by the customer:
>
>
> Here is a summary of the problem we are experiencing.
>
> Just a quick little background.  We had hoped to use ZFS for our
> filesystems but as a result of our backup system not fully supporting
> ZFS yet we are stuck with using UFS for now.  In an effort to make
> migrating to ZFS in the future that much easier and to be able to take
> advantage of some of the other features ZFS gives us we have decided to
> use ZFS volumes and create UFS filesystems on top of them.
>
> We have created a dataset which contain all the zvols for a particular
> zone.  The zone is then given access to all the zvols in the dataset
> using a match statement in the zoneconfig.
>
> [/users/mdey]
>
> [EMAIL PROTECTED] zonecfg -z biscotti info
>
> zonepath: /zones/biscotti
>
> autoboot: false
>
> pool:
>
> inherit-pkg-dir:
>
>         dir: /lib
>
> inherit-pkg-dir:
>
>         dir: /platform
>
> inherit-pkg-dir:
>
>         dir: /sbin
>
> inherit-pkg-dir:
>
>         dir: /usr
>
> inherit-pkg-dir:
>
>         dir: /opt
>
> net:
>
>         address: 10.1.33.91
>
>         physical: hme0
>
> device
>
>         match: /dev/zvol/rdsk/d1000pool/biscotti-vols/*
>
> device
>
>         match: /dev/zvol/dsk/d1000pool/biscotti-vols/*
>
>
>
> There are 4 volumes in the dataset
>
>
>
> [/]
>
> [EMAIL PROTECTED] zfs list -r d1000pool/biscotti-vols
>
> NAME                   USED  AVAIL  REFER  MOUNTPOINT
>
> d1000pool/biscotti-vols   400M   197G    49K  none
>
> d1000pool/biscotti-vols/vol1  11.2M   197G  11.2M  -
>
> d1000pool/biscotti-vols/vol2  10.7M   197G  10.7M  -
>
> d1000pool/biscotti-vols/vol3  11.0M   197G  11.0M  -
>
> d1000pool/biscotti-vols/vol4  10.5M   197G  10.5M  -
>
>
>
> The volumes are mounted in the zone via the zones vfstab
>
>
>
> /dev/zvol/dsk/d1000pool/biscotti-vols/vol1
> /dev/zvol/rdsk/d1000pool/biscotti-vols/vol1     /vol1   ufs     2
> yes     -
>
> /dev/zvol/dsk/d1000pool/biscotti-vols/vol2
> /dev/zvol/rdsk/d1000pool/biscotti-vols/vol2     /vol2   ufs     2
> yes     -
>
> /dev/zvol/dsk/d1000pool/biscotti-vols/vol3
> /dev/zvol/rdsk/d1000pool/biscotti-vols/vol3     /vol3   ufs     2
> yes     -
>
> /dev/zvol/dsk/d1000pool/biscotti-vols/vol4
> /dev/zvol/rdsk/d1000pool/biscotti-vols/vol4     /vol4   ufs     2
> yes     -
>
>
>
> After the initial boot of the zone everything appears fine and the
> localzone zvol dev files match the globalzone zvol dev files.
>
>
>
> [/]
>
> [EMAIL PROTECTED] ls -lL /zones/biscotti/dev/zvol/rdsk/d1000pool/biscotti-vols
>
> total 0
>
> crw-------   1 root     sys      256,  2 Oct 23 21:23 vol1
>
> crw-------   1 root     sys      256,  3 Oct 23 21:23 vol2
>
> crw-------   1 root     sys      256,  4 Oct 23 21:23 vol3
>
> crw-------   1 root     sys      256,  5 Oct 23 21:23 vol4
>
>
>
> [/]
>
> [EMAIL PROTECTED] ls -lL /dev/zvol/rdsk/d1000pool/biscotti-vols
>
> total 0
>
> crw-------   1 root     sys      256,  2 Oct 23 21:02 vol1
>
> crw-------   1 root     sys      256,  3 Oct 23 21:02 vol2
>
> crw-------   1 root     sys      256,  4 Oct 23 21:02 vol3
>
> crw-------   1 root     sys      256,  5 Oct 23 21:02 vol4
>
>
>
>
>
> I login to the zone and create a file in each mount to keep track of
> which volume is which.
>
>
>
> [/]
>
> [EMAIL PROTECTED] ls -l /vol?/vol?
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol1/vol1
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol2/vol2
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol3/vol3
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol4/vol4
>
>
>
>
>
> I then create a new volume vol5 then shutdown the zone and then reboot
> the box with an init 6
>
>
>
> Upon the reboot of the box the Minor numbers of the zvols are different
> between the local zone and the Global zone.
>
>
>
> [/zones/biscotti/dev/zvol/rdsk/d1000pool/biscotti-vols]
>
> [EMAIL PROTECTED] ls -lL
>
> total 0
>
> crw-------   1 root     sys      256,  2 Oct 23 21:23 vol1
>
> crw-------   1 root     sys      256,  3 Oct 23 21:23 vol2
>
> crw-------   1 root     sys      256,  4 Oct 23 21:23 vol3
>
> crw-------   1 root     sys      256,  5 Oct 23 21:23 vol4
>
> crw-------   1 root     sys      256,  6 Oct 23 21:44 vol5
>
>
>
> [/zones/biscotti/dev/zvol/rdsk/d1000pool/biscotti-vols]
>
> [EMAIL PROTECTED] cd /dev/zvol/rdsk/d1000pool/biscotti-vols
>
>
>
> [/dev/zvol/rdsk/d1000pool/biscotti-vols]
>
> [EMAIL PROTECTED] ls -lL
>
> total 0
>
> crw-------   1 root     sys      256,  4 Oct 24 10:57 vol1
>
> crw-------   1 root     sys      256,  3 Oct 24 10:57 vol2
>
> crw-------   1 root     sys      256,  5 Oct 24 10:57 vol3
>
> crw-------   1 root     sys      256,  6 Oct 24 10:57 vol4
>
> crw-------   1 root     sys      256,  2 Oct 24 10:57 vol5
>
>
>
> [/dev/zvol/rdsk/d1000pool/biscotti-vols]
>
> [EMAIL PROTECTED]
>
>
>
>
>
> Upon bootup of the zone the problem becomes even more apparent as
> volumes are not mounted in the correct location and some volumes can't
> even be mounted.
>
>
>
>
>
> [/]
>
> [EMAIL PROTECTED] ls -l
> /vol?/vol?
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol2/vol2
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol3/vol1
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol4/vol3
>
>
>
> [/]
>
> [EMAIL PROTECTED] mount /vol1
>
> mount: /dev/zvol/dsk/d1000pool/biscotti-vols/vol1 is already mounted or
> /vol1 is busy
>
>
>
> If I halt the zone then rm -rf /zones/biscotti/dev/zvol and then reboot
> eh zone the problems are resolved.
>
>
>
>
>
> [/]
>
> [EMAIL PROTECTED] ls -lL /dev/zvol/rdsk/d1000pool/biscotti-vols/
>
> total 0
>
> crw-------   1 root     sys      256,  4 Oct 24 10:57 vol1
>
> crw-------   1 root     sys      256,  3 Oct 24 10:57 vol2
>
> crw-------   1 root     sys      256,  5 Oct 24 10:57 vol3
>
> crw-------   1 root     sys      256,  6 Oct 24 10:57 vol4
>
> crw-------   1 root     sys      256,  2 Oct 24 10:57 vol5
>
>
>
> [/]
>
> [EMAIL PROTECTED] ls -lL 
> /zones/biscotti/dev/zvol/rdsk/d1000pool/biscotti-vols/
>
> total 0
>
> crw-------   1 root     sys      256,  4 Oct 24 11:07 vol1
>
> crw-------   1 root     sys      256,  3 Oct 24 11:07 vol2
>
> crw-------   1 root     sys      256,  5 Oct 24 11:07 vol3
>
> crw-------   1 root     sys      256,  6 Oct 24 11:07 vol4
>
> crw-------   1 root     sys      256,  2 Oct 24 11:07 vol5
>
>
>
> I then login to the zone and everything appears fine.
>
>
>
> [/]
>
> [EMAIL PROTECTED] ls -l /vol?/vol?
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol1/vol1
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol2/vol2
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol3/vol3
>
> -rw-------   1 root     root     10485760 Oct 23 21:38 /vol4/vol4
> =====================end summary of the
> problem==========================
>
> --
> Jason Gallagher
> Operating Systems Group Support Team
> Sun Microsystems, Inc.
> Working hours: Sat/Sun 6am - 6pm & Mon/Tue 8am - 5pm MNT
> Phone: Call 1-800-USA4-SUN and reference your case id
> e-mail: [EMAIL PROTECTED]
>
> Case info located at http://www.sun.com/service/online
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to