2016年12月17日
Tweet
QNAP を管理していると、ログファイルがいまいちよくわかりません。ということで調べてみたところ、以下の場所にあるようです。
/var/log
/mnt/HDA_ROOT/.logs/
特に、kmsg については、dmesg と同じ内容なので、とても参考になります。
[/var/log] # ll
drwxr-xr-x 5 admin administ 400 Dec 31 12:08 ./
drwxrwxrwx 10 admin administ 580 Dec 31 13:43 ../
drwx------ 4 admin administ 80 Dec 31 11:55 cores/
drwxr-xr-x 2 admin guest 100 Dec 31 11:55 cups/
-rw-r--r-- 1 admin administ 2.1k Dec 31 11:56 hal_app.log
-r-Sr-S--t 1 admin administ 3.2k Dec 31 13:10 hal_daemon.log*
-rw-r--r-- 1 admin administ 1.3k Dec 31 12:08 hal_lib.log
-rw-r--r-- 1 admin administ 10.0k Dec 31 12:08 hal_lib.log.bak
-rw-r--r-- 1 admin administ 1.8k Dec 31 12:00 hal_util_net.log
-rw-r--r-- 1 admin administ 2.4k Dec 31 11:55 log.nmbd
-rw-r--r-- 1 admin administ 139 Dec 31 11:55 log.smbd
-rw-r--r-- 1 admin administ 0 Dec 31 11:56 mcelog
-rw-r--r-- 1 admin administ 0 Dec 31 11:56 messages
-rw-r--r-- 1 admin administ 40 Dec 31 12:05 mytranscodecmd.log
-rw-r--r-- 1 admin administ 0 Dec 31 12:05 mytranscodecmd.log.bak
drwxr-xr-x 2 admin administ 100 Dec 31 11:56 network/
-rw------- 1 admin administ 230 Dec 31 11:55 php-fpm.log
lrwxrwxrwx 1 admin administ 20 Dec 31 2016 samba -> /usr/local/samba/var/
-rw-r--r-- 1 admin administ 311.7k Dec 31 13:52 storage_lib.log
-rw-r--r-- 1 admin administ 789 Dec 31 11:53 storage_util.log
[/mnt/HDA_ROOT/.logs] # ll
drwxr-xr-x 4 admin administ 4.0k Dec 31 12:08 ./
drwxr-xr-x 9 admin administ 4.0k Dec 31 12:00 ../
drwxrwxrwx 2 admin administ 4.0k Aug 13 2015 .qsync_log_queue/
-rw-r--r-- 1 admin administ 24.0k Aug 31 2012 conn.log
-rw-r--r-- 1 admin administ 688.0k Dec 31 12:08 event.log
-rw-r--r-- 1 admin administ 80.9k Dec 31 12:00 kmsg
-rw-r--r-- 1 admin administ 663.3k Dec 31 11:55 kmsg.1
-rw-r--r-- 1 admin administ 1.0M Aug 13 2015 kmsg.2
-rw-r--r-- 1 admin administ 50 Dec 31 11:55 kmsg_time
-rw-r--r-- 1 admin administ 48.0k Dec 31 11:56 notice.log
-rw-r--r-- 1 admin administ 18.0k Aug 31 2012 nvrlog.log
-rw------- 1 admin administ 287 Dec 31 11:55 porter.log
-rw------- 1 admin administ 4.3k Dec 31 11:55 qid.log
drwx------ 2 admin administ 4.0k Dec 31 11:55 qsync/
-rw-r--r-- 1 admin administ 10.0k Aug 13 2015 qsync_device.db
-rw-r--r-- 1 admin administ 30.5k Dec 31 11:52 qsys.log
-rw-r--r-- 1 admin administ 30.3k Dec 31 11:44 qsys.log.1
/var/log
/mnt/HDA_ROOT/.logs/
特に、kmsg については、dmesg と同じ内容なので、とても参考になります。
[/var/log] # ll
drwxr-xr-x 5 admin administ 400 Dec 31 12:08 ./
drwxrwxrwx 10 admin administ 580 Dec 31 13:43 ../
drwx------ 4 admin administ 80 Dec 31 11:55 cores/
drwxr-xr-x 2 admin guest 100 Dec 31 11:55 cups/
-rw-r--r-- 1 admin administ 2.1k Dec 31 11:56 hal_app.log
-r-Sr-S--t 1 admin administ 3.2k Dec 31 13:10 hal_daemon.log*
-rw-r--r-- 1 admin administ 1.3k Dec 31 12:08 hal_lib.log
-rw-r--r-- 1 admin administ 10.0k Dec 31 12:08 hal_lib.log.bak
-rw-r--r-- 1 admin administ 1.8k Dec 31 12:00 hal_util_net.log
-rw-r--r-- 1 admin administ 2.4k Dec 31 11:55 log.nmbd
-rw-r--r-- 1 admin administ 139 Dec 31 11:55 log.smbd
-rw-r--r-- 1 admin administ 0 Dec 31 11:56 mcelog
-rw-r--r-- 1 admin administ 0 Dec 31 11:56 messages
-rw-r--r-- 1 admin administ 40 Dec 31 12:05 mytranscodecmd.log
-rw-r--r-- 1 admin administ 0 Dec 31 12:05 mytranscodecmd.log.bak
drwxr-xr-x 2 admin administ 100 Dec 31 11:56 network/
-rw------- 1 admin administ 230 Dec 31 11:55 php-fpm.log
lrwxrwxrwx 1 admin administ 20 Dec 31 2016 samba -> /usr/local/samba/var/
-rw-r--r-- 1 admin administ 311.7k Dec 31 13:52 storage_lib.log
-rw-r--r-- 1 admin administ 789 Dec 31 11:53 storage_util.log
[/mnt/HDA_ROOT/.logs] # ll
drwxr-xr-x 4 admin administ 4.0k Dec 31 12:08 ./
drwxr-xr-x 9 admin administ 4.0k Dec 31 12:00 ../
drwxrwxrwx 2 admin administ 4.0k Aug 13 2015 .qsync_log_queue/
-rw-r--r-- 1 admin administ 24.0k Aug 31 2012 conn.log
-rw-r--r-- 1 admin administ 688.0k Dec 31 12:08 event.log
-rw-r--r-- 1 admin administ 80.9k Dec 31 12:00 kmsg
-rw-r--r-- 1 admin administ 663.3k Dec 31 11:55 kmsg.1
-rw-r--r-- 1 admin administ 1.0M Aug 13 2015 kmsg.2
-rw-r--r-- 1 admin administ 50 Dec 31 11:55 kmsg_time
-rw-r--r-- 1 admin administ 48.0k Dec 31 11:56 notice.log
-rw-r--r-- 1 admin administ 18.0k Aug 31 2012 nvrlog.log
-rw------- 1 admin administ 287 Dec 31 11:55 porter.log
-rw------- 1 admin administ 4.3k Dec 31 11:55 qid.log
drwx------ 2 admin administ 4.0k Dec 31 11:55 qsync/
-rw-r--r-- 1 admin administ 10.0k Aug 13 2015 qsync_device.db
-rw-r--r-- 1 admin administ 30.5k Dec 31 11:52 qsys.log
-rw-r--r-- 1 admin administ 30.3k Dec 31 11:44 qsys.log.1