> > Hi Venkat
> > 
> > the sczbt does not do anything with the zfs file
> systems.
> 
> Hi Detlef,
> 
> Who will mount the root file system for the sczbt?
>  The root file system is a
> egacy file system and will *not* get mounted
> automatically during the pool import.
> 
> > The only way 
> > you got something in between is if the shutdown of
> the zone  or the 
> > zoneadm halt itself is performing the umounts, and
> messing up with HASP 
> > because due to a misconfiguration they try to
> access the same file systems.
> 
> I know the zoneadm halt is synchronous in the sense
> all the file system under
> its root are unmounted.
> Here the issue with the file system that is served as
> root for the zone. I
> think the zoneadm will not unmount the root file
> system during zone halt.
> 
> So we need to figure who is issuing the zfs unmount
> on root file system of zone.
> 
> Tundra,
> Can you track who forked the zfs executable during
> switchover? I think you can
> add "ppid" to your script to get that information.
> 
> Thanks
> -Venku

I'm going to need some help constructing my DTrace script - as I mentioned, 
this is my first stab at using DTrace, so I'm not really sure what I'm doing 
with it.

I added ppid and a section trying to look at who is starting the various 
programs in the log, but I'm missing something because I'm not seeing what 
program does the exec to start zfs

----Start of REVISED umount2.d----
#!/usr/sbin/dtrace -qs

string started_program;

syscall::umount2:entry
{
  printf("time:%d\t", timestamp);
  printf("umount2-execname:%s\t",execname);
  printf("mountpoint:%s\t", copyinstr(arg0, 240));
  printf("flag:%d\t", arg1);
  printf("PID:%d\t", pid);
  printf("ParentPID:%d\t", ppid);
  printf("\n");
}
syscall::umount2:return
{
  printf("time:%d\t", timestamp);
  printf("umount2-execname:%s\t",execname);
  printf("return arg0:%d\t", arg0);
  printf("PID:%d\t", pid);
  printf("ParentPID:%d\t", ppid);
  printf("\n");
}
syscall::exec*:entry
/ ((this->started_program = copyinstr(arg0, 240)) == "/usr/sbin/zfs") ||
  (this->started_program == "/usr/sbin/zoneadm") ||
  (this->started_program == 
"/usr/cluster/lib/rgm/rt/hastorageplus/hastorageplus_postnet_stop") /
{
  printf("time:%d\t", timestamp);
  printf("exec-execname:%s\t",execname);
  printf("target:%s\t", this->started_program);
  printf("PID:%d\t", pid);
  printf("ParentPID:%d\t", ppid);
  printf("\n");
}
----End of REVISED umount2.d----

Including just a failure log (sorted by timestamp this time):

time:149397254739288    exec-execname:ksh93     target:/usr/sbin/zoneadm        
PID:20739       ParentPID:20738 
time:149399316859412    umount2-execname:syslogd        
mountpoint:/var/run/syslog_door flag:0  PID:6203        ParentPID:1     
time:149399320588962    umount2-execname:syslogd        return arg0:0   
PID:6203        ParentPID:1     
time:149401287339095    exec-execname:ksh93     target:/usr/sbin/zoneadm        
PID:20761       ParentPID:20760 
time:149401849838885    umount2-execname:umount mountpoint:/net flag:0  
PID:20771       ParentPID:20769 
time:149401849851517    umount2-execname:umount mountpoint:/home        flag:0  
PID:20770       ParentPID:20769 
time:149401854276539    umount2-execname:umount return arg0:0   PID:20771       
ParentPID:20769 
time:149401855233193    umount2-execname:umount return arg0:0   PID:20770       
ParentPID:20769 
time:149403874891784    umount2-execname:kcfd   
mountpoint:/etc/svc/volatile/kcfd_door  flag:0  PID:6033        ParentPID:1     
time:149403878544282    umount2-execname:kcfd   return arg0:0   PID:6033        
ParentPID:1     
time:149405336848083    exec-execname:ksh93     target:/usr/sbin/zoneadm        
PID:20803       ParentPID:20802 
time:149408984278615    umount2-execname:umount mountpoint:/lib/libc.so.1       
flag:0  PID:20820       ParentPID:20816 
time:149408987598301    umount2-execname:umount return arg0:0   PID:20820       
ParentPID:20816 
time:149409366863004    exec-execname:ksh93     target:/usr/sbin/zoneadm        
PID:20824       ParentPID:20823 
time:149409783190659    umount2-execname:umount mountpoint:/usr flag:0  
PID:20822       ParentPID:6009  
time:149409783205794    umount2-execname:umount return arg0:-1  PID:20822       
ParentPID:6009  
time:149409783213983    umount2-execname:umount mountpoint:/usr flag:0  
PID:20822       ParentPID:6009  
time:149409783221259    umount2-execname:umount return arg0:-1  PID:20822       
ParentPID:6009  
time:149410978263254    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/var/run/name_service_door flag:0  
PID:5912        ParentPID:1     
time:149410981769515    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149410981786802    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/var/run/ldap_cache_door   flag:0  
PID:5912        ParentPID:1     
time:149410984764114    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149410984777791    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/var/run   flag:0  PID:5912        
ParentPID:1     
time:149410987662969    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149410987676059    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/tmp       flag:0  PID:5912        
ParentPID:1     
time:149410991645538    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149410991782208    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/dev/fd    flag:0  PID:5912        
ParentPID:1     
time:149410995432606    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149410995448600    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/etc/svc/volatile/repository_door  flag:0  
PID:5912        ParentPID:1     
time:149410998128183    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149410998139957    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/etc/svc/volatile  flag:0  PID:5912        
ParentPID:1     
time:149411061062182    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149411061075332    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/system/object     flag:0  PID:5912        
ParentPID:1     
time:149411064447190    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149411064459497    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/etc/mnttab        flag:0  PID:5912        
ParentPID:1     
time:149411067241134    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149411067254056    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/system/contract   flag:0  PID:5912        
ParentPID:1     
time:149411069896411    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149411069908796    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/proc      flag:0  PID:5912        
ParentPID:1     
time:149411072487502    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149411072498136    umount2-execname:zoneadmd       
mountpoint:/smb1_pool0/smb1_zone/root/dev       flag:0  PID:5912        
ParentPID:1     
time:149411075107425    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1     
time:149411247661511    umount2-execname:zfs    
mountpoint:/smb1_pool0/smb1_zone/root   flag:0  PID:20852       ParentPID:20839 
time:149413397362598    exec-execname:ksh93     target:/usr/sbin/zoneadm        
PID:20854       ParentPID:20853 
time:149414579775231    exec-execname:rpc.fed   
target:/usr/cluster/lib/rgm/rt/hastorageplus/hastorageplus_postnet_stop 
PID:20865       ParentPID:1124  
time:149414774330381    umount2-execname:hastorageplus_po       
mountpoint:/smb1_pool0/smb1_zone/root   flag:1024       PID:20865       
ParentPID:1124  
time:149419071388363    umount2-execname:zfs    return arg0:0   PID:20852       
ParentPID:20839 
time:149419071421905    umount2-execname:hastorageplus_po       return arg0:-1  
PID:20865       ParentPID:1124  
time:149419144959694    umount2-execname:zoneadmd       
mountpoint:/var/run/zones/smb1.zoneadmd_door    flag:0  PID:5912        
ParentPID:1     
time:149419148960818    umount2-execname:zoneadmd       return arg0:0   
PID:5912        ParentPID:1
-- 
This message posted from opensolaris.org

Reply via email to