Jakiś czas temu kiedy już dość ogarnąłem swój routerek zauważyłem, że raz na jakiś czas się restartuje, ale nie cały router, tylko jakaś istotna usługa, ponieważ wlan znikał i po jakimś czasie wstawał, ale "uptime" dalej naliczał.
Nie mam zielonego pojęcia jak wyłapać ten moment i źródło tego zachowania.
Aktualnie rzeczy typu samba, minidlna, transmission itd. mam wyłączone - do czasu wyjaśnienia w/w błędu.
Mam WRT160NL, z najnowszym Gargoyle, extroot wg opisu na stronie (ten zgodny z dalej pracującym gargoyle).
Zauważyłem, że system montuje kilkukrotnie swap i partycję na dane - może tu coś jest nie tak.
Lub ram się zapycha? Albo dysk się wyłącza przez chwilę (nie instalowałem hdd idle), znika mu swap i głupieje?
Szczerze nie mam pojęcia dlaczego tak jest i dlatego proszę o pomoc.
Parę wycinków z dmesg (tutaj całość http://wklej.org/id/1175912/):
Wykrycie dysku
[ 9.300000] Initializing USB Mass Storage driver...
[ 9.300000] usbcore: registered new interface driver usb-storage
[ 9.310000] USB Mass Storage support registered.
[ 9.560000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 9.710000] usb-storage 1-1:1.0: Quirks match for vid 152d pid 2329: 8020
[ 9.720000] scsi0 : usb-storage 1-1:1.0
[ 10.750000] scsi 0:0:0:0: Direct-Access FUJITSU MHW2160BH 0000 PQ : 0 ANSI: 2 CCS
[ 10.770000] sd 0:0:0:0: [sda] 312579695 512-byte logical blocks: (160 GB/149 GiB)
[ 10.770000] sd 0:0:0:0: [sda] Write Protect is off
[ 10.780000] sd 0:0:0:0: [sda] Mode Sense: 28 00 00 00
[ 10.780000] sd 0:0:0:0: [sda] No Caching mode page present
[ 10.790000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 10.800000] sd 0:0:0:0: [sda] No Caching mode page present
[ 10.800000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 11.180000] sda: sda1 sda2 sda3
[ 11.190000] sd 0:0:0:0: [sda] No Caching mode page present
[ 11.200000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 11.200000] sd 0:0:0:0: [sda] Attached SCSI disk
[ 32.020000] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
I tak w kółko do 97:58
[ 75.550000] disktype: sending ioctl 5305 to a partition!
[ 75.560000] disktype: sending ioctl 5305 to a partition!
[ 75.620000] Adding 262140k swap on /dev/sda1. Priority:-1 extents:1 across:2 62140k
[ 75.700000] disktype: sending ioctl 5305 to a partition!
[ 75.710000] disktype: sending ioctl 5305 to a partition!
[ 75.880000] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 77.710000] disktype: sending ioctl 5305 to a partition!
[ 77.720000] disktype: sending ioctl 5305 to a partition!
[ 77.750000] Adding 262140k swap on /dev/sda1. Priority:-1 extents:1 across:2 62140k
[ 77.830000] disktype: sending ioctl 5305 to a partition!
[ 77.830000] disktype: sending ioctl 5305 to a partition!
[ 77.980000] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 81.300000] disktype: sending ioctl 5305 to a partition!
[ 81.300000] disktype: sending ioctl 5305 to a partition!
[ 81.340000] Adding 262140k swap on /dev/sda1. Priority:-1 extents:1 across:2 62140k
[ 81.420000] disktype: sending ioctl 5305 to a partition!
[ 81.420000] disktype: sending ioctl 5305 to a partition!
[ 81.610000] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
Fstab (już na extroot)
fstab.automount=global
fstab.automount.from_fstab=1
fstab.automount.anon_mount=0
fstab.autoswap=global
fstab.autoswap.from_fstab=1
fstab.autoswap.anon_swap=0
fstab.@mount[0]=mount
fstab.@mount[0].fstype=ext4
fstab.@mount[0].options=rw,sync
fstab.@mount[0].target=/tmp/usb_mount/dev_sda3
fstab.@mount[0].device=/dev/sda3
fstab.@mount[0].enabled_fsck=1
fstab.@mount[0].enabled=0
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda1
fstab.@swap[0].enabled=1
Mount
# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=14580k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/sda2 on /overlay type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda3 on /tmp/usb_mount/b24bfb1c-e2ca-4531-88b5-51b27603864d type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)
df-h
Filesystem Size Used Available Use% Mounted on
rootfs 4.0G 203.2M 3.8G 5% /
/dev/root 5.3M 5.3M 0 100% /rom
tmpfs 14.2M 940.0K 13.3M 6% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda2 4.0G 203.2M 3.8G 5% /overlay
overlayfs:/overlay 4.0G 203.2M 3.8G 5% /
/dev/sda3 144.6G 2.4G 135.0G 2% /tmp/usb_mount/b24bfb1c-e2ca-4531-88b5-51b27603864d
Nie wiem co jeszcze pokazać, jak ktoś będzie na tyle pomocny by to przejrzeć, to udostępnię cokolwiek zechce.
Aha, w /lib/preinit/00_extroot.conf przestawiłem czas na 60, ale to nic nie zmieniło.
Sam temat tego dziwacznego montowania zacząłem drążyć, ponieważ usługi typu minidlna, samba miały problem z wystartowaniem, ponieważ nie było jeszcze dysku - i w dalszym ciągu nie wiem do końca jak to rozwiązać, jak wstawię opóźnienia w rc, to nie będę mógł zarządzać autostartem tych usług z poziomu www gargoyle, prawda?