Zone failes to boot due to mount issue, dir exists in zone.


 
Thread Tools Search this Thread
Operating Systems Solaris Zone failes to boot due to mount issue, dir exists in zone.
# 1  
Old 12-07-2011
Zone failes to boot due to mount issue, dir exists in zone.

I have two physical servers, with zones that mount local storage.

We were using "raw device" in the zonecfg to point to a metadevice on the global zone (it was not mounted in the global zone at any point).

It failed to mount on every boot because the directory existed in the zone.

I changed it to a lofs mount, so at that point it is mounted in the global zone and being shared.

I still get the same error, I have to delete the directory in the zone prior to booting the zone in order to mount, or for the zone to even boot. It fails cause the directory exists, and the zone will not boot when the physical server reboots...

Has anyone een this before? I'm stumped, I dont want to have to make a script that deletes the directory.
# 2  
Old 12-07-2011
Can you post output of:
Code:
zonecfg -z zone_in_question export

# 3  
Old 12-07-2011
The filesystem type is UFS

Code:
create -b
set zonepath=/Zone/#zonename3
set autoboot=true
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 fs
set dir=/var/syslog
set special=/Zone/ZONE_MOUNTS/#zonename#_var_syslog
set type=lofs
end
add net
set address=10.xx.xx.xx
set physical=aggr1
end

---------- Post updated at 02:51 PM ---------- Previous update was at 02:27 PM ----------

Do you think it has anything to do with the fact that I have "create -b" but it is a sparse root zone? I just noticed that myself...

Last edited by BG_JrAdmin; 12-07-2011 at 03:28 PM.. Reason: Added info
# 4  
Old 12-07-2011
And what does this show when zone is halted:
Code:
ls -la /Zone/#zonename3/root/var/syslog

# 5  
Old 12-07-2011
Config seems be little bit strange. If you used
Code:
create -b

why are presented inherited directories???
Anyway if you are approaching metadevice from inside of local zone it should be accessed as raw device (but this is not rule). If you are using lofs see config example below.

Code:
global# newfs /dev/rdsk/c1t0d0s0
global# mount /dev/dsk/c1t0d0s0 /mystuff
global# zonecfg -z my-zone
zonecfg:my-zone> add fs
zonecfg:my-zone:fs> set dir=/usr/mystuff
zonecfg:my-zone:fs> set special=/mystuff
zonecfg:my-zone:fs> set type=lofs
zonecfg:my-zone:fs> end

Can I ask about hashes in output?? They are replacing something what shouldn't be visible on public??
# 6  
Old 12-07-2011
<server> 89 # ls -al //Zone/zonename/root/var/syslog
total 4
drwxr-xr-x 2 root root 512 Nov 30 15:26 .
drwxr-xr-x 48 root sys 1024 Nov 30 15:26 ..
<zonename> 90 #

---------- Post updated at 09:02 PM ---------- Previous update was at 09:01 PM ----------

That would be correct, I have to filter server names and IP addresses. Hence the hashes.

---------- Post updated at 09:04 PM ---------- Previous update was at 09:02 PM ----------

And ya, don't even go there, i hate sparse root zones.

---------- Post updated at 09:08 PM ---------- Previous update was at 09:04 PM ----------

Figured out something else, the zone boot only fails if I reboot the global zone.
this is quite mysterious.
# 7  
Old 12-08-2011
OK, try this then:
1. Set autoboot to false
Code:
zonecfg -z zonename set autoboot=false

2. Boot up the zone (or leave it running if it is already up)
3. Reboot global zone
4. After the global zone is up again, run:
Code:
ls -al /Zone/zonename/root/var/syslog

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. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

3. Solaris

Scripting changes to multiple zone configurations in the same Global Zone

So this is Solaris 11.1. I have a Global zone that has several non-global zones running in it. I want to change the capped-memory.physical resources setting in ALL the zone configs of the running zones. if I were to do this manually here's what I would do: zonecfg -z zone1 select... (2 Replies)
Discussion started by: os2mac
2 Replies

4. 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

5. Solaris

how to add a default gateway in a zone of different VLAN of global zone

Hi Greetings... I have an issue in connecting the zone from outside the network and it is because of default gateway. I can ping default gateway from inside the zone and not able to ping from global zone due to different VLAN issue. If i add two different gateways and restart network services,... (2 Replies)
Discussion started by: vvpotugunta
2 Replies

6. 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

7. Solaris

set dir in zone fs type

Hi all, what is the meaning and what all value we can pass to set dir= in zone fs type when we are configuring whole-root zone? Thanks (3 Replies)
Discussion started by: kumarmani
3 Replies

8. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies

9. Solaris

Bind zone transfer recategorises zone file?

Hi, I have a primary/slave Bind 9 setup running on a Solaris 10 platform. Everything is hunky dorey, except for when I make a zone file change and up the serial the file that is transferred to the slave looses all its comments, and the entries are place in alphabetical order. I administer many... (1 Reply)
Discussion started by: fulhamfcboy
1 Replies
Login or Register to Ask a Question