>From: Youzhong Yang [mailto:[email protected]] 
>Sent: 星期三, 一月 27, 2016 11:41
>To: Fred Liu
>Cc: Richard Elling; [email protected]; illumos-developer
>Subject: Re: [developer] [smartos-discuss] Is zfs dead man timer tunable?

>       -d
>                      Disregard dump header valid flag. Force savecore to
>                      attempt to save a crash dump even if the header
>                      information stored on the dump device indicates the dump
>                      has already been saved.

It works well this time. Thank you, Youzhong!

[root@pluto ~]# savecore -vd /zones/debug
savecore: System dump time: Mon Jan 25 19:24:52 2016

savecore: Saving compressed system crash dump in /zones/debug/vmdump.0
savecore: Copying /dev/zvol/dsk/zones/dump to /zones/debug/vmdump.0

savecore: Decompress the crash dump with 
'savecore -vf /zones/debug/vmdump.0'
0:05 dump copy is done
[root@pluto ~]# cd /zones/debug
[root@pluto /zones/debug]# ls
bounds       METRICS.csv  vmdump.0
[root@pluto /zones/debug]# ls -la
total 4818248
drwxr-xr-x   2 root     root           5 Jan 27 13:17 .
drwxr-xr-x  16 root     root          19 Jan 25 19:21 ..
-rw-r--r--   1 root     root           2 Jan 27 13:17 bounds
-rw-r--r--   1 root     root        1058 Jan 27 13:17 METRICS.csv
-rw-r--r--   1 root     root     4305518592 Jan 27 13:17 vmdump.0
[root@pluto /zones/debug]# du -sh *
   9K   bounds
   9K   METRICS.csv
 2.3G   vmdump.0
 [root@pluto /zones/debug]# savecore -d -vf vmdump.0 .
savecore: System dump time: Mon Jan 25 19:24:52 2016

savecore: saving system crash dump in ./{unix,vmcore}.0
Constructing namelist ./unix.0
Constructing corefile ./vmcore.0
 1:11 100% done: 6186530 of 6186530 pages saved
86613 (1%) zero pages were not written
1:11 dump decompress is done
[root@pluto /zones/debug]# ls -la
total 15270811
drwxr-xr-x   2 root     root           7 Jan 27 13:20 .
drwxr-xr-x  16 root     root          19 Jan 25 19:21 ..
-rw-r--r--   1 root     root           2 Jan 27 13:17 bounds
-rw-r--r--   1 root     root        1233 Jan 27 13:21 METRICS.csv
-rw-r--r--   1 root     root     2086628 Jan 27 13:20 unix.0
-rw-r--r--   1 root     root     25727160320 Jan 27 13:21 vmcore.0
-rw-r--r--   1 root     root     4305518592 Jan 27 13:17 vmdump.0
[root@pluto /zones/debug]# du -sh *
   9K   bounds
   9K   METRICS.csv
 1.1M   unix.0
 5.0G   vmcore.0
 2.3G   vmdump.0
 [root@pluto /zones/debug]# mdb -k unix.0 vmcore.0
mdb: failed to read panicbuf and panic_reg -- current register set will be 
unavailable
Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc apix 
scsi_vhci ufs ip hook neti sockfs arp usba stmf_sbd stmf zfs mm sd lofs idm 
sata crypto random cpc logindmux ptm kvm sppp nsmb smbsrv nfs ipc ]
> ::zio_state
 ADDRESS                 TYPE  STAGE            WAITER           TIME_ELAPSED
             fffff0857784d8e8        NULL  OPEN             -                -
             fffff0857791f1a8        NULL  OPEN             -                -
 
 Thanks.
 
 Fred
 
 Thanks.
 
 Fred
 


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to