Hello All, I have a question on how zoneadm determines what devices it will add to a NGZ's. I have a disk device that is displayed as /dev/dsk/c1t0d0s7 by the global zone the device works fine when added as a dsk/rdsk device for the NGZ.
When I create my own device link in /dev/dsk and /dev/rdsk for my device now called mydisk the zonecfg takes the update but the zone when booted does not list the device. I tried adding both sets of devices in case the kernel did not like one existing in the global environment but still only the c1t0d0s7 device is listed in the NGZ environment. Any insight would be greatly appreciated. Geoff Using the c1t0d0s7 device name: # zonecfg -z pcgalzone zonecfg:pcgalzone> add device zonecfg:pcgalzone:device> set match=/dev/rdsk/c1t0d0s7 zonecfg:pcgalzone:device> end zonecfg:pcgalzone> info zonename: pcgalzone zonepath: /zone brand: native autoboot: false bootargs: pool: limitpriv: scheduling-class: ip-type: shared inherit-pkg-dir: dir: /lib inherit-pkg-dir: dir: /platform inherit-pkg-dir: dir: /sbin inherit-pkg-dir: dir: /usr device match: /dev/rdsk/c1t0d0s7 zonecfg:pcgalzone> verify zonecfg:pcgalzone> exit # zoneadm -z pcgalzone boot # ls -l /zone/dev/rdsk total 0 crw-r----- 1 root sys 136, 15 Jun 17 19:58 c1t0d0s7 # zlogin pcgalzone [Connected to zone 'pcgalzone' pts/3] Last login: Tue Jun 17 19:40:57 on console Sun Microsystems Inc. SunOS 5.10 Generic January 2005 # ls -l /dev/rdsk total 0 crw-r----- 1 root sys 136, 15 Jun 17 19:58 c1t0d0s7 # zonecfg -z pcgalzone zonecfg:pcgalzone> add device zonecfg:pcgalzone:device> set match=/dev/dsk/c1t0d0s7 zonecfg:pcgalzone:device> end zonecfg:pcgalzone> verify zonecfg:pcgalzone> commit zonecfg:pcgalzone> exit # pwd / # cd /dev/dsk # chown -R -H 3207:200 c1t0d0s7 # ls -l c1t0d0s7 ; ls -lL c1t0d0s7 lrwxrwxrwx 1 root root 38 May 7 17:58 c1t0d0s7 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:h brw-r----- 1 oracle dba 136, 15 Jun 18 11:57 c1t0d0s7 # zoneadm -z pcgalzone halt # zoneadm -z pcgalzone boot # zlogin pcgalzone [Connected to zone 'pcgalzone' pts/3] Last login: Tue Jun 17 19:59:55 on pts/3 Sun Microsystems Inc. SunOS 5.10 Generic January 2005 # ls -l /dev/dsk total 0 brw-r----- 1 root sys 136, 15 Jun 18 11:58 c1t0d0s7 # mount /dev/dsk/c1t0d0s7 /mnt # ls -l /mnt total 16 drwx------ 2 root root 8192 May 7 17:07 lost+found # mkfile 200m /mnt/testfile # ls -l /mnt total 409840 drwx------ 2 root root 8192 May 7 17:07 lost+found -rw------- 1 root root 209715200 Jun 18 12:00 testfile # df -h Filesystem size used avail capacity Mounted on / 4.8G 752M 4.0G 16% / /dev 4.8G 752M 4.0G 16% /dev /lib 4.8G 752M 4.0G 16% /lib /platform 4.8G 752M 4.0G 16% /platform /sbin 4.8G 752M 4.0G 16% /sbin /usr 4.8G 2.9G 1.8G 62% /usr proc 0K 0K 0K 0% /proc ctfs 0K 0K 0K 0% /system/contract mnttab 0K 0K 0K 0% /etc/mnttab objfs 0K 0K 0K 0% /system/object swap 1.0G 328K 1.0G 1% /etc/svc/volatile fd 0K 0K 0K 0% /dev/fd swap 1.0G 32K 1.0G 1% /tmp swap 1.0G 32K 1.0G 1% /var/run /dev/dsk/c1t0d0s7 15G 215M 14G 2% /mnt # exit [Connection to zone 'pcgalzone' pts/3 closed] # ls -l /dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 lrwxrwxrwx 1 root root 38 May 7 17:58 /dev/dsk/c1t0d0s7 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:h lrwxrwxrwx 1 root root 42 May 7 17:58 /dev/rdsk/c1t0d0s7 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:h,raw Using the mydisk link: # zlogin pcgalzone [Connected to zone 'pcgalzone' pts/3] Last login: Wed Jun 18 12:10:27 on pts/3 Sun Microsystems Inc. SunOS 5.10 Generic January 2005 # ls -l /dev/dsk total 0 # ls -l /dev/rdsk total 0 # format Searching for disks...done No disks found! # # uname -a SunOS pcgalzone 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Blade-100 # exit [Connection to zone 'pcgalzone' pts/3 closed] # zonecfg -z pcgalzone export create -b set zonepath=/zone set autoboot=false set ip-type=shared add inherit-pkg-dir set dir=/lib end add inherit-pkg-dir set dir=/platform end add inherit-pkg-dir set dir=/sbin end add inherit-pkg-dir set dir=/usr end add device set match=/dev/rdsk/mydisk end add device set match=/dev/dsk/mydisk end # ls -l /dev/rdsk/mydisk /dev/dsk/mydisk lrwxrwxrwx 1 root root 38 Jun 18 12:12 /dev/dsk/mydisk -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:h lrwxrwxrwx 1 root root 42 Jun 18 12:12 /dev/rdsk/mydisk -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:h,raw -- Geoff Shipman - (303) 272-9955 Systems Technology Service Center - Operating System Solaris and Network Technology Domain Americas Systems Technology Service Center _______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org