zonecfg add file system

Look my config, when i log to the zone dbsrv,

i dont see my file system "/FCI". Do you know what is the problem ?

zonecfg -z dbsrv

zonecfg:testzone> add fs

zonecfg:testzone:fs> set dir=/FCI

zonecfg:testzone:fs> set special=/dev/dsk/c2t0d0s0

zonecfg:testzone:fs> set raw=/dev/rdsk/c2t0d0s0

zonecfg:testzone:fs> set type=ufs

zonecfg:testzone:fs> end

zonecfg:testzone> verify

zonecfg:testzone> commit

zonecfg:testzone> exit

-bash-3.00# zonecfg -z dbsrv

zonecfg:dbsrv> info

zonepath: /dbsrv

autoboot: true

pool:

fs:

dir: /dbsrv/root/FCI

special: /dev/dsk/c2t0d0s0

raw: /dev/rdsk/c2t0d0s0

type: ufs

options: []

net:

address: 192.168.50.224

physical: eri0

device

match: /dev/dsk/c2t0d0s0

device

match: /dev/rdsk/c2t0d0s0

[934 byte] By [simquest] at [2007-11-26 10:35:58]
# 1

You need to do one of two things:

(1) Mount the filesystem in the global zone

or

(2) zonecfg that slice as a device (instead of a fs)

zonecfg makes sense if you think of it in relation to the global zone allocating resources.

In your case, since the global zone doesn't recognize that as a filesystem, it cannot callocate it as a filesystem to your nonglobal zone.

Message was edited by:

WRWindsor

(clarity)

Message was edited by:

WRWindsor

WRWindsor at 2007-7-7 2:46:55 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

I changed my config and i have access to a file system. But, not to the specific disk. I'm not sure, i'm a newbie with solaris 10 and zones.

I would like to mount the physical disk to my zone dbsrv.

If a create a simple file in the /FCI file system into a non global zone and a return into the /FCI file system mounted in the global zone, i dont see the file.

-bash-3.00# df -k

Filesystemkbytesusedavail capacity Mounted on

/dev/dsk/c1t0d0s010080200 4683213 529618547%/

fd 0000%/dev/fd

swap43272648 43272561%/tmp

swap432730448 43272561%/var/run

/dev/dsk/c2t0d0s03096797430747 306275481%/FCI

zonecfg:dbsrv> info

zonepath: /dbsrv

autoboot: true

pool:

fs:

dir: /FCI

special: /dbsrv/root/FCI

raw not specified

type: lofs

options: []

net:

address: 192.168.50.224

physical: eri0

zonecfg:dbsrv>

exit

-bash-3.00# zlogin dbsrv

[Connected to zone 'dbsrv' pts/3]

Last login: Thu Oct 5 14:46:19 on pts/3

Sun Microsystems Inc.SunOS 5.10Generic January 2005

You have mail.

# df -k

Filesystemkbytesusedavail capacity Mounted on

/17503127 3560583 1376751321%/

/FCI17503127 3560583 1376751321%/FCI

/dev17503127 3560583 1376751321%/dev

proc0000%/proc

ctfs0000%/system/contract

swap4327208264 43269441%/etc/svc/volatile

mnttab 0000%/etc/mnttab

fd 0000%/dev/fd

swap43269440 43269440%/tmp

swap432697632 43269441%/var/run

simquest at 2007-7-7 2:46:55 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

> I changed my config and i have access to a file

> system. But, not to the specific disk. I'm not sure,

> i'm a newbie with solaris 10 and zones.

> I would like to mount the physical disk to my zone

> dbsrv.

Understand that this is a uncommon thing to do. Most of the time physical devices are not seen by non-global zones. Instead the filesystem is mounted globally and then lofs remounted in the non-global.

If you want to do this, you have to put the device in the zone configuration for the zone to see it.Use the 'device' section of zonecfg.

Then you can simply mount the filesystem in the non-global zone's vfstab.

> If a create a simple file in the /FCI file system

> into a non global zone and a return into the /FCI

> file system mounted in the global zone, i dont see

> the file.

> fs:

> dir: /FCI

> special: /dbsrv/root/FCI

> raw not specified

> type: lofs

Perhaps you meant to make the special "/FCI" since that's how it's mounted in the global zone?

--

Darren

Darren_Dunham at 2007-7-7 2:46:55 > top of Java-index,Solaris Operating System,Solaris 10 Features...