ZFS adding new filesystems to a non-global zone


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS adding new filesystems to a non-global zone
# 1  
Old 06-14-2012
ZFS adding new filesystems to a non-global zone

Hi Guys

I have one Global Zone and 2 non-global zones.

PHP Code:
root@solar109
 
# zoneadm list -icv
  
ID NAME             STATUS     PATH                           BRAND    IP
   0 
global           running    /                              native   shared
  20 solar109b        running    
/zones/solar109b/base          native   shared
  21 solar109g        running    
/zones/solar109g/base          native   shared 
Now i need to configure the Zone solar109g exactly like the Zone solar190a.

The zfs lits command shows me that i need to create two new filesystems (orabin & data) for the solar109b zone

PHP Code:
# zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
rpool                    224G  1.73T    31K  
/rpool
rpool
/ROOT              3.25G  1.73T    21K  legacy
rpool
/ROOT/10u9x86      3.25G  1.73T  2.37G  /
rpool/ROOT/10u9x86/var   904M  1.73T   904M  /var
rpool/dump              3.50G  1.73T  3.50G  -
rpool/export             123K  1.73T    23K  /export
rpool
/export/home        100K  1.73T   100K  /export/home
rpool
/shared            6.59G   193G  6.59G  /zones/shared
rpool
/sol109b           4.91G  15.1G  4.91G  /zones/solar109b/base
rpool
/sol109bdata        582M  49.4G   582M  /zones/solar109b/data
rpool
/sol109bobin       4.33G  35.7G  4.33G  /zones/solar109b/orabin
rpool
/sol109g           2.59G  17.4G  2.59G  /zones/solar109g/base 
So i created two new filesystems with the correct mountpoints and quotas:

PHP Code:
# zfs list
NAME                     USED  AVAIL  REFER  MOUNTPOINT
rpool                    224G  1.73T    31K  
/rpool
rpool
/ROOT              3.25G  1.73T    21K  legacy
rpool
/ROOT/10u9x86      3.25G  1.73T  2.37G  /
rpool/ROOT/10u9x86/var   904M  1.73T   904M  /var
rpool/dump              3.50G  1.73T  3.50G  -
rpool/export             123K  1.73T    23K  /export
rpool
/export/home        100K  1.73T   100K  /export/home
rpool
/shared            6.59G   193G  6.59G  /zones/shared
rpool
/sol109b           4.91G  15.1G  4.91G  /zones/solar109b/base
rpool
/sol109bdata        582M  49.4G   582M  /zones/solar109b/data
rpool
/sol109bobin       4.33G  35.7G  4.33G  /zones/solar109b/orabin
rpool
/sol109g           2.59G  17.4G  2.59G  /zones/solar109g/base
rpool
/sol109gdata         31K   100G    31K  /zones/solar109g/data
rpool
/sol109gobin         31K   100G    31K  /zones/solar109g/orabin 
Now when i login in to the zone solar109g with the new filesystem, i cant see them with a df -k

PHP Code:
root@solar109g : /
# df -h
Filesystem             Size   Used  Available Capacity  Mounted on
/                       20G   2.6G        17G    13%    /
/
dev                    20G   2.6G        17G    13%    /dev
/shared                200G   6.6G       193G     4%    /shared
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                   8.7G   284K       8.7G     1
%    /etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
                        20G   2.6G        17G    13
%    /lib/libc.so.1
fd                       0K     0K         0K     0
%    /dev/fd
swap                   8.7G     4K       8.7G     1
%    /tmp
swap                   8.7G    20K       8.7G     1
%    /var/run 
It should look like that:

PHP Code:
root@solar109b : /
 
# df -h
Filesystem             Size   Used  Available Capacity  Mounted on
/                       20G   4.9G        15G    25%    /
/
data                   50G   582M        49G     2%    /data
/dev                    20G   4.9G        15G    25%    /dev
/orabin                 40G   4.3G        36G    11%    /orabin
/shared                200G   6.6G       193G     4%    /shared
/var/tmp               100G    33G        67G    33%    /var/tmp
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                   8.6G   284K       8.6G     1
%    /etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
                        20G   4.9G        15G    25
%    /lib/libc.so.1
fd                       0K     0K         0K     0
%    /dev/fd
swap                   8.6G    36K       8.6G     1
%    /tmp
swap                   8.6G    20K       8.6G     1
%    /var/run 
Can anybody help me, i' m,doing my first steps with ZFS and i m a little confused right now ... Smilie

thnxs in advance
# 2  
Old 06-14-2012
This User Gave Thanks to bartus11 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

Date and time change in global and non global zone

Hi, If I change date and time in global zone, then it will affect in non global zones. During this process what files will get affect in non global zones and which mechanism it's using to change. gloabl zone:Solaris 11.3 X86 TIA (1 Reply)
Discussion started by: Sumanthsv
1 Replies

3. Solaris

Global and non-global zone resource sharing - tricky

hi all, Just a simple question but i cant get the answers in the book - In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies

4. Solaris

ZFS does not release space even after deleting application log files in a non-global zone

Hi Guys, I have a non-global zone in which has apache application on it. There is a ZFS filesystem where the app saves the log. Even after deleting the logfiles I dont see the space being freed up. There are no snapshots or anything at all Zpool info NAME SIZE ALLOC FREE CAP HEALTH ALTROOT... (8 Replies)
Discussion started by: RDX
8 Replies

5. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

6. Solaris

How to access ENV variables of non global zones in global zone???

Hi Guys, My requirement is I have file called /opt/orahome/.profile in non global zone. PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:. export PATH PS1="\${ORACLE_SID}:`hostname`:\$PWD$ " export PS1 EDITOR=vi export EDITOR ENV=/opt/orahome/.kshrc export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies

7. Solaris

[b]How to mount a folder from global zone to non global zone??

Hi All There is one folder in global zone I just want to share the same folder innon global zone. How can i do it? pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies

8. Solaris

Adding multiple virtual interfaces on a non global zone.

Hello All, I have a requirement to add multiple virtual interfaces on a non-global zone (Solaris 10). The global zone is a 2 node Veritas Cluster Server. So, my question is do we have to make any modifications to the cluster config (which I think should not be the case)? Can anyone help with me... (11 Replies)
Discussion started by: mahive
11 Replies

9. Solaris

Adding and removing ZFS filesystems in Zones

I have a Solaris 10 container that is running on ZFS filesystems being presented from the Global Zone. I have a filesystem presented to the Local zone and my user wants me to remove it. It there any way I can remove this while the zone is running? I tried unmounting it from the local zone... (0 Replies)
Discussion started by: BG_JrAdmin
0 Replies
Login or Register to Ask a Question