Strange behavior of zone after reboot


 
Thread Tools Search this Thread
Operating Systems Solaris Strange behavior of zone after reboot
# 1  
Old 09-25-2011
Strange behavior of zone after reboot

Hi All,

I have Solaris-10 M4000 server with VxVM file-system and 7 zones. I rebooted the server and after that one of the zone shows me in running state, but after zlogin, it is showing no df and other output. It is also throwing lot of core dumps
Code:
# uname -a
SunOS tssoaq01-ztbgps17 5.10 Generic_138888-08 sun4u sparc SUNW,SPARC-Enterprise
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
nxge2: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
        inet 10.63.72.127 netmask fffffc00 broadcast 10.63.75.255
        ether 0:21:28:1d:89:d2
# df -h
# pwd
/var/core
# ls
core_tssoaq01-ztbgps17_quota_0_0_1316969802_8306   core_tssoaq01-ztbgps17_touch_0_0_1316969960_10293
core_tssoaq01-ztbgps17_touch_0_0_1316969803_8349   core_tssoaq01-ztbgps17_touch_0_0_1316970010_10490
core_tssoaq01-ztbgps17_touch_0_0_1316969803_8371   core_tssoaq01-ztbgps17_touch_0_0_1316970059_10687
core_tssoaq01-ztbgps17_touch_0_0_1316969804_8396   core_tssoaq01-ztbgps17_touch_0_0_1316970108_10936
core_tssoaq01-ztbgps17_touch_0_0_1316969812_9390   core_tssoaq01-ztbgps17_touch_0_0_1316970157_12107
core_tssoaq01-ztbgps17_touch_0_0_1316969862_9884   core_tssoaq01-ztbgps17_touch_0_0_1316970207_12290
core_tssoaq01-ztbgps17_touch_0_0_1316969911_10106  core_tssoaq01-ztbgps17_touch_0_0_1316970256_12475
# df -h / /var
df: Could not find mount point for /
df: Could not find mount point for /var
# df -h .
df: Could not find mount point for .
#

On Global server :-
Code:
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   1 tssoaq01-zwfsr01 running    /zone/tssoaq01-zwfsr01         native   shared
   2 tssoaq01-zwpsq01 running    /zone/tssoaq01-zwpsq01         native   shared
   3 tssoaq01-zwpsr01 running    /zone/tssoaq01-zwpsr01         native   shared
   4 tssoaq01-zwfsq01 running    /zone/tssoaq01-zwfsq01         native   shared
   5 tssoaq01-zwfsq02 running    /zone/tssoaq01-zwfsq02         native   shared
   7 tssoaq01-zwfsr02 running    /zone/tssoaq01-zwfsr02         native   shared
   8 tssoaq01-ztbgps17 running    /zone/tssoaq01-ztbgps17        native   excl

Affected zone is tssoaq01-ztbgps17. Can somebody give a clue ? Reboot of zone and even physical server didn't helped.
# 2  
Old 09-25-2011
check the configuration of the zone... the filesystem mount points for the zone should be the problem.
# 3  
Old 09-25-2011
Zonepath or mount points are not the problem. I ran fsck and they are clean. I can login to zone and can see the size of directories, but commands are working wiered
Code:
# touch /var/adm/test
Bad System Call - core dumped
# ls -l /var/adm/test
-rw-r--r--   1 root     root           0 Sep 25 11:06 /var/adm/test
# df -h .
df: Could not find mount point for .
# df -h /
df: Could not find mount point for /
#

# 4  
Old 09-25-2011
You can check from the global zone what filesystems are mounted in that zone.

Code:
 
df -Z | grep <zonename>

Also, can you check the services output in that zone, whether all the services are ok or not.

Code:
 
svcs -xv

Regards,
Vishal
# 5  
Old 09-25-2011
Hi Vishal,

Correct file-systems are entered in zonezfg.
Code:
root@tssoaq01:/# df -Z | grep tssoaq01-ztbgps17
df: cannot statvfs /zone/tssoaq01-zwpsq01/root/ddoa-events: Not owner
df: cannot statvfs /zone/tssoaq01-zwpsq01/root/wps/env/profiles/WPSSimms01/tranlog: Not owner
df: cannot statvfs /zone/tssoaq01-zwpsr01/root/wps/env/profiles/WPSSimms01/tranlog: Not owner
/dev/vx/dsk/dg-ztbgps17/vl-ztbgps17-root 8388608 5807023 2421910    71%    /zone/tssoaq01-ztbgps17
/dev/vx/dsk/dg-ztbgps17-app/vl-ztbgps17-app 10485760 5376866 4789844    53%    /zone/tssoaq01-ztbgps17/tbg
/dev/vx/dsk/dg-ztbgps17-app/vl-ztbgps17-app-log 12582912   27512 11770689     1%    /zone/tssoaq01-ztbgps17/log
root@tssoaq01:/# zonecfg -z tssoaq01-ztbgps17 info
zonename: tssoaq01-ztbgps17
zonepath: /zone/tssoaq01-ztbgps17
brand: native
autoboot: true
bootargs:
pool: tbg-2cpu-pool
limitpriv:
scheduling-class:
ip-type: exclusive
fs:
        dir: /tbg
        special: /zone/tssoaq01-ztbgps17/tbg
        raw not specified
        type: lofs
        options: []
fs:
        dir: /var/log/smlog
        special: /zone/tssoaq01-ztbgps17/log
        raw not specified
        type: lofs
        options: []
net:
        address: 10.63.72.127
        physical: nxge2
        defrouter not specified
capped-memory:
        physical: 8G
root@tssoaq01:/#

Services are also up inside zone, except few ones which are not relevent. But I do not know, what is this "Not owner" in my output. Don't know, if this is relevent.
Code:
root@tssoaq01:/zone/tssoaq01-zwpsq01/root/wps/env/profiles/WPSSimms01# ls -l
./tranlog: Not owner
total 28
drwxrwxr-x   3 wpsadmin 512

# 6  
Old 09-26-2011
maybe the answer to your problems is in your post...

Quote:
Originally Posted by solaris_1977
Code:
root@tssoaq01:/# df -Z | grep tssoaq01-ztbgps17
df: cannot statvfs /zone/tssoaq01-zwpsq01/root/ddoa-events: Not owner
df: cannot statvfs /zone/tssoaq01-zwpsq01/root/wps/env/profiles/WPSSimms01/tranlog: Not owner
df: cannot statvfs /zone/tssoaq01-zwpsr01/root/wps/env/profiles/WPSSimms01/tranlog: Not owner
/dev/vx/dsk/dg-ztbgps17/vl-ztbgps17-root 8388608 5807023 2421910    71%    /zone/tssoaq01-ztbgps17
/dev/vx/dsk/dg-ztbgps17-app/vl-ztbgps17-app 10485760 5376866 4789844    53%    /zone/tssoaq01-ztbgps17/tbg
/dev/vx/dsk/dg-ztbgps17-app/vl-ztbgps17-app-log 12582912   27512 11770689     1%    /zone/tssoaq01-ztbgps17/log
root@tssoaq01:/# zonecfg -z tssoaq01-ztbgps17 info
zonename: tssoaq01-ztbgps17
zonepath: /zone/tssoaq01-ztbgps17
brand: native
...
root@tssoaq01:/#

# 7  
Old 09-26-2011
These not owner entries are for tssoaq01-zwpsq01 zone, so no worries, the zone in question is tssoaq01-ztbgps17.

df: cannot statvfs /zone/tssoaq01-zwpsq01/root/ddoa-events: Not owner
df: cannot statvfs /zone/tssoaq01-zwpsq01/root/wps/env/profiles/WPSSimms01/tranlog: Not owner
df: cannot statvfs /zone/tssoaq01-zwpsr01/root/wps/env/profiles/WPSSimms01/tranlog: Not owner


I get these "not owner" with df -Z when I have nfs mounts in a zone.

But it is clear that you don't have any lofs mount in your zone, there is some problem.

Can you try a manual lofs mount to this zone and see what it does.

Code:
mount -F lofs /zone/tssoaq01-ztbgps17/tbg /zone/tssoaq01-ztbgps17/root/tbg

Regards,
Vishal
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Strange Ctrl+C behavior

Hello All, I have a strange issue. I've created a shell script which connects to RMAN (Oracle Recovery Manager) and executes full DB backup. I then executed this script with nohup and in the background: $ nohup my_script.sh > logfile.log 2>&1 &The issue is that when I tried to take a look into... (6 Replies)
Discussion started by: JackK
6 Replies

2. Shell Programming and Scripting

Strange behavior of grep

Hi All, I am facing a strange problem while grepping for a process. Here is the small script that i have written. It will look for any process running with the parameter passed to the script. If no process is running it should print appropriate message. $ cat t.ksh #!/bin/ksh set -x ... (9 Replies)
Discussion started by: veeresh_15
9 Replies

3. AIX

Strange behavior with tar

I am trying to create an archive using tar. I am specifying a list of directories using the -L option. For testing purposes I created a simple directory structure: /backup/test /backup/test/test1 /backup/test/test2 The file specified by the -L option, named files.txt, contains:... (8 Replies)
Discussion started by: judykstra
8 Replies

4. Shell Programming and Scripting

Strange behavior on one of my server

I am not sure what is wrong, but I have some strange behavior when printing things out. I do create a file with only one word test, no space, no new line etc. nano file<enter> test<ctrl x>y<enter> Server 1 gets (fail) awk '{print "+"$0"*"}' file *test Server 2 gets (OK) awk '{print... (9 Replies)
Discussion started by: Jotne
9 Replies

5. Solaris

Can i reboot a zone when i logged in the zone

I am curious to know if I can reboot a zone while I was inside the zone itself. By doing so can I know what happens to the zone and what are the pros and cons. Is it recommended or not? Is that zone will properly shuts down; :confused::confused::confused: (7 Replies)
Discussion started by: srinivas1049
7 Replies

6. Red Hat

strange mail behavior

Hi I have script to to take backup and send mail to a group once a day. One strange behavior I have observed recently is that most of the time the mail we receive is fine . But someday it just sends out mail without any subject with undisclosed recipients. I dont know how to find the cause... (0 Replies)
Discussion started by: ningy
0 Replies

7. Ubuntu

Ubuntu strange behavior

It is so till login screen. I mean that when I boot my computer, Ubuntu shows a splash screen with mouse instead of Ubuntu logo and in the login screen it shows XUbuntu login screen... It began when I upgraded to previous kernel, I suppose, but I'm not sure... I can't say that it annoys me very... (6 Replies)
Discussion started by: Sapfeer
6 Replies

8. Programming

Strange behavior in C++

I have the following program: int main(int argc, char** argv){ unsigned long int mean=0; for(int i=1;i<10;i++){ mean+=poisson(12); cout<<mean<<endl; } cout<<"Sum of poisson: "<< mean; return 0; } when I run it, I get the... (4 Replies)
Discussion started by: santiagorf
4 Replies

9. UNIX for Dummies Questions & Answers

Strange Behavior on COM2

Hi, I have a problem with a new touch screen controller that I am trying to use on a SCO 3.0 system. THe touch screen controller only wants to talk at 9600baud. I have updated /etc/inittab per the manual and also edited /usr/lib/event/devices to use 9600 baud. The only way I can get the... (0 Replies)
Discussion started by: Elwood51
0 Replies

10. UNIX for Dummies Questions & Answers

strange sed behavior

I have a file called products.kp which contains, for example, 12345678,1^M 87654321,2^M 13579123,3 when I run the command cat products.kp| sed -f kp.sed where kp.sed contains s,^M,, I get the output 12345678,1 87654321,2 13579123,3 (5 Replies)
Discussion started by: Kevin Pryke
5 Replies
Login or Register to Ask a Question