DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-04-06 22:53:59

fmackenz
Member
Registered: 2011-03-31
Posts: 11

offl_chk

I changed the execution of this from 10 minutes to an hour.  (to make it easier to scan the log)

Does anyone know that offl_chk actually does?  Will bumping it from 10 minutes to an hour be a problem?

Offline

 

#2 2011-04-08 20:32:45

rsd76
Member
Registered: 2010-04-18
Posts: 47

Re: offl_chk

If I run "strings /usr/sbin/offl_chk", I get some text.
The best part (no compile info and such) is:

Code:

/web/sib.conf
Sorry , Can't open the sib.conf.
CF-RAID-AUTO-SYNC
Can't find this frame CF-RAID-AUTO-SYNC , exit....
/etc/raidtab2web
/etc/mtab
sda2
sda4
/dev/%s
sdb2
sdb4
sdc2
sdc4
sdd2
sdd4
rootfs
mount /dev/%s /mnt/HD_%c2
/web/hddok_a
/web/hddok_b
/tmp/formatting
web config file error.
/proc/mdstat
raid1
device b off line
echo 1 > /tmp/wait_sync
touch /mnt/HD_a4/awake_call /mnt/HD_b4/awake_call
rm /mnt/HD_a4/awake_call /mnt/HD_b4/awake_call
mdadm /dev/md0 -a /dev/sdb2&
/tmp/wait_sync
rm /tmp/wait_sync
device a off line
echo 0 > /tmp/wait_sync
mdadm /dev/md0 -a /dev/sda2&
System formatting , needn't to check
Check Raid1 !
device %s off line
touch /mnt/HD_a4/awake_call /mnt/HD_b4/awake_call /mnt/HD_c4/awake_call /mnt/HD_d4/awake_call
rm /mnt/HD_a4/awake_call /mnt/HD_b4/awake_call /mnt/HD_c4/awake_call /mnt/HD_d4/awake_call
mdadm /dev/%s -a /dev/%s&
raid5
Check Raid5 !
null
more /proc/mdstat > /tmp/mdstat_tmp
/tmp/raidinfo
rm /tmp/mdstat_tmp
raid_partition =%d
Usage : two : check 2 bays NAS
        four : check 4 bays NAS
four
Bad Arguments.

So what I think it does (and also what the name seems to indicate) is that this programs checks the online status of your drives.
So if for some reason the drives are set offline, this will try to set then online.


This also answers one question I had myself about umount my disks (I'm running ffp from usb stick) and doing a e2fsck on it.

Last edited by rsd76 (2011-04-08 20:38:10)


Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin & Hobbes)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB