Jump to content
XPEnology Community

toshas

Member
  • Posts

    33
  • Joined

  • Last visited

Posts posted by toshas

  1. /usr/syno/synoman/webman/modules/StorageManager/storagehandler.cgi

    /usr/syno/synoman/webman/modules/StorageManager/volumehandler.cgi

     

    В данной теме это оффтоп, но всеже:

    для 6го обновления к 3827, эти обновленные скрипты являются опасными?

    Для сборок 4.3 не происходит никакой перезаписи, там же не использовался загрузчик gnoboot/nanoboot

     

    Спасибо!

    storagehandler.rar

    volumehandler.rar

  2. Hi!

     

    You can use sheduled task (custom script/smart check). It is safe. These action only modify /etc/crontab file, you can check it via "vi" command.

     

    Do not use sheduled poweroff or wakeup. These requires changing bios parameters and synology bios is not the same as n40/n54 bios, thus you will get reset issue.

  3. How to schedule a data scrubbing ?

     

    Synology has software raid. There is one weak point of soft-raid - data will be checked only during read/write access to this data.

     

    So on raid1,raid5 (and even on raid6 in worst case) is possible such situation:

     

    1. one hdd fails

    2. hdd replaced by new one

    3. synology start data recovery

    4. old data on another hdd has bad sector (which wasn't tested in near past)

    5. synology marks volume as read-only

    6. all data (several TB ?) should be moved to new place with partial data lost.

     

    To prevent this situation periodical data scrubbing is strongly recommended.

    Even in 5.0 beta there is no way to create schedule for this job.

     

    http://forum.synology.com/enu/viewtopic.php?t=65340

    http://forum.synology.com/enu/viewtopic.php?t=78392

    http://forum.synology.com/enu/viewtopic.php?t=23454

    http://forum.synology.com/enu/viewtopic.php?t=8926

     

    So the question is: Could someone to share script for periodically checking and repairing raid volume (maybe even with email notifications) ?

     

    thanks a lot!

  4. How to schedule a data scrubbing ?

     

    Synology has software raid. There is one weak point of soft-raid - data will be checked only during read/write access to this data.

     

    So on raid1,raid5 (and even on raid6 in worst case) is possible such situation:

     

    1. one hdd fails

    2. hdd replaced by new one

    3. synology start data recovery

    4. old data on another hdd has bad sector (which wasn't tested in near past)

    5. synology marks volume as read-only

    6. all data (several TB ?) should be moved to new place with partial data lost.

     

    To prevent this situation periodical data scrubbing is strongly recommended.

    Even in 5.0 beta there is no way to create schedule for this job.

     

    http://forum.synology.com/enu/viewtopic.php?t=65340

    http://forum.synology.com/enu/viewtopic.php?t=78392

    http://forum.synology.com/enu/viewtopic.php?t=23454

    http://forum.synology.com/enu/viewtopic.php?t=8926

     

    So the question is: Could someone to share script for periodically checking and repairing raid volume (maybe even with email notifications) ?

     

    thanks a lot!

  5. Please remember about power consumption too.

    N40L has 15w TDP and N54L has 25w TDP. (N40L + 2x2tb WD Green = 31w in hdd hibernation mode)

    For 24/7 home use it can be important.

    Just for NAS (w/o torrent, media transcoding and etc.) even N36L is enough (transfer speed is equal).

  6. Are you using a modified bios? and if so which one?

    I user before bays(?) BIOS 41 and it worked, recently I have updated to the latest one from German site and it still works.

     

    Do you perform any bios setting modifications? (virtual ram size to 32, sata mode to 3.0gb/s or etc.)

    Even with default bios settings xpenology works fine!

    Bios reset is annoying thing by itself.

  7. By default DSM 4.2 has no "on battery" and "on line" UPS notifications.

    This ability was added later only in DSM 4.3.

     

    I want to share solution How to add these notifications in DSM 4.2:

    (original post was found on synology forum http://forum.synology.com/enu/viewtopic ... 60#p255546 )

     

    Here is attachment of patched files (Trantor build 1.2 DSM 4.2 3211).

    Place files from UPS_notif_mod to

    1. /usr/syno/synoman/webman/texts/enu/notification_category

    2. /usr/syno/etc/notification/notification_filter.setting

    3. /usr/syno/synoman/webman/texts/enu/mails

    4. /usr/syno/bin/ups.sh

    5. /usr/syno/bin/synoups

    Place files from UPS_notif_mod_rus to

    1. /usr/syno/synoman/webman/texts/rus/notification_category

    2. /usr/syno/synoman/webman/texts/rus/mails

     

    For other languages change files in corresponding folders.

    UPS_mod_4.2_3211.rar

  8. HDD hibernation (and System hibernation (for native-syno users)) issue is one of the biggest problem on syno devices.

     

    proof-link http://forum.synology.com/enu/viewforum.php?f=83

     

    I played around it several weeks (N40L, Win enviroument, Trantor's 3211 1.2). And now I can share some tweaks.

    First of all you should stop all packages. Then check hdd spinup.

     

    If it exists at random times probably you have "bad" network traffic:

     

    1. You should disable all NetBios services on Win PC. Or just create blocking firewall rules for 137,138,139 ports in DSM.

    Now your NAS will be lost at network places. To prevent it you can edit /etc/hosts file with appropriate NAS ip.

     

    2. Block 1900 UPnP port in firewall rules.

     

    3. (Not sure about this point) Disable WinMediaPlayer Sharing features and stop WMPNetwork service too.

     

    Then check hdd spinup again. If problem is exist in certain time:

     

    1. Disable NTP service in DSM and check crontab file for any tasks.

     

    Start appropriate package and check again.

    There is some packages which prevent hdd hibernation/generate random spinup.

    http://www.synology.com/en-global/support/faq/568

     

    For example Plex package. It wakes up NAS every hour. With some tweaks of settings Plex wakes up NAS every 24h (actually this is still bad). (Long story is here https://forums.plexapp.com/index.php/to ... s-running/ )

     

    P.S. It's is really sad that power schedule is not working now (bios resets)...

    This can help prevent spinup at night.

     

    P.P.S. My NAS still has random wakeup. How to debug it ?

    1. You can use Wireshark for network activity monitoring.

    2. syno_hibernate_debug_tool can help too. Keep in mind that syno_hibernate_debug_tool can perform hdd wakeup by itself. So use it carefully.

  9. I'm also using trantors repack 1.2 without any problems.

    But XPEH, could you please explain the nfs-problem?

    I access my N54L from my WD TV Live via nfs without any problems and without any customizations of any files.

    Are you sure that WD assess it via NFS and not via CIFS/SMB?

    Try to run from shell (SSH) command

    /usr/syno/etc/rc.d/S83nfsd.sh restart

    Any errors while loading modules?

     

    I'm using PCH A200 with NFS access. And all works fine too!

  10. I ended up getting most of it working ok...

     

    I found that the drives were sleeping ok, but i'm still using a script to unmount the internal USB drive after booting anyway as I don't want it visible.

     

     

    Dadudeondacouch,

     

    Where did you add this script and where did you find it? I would like to hide the boot USB / SD card (in my case) too.

     

    I've done a quick search in the forums for boot unmount USB but did not see anything. Perhaps this is documented in one of the PC setup guides?

     

    Thanks

    Quick

     

    Hi!

     

    I posted a solution here

     

    http://xpenology.com/forum/viewtopic.php?f=2&t=6&start=340#p6356

  11. Just remove the rmmod from linuxrc / updater.sh in the initrd do the same thing.

     

    I have something weird, It said the system volume has crashed, it is fixed by a reboot but sometimes it appears again...

     

    I found this weird thing in messages :

     

    storagehandler.cgi : raid_disk_create.c:88 failed to fopen /sys/block/md1/md/dev-sda2/slot, errno=Too many levels of symbolic links

     

    Is anyone already seen that in previous DSM ? (I can't tell DSM4.3 is the first one for me).

     

    NOTE : I try an upgrade to 3776.3 we will see :razz:

     

    EDIT 2 : woops :smile:

     

    Oct 15 21:12:22 DiskStation updater: updater.c:4197 The SynoBoot partitions exist.
    Oct 15 21:12:22 DiskStation updater: updater.c:2413 SYNORedBootUpdCheckAndApply(2413): Skip bootloader update, no uboot_do_upd.sh exists
    Oct 15 21:12:22 DiskStation updater: boot_lock.c(224): failed to mount boot device /dev/synoboot2 /tmp/bootmnt (errno:6)
    Oct 15 21:12:22 DiskStation updater: updater.c:4293 fail to unlock boot partition
    Oct 15 21:12:22 DiskStation updater: updater.c:4537 Failed to accomplish the update! (errno = 21)

     

    I will need to dig this one too.

     

     

    Volume crash during reboot or sheduled power-off is known bug in 4.3

    http://forum.synology.com/enu/viewtopic ... 67#p281159

    http://forum.synology.com/enu/viewtopic ... 29&t=74180

    http://forum.synology.com/enu/viewtopic ... 29&t=74361

  12. Solution that allows you login via SSH with a RSA keypair was found here:

     

    http://www.mauchle.name/blog/?p=239

     

    1. Download PuTTY and PuTTYgen (or just get the installer, everything is in there) from here http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html.

     

    2. Generate a keypair with PuTTYgen (Parameters: SSH-2 RSA)

     

    3. Save the private key as “myprivatekey.ppk”

     

    4. Copy the public key to the clipboard. Looks somewhat like this:

    ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAzP4MR3lkCD2pa7nwT3NMjjDBMmEuJ4exW4GKBBP+okArZ/IrjbLIpdh8ahpfgjh8kM//OVUGeRa1GigzcCuGzIa2YfS7L4Q9cbUUWFwIu2hGV3ZpJ2xDZExaaLH90Vw+ZBaozD2OI4FZ1Dqh8Bj29SQqIIbmxf/ASyTmXHZCbQk= rsa-key-20130414

     

    5. Connect to your diskstation with PuTTY

    diskstation:22

     

    6. Login as root

     

    7. Edit the SSH config with

    vi /etc/ssh/sshd_config

     

    8. Look for the following lines

    #RSAAuthentication yes

    #PubkeyAuthentication yes

    #AuthorizedKeysFile .ssh/authorized_keys

     

    9. Change them to this (by hitting “x” when the cursor is over the # and hitting ESC, then typing :wq ENTER)

    #RSAAuthentication yes

    PubkeyAuthentication yes

    AuthorizedKeysFile .ssh/authorized_keys

     

    10. Go to /root and create the .ssh folder

    cd /root

    mkdir .ssh

     

    11. Edit the keyfile

    vi /root/.ssh/authorized_keys

     

    12. Press “i”

     

    13. Paste your public key and save the file (Hit Esc, type :wq, hit Enter)

    ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAzP4MR3lkCD2pa7nwT3NMjjDBMmEuJ4exW4GKBBP+okArZ/IrjbLIpdh8ahpfgjh8kM//OVUGeRa1GigzcCuGzIa2YfS7L4Q9cbUUWFwIu2hGV3ZpJ2xDZExaaLH90Vw+ZBaozD2OI4FZ1Dqh8Bj29SQqIIbmxf/ASyTmXHZCbQk= rsa-key-20130414

     

    14. Set the access-rights to the file

    chmod 700 /root/.ssh

    chmod 644 /root/.ssh/authorized_keys

     

    15. Disconnect with

    exit

     

    16. Open Putty again and make the following settings

     

    Hostname: or

    Port: 22

    Connection type: SSH

    Connection->Data->Auto-login username: root

    Connection->SSH->Auth->Private Key: Your Keyfile

    And save the session as

     

    17. Create a new shortcut on your desktop with the following target

    "C:\Program Files (x86)\PuTTY\putty.exe" -load "sessionname"

     

    18. Finished. From now on you can connect by double-clicking.

     

    All steps can be done via ssh or telnet.

     

    At step 16

    Connection->SSH->Remote command:

    allows you to send different commands after login

    for shutdown it should be

    nohup poweroff > /dev/null 2>&1 &

     

    For more complex command set

    "C:\Program Files (x86)\PuTTY\putty.exe" -load "sessionname" -m C:\commands.txt

     

    If you don't want to close session immediately, change

    Connection->Close windows on exit: Always/Never/On clean exit

     

     

    SSH with a RSA keypair login is more secure than Telnet.

     

    p.s. with this thread

    Turn on your XPEnology with *double-click*

    http://xpenology.com/forum/viewtopic.php?f=2&t=1330

    Win users have complete 'double-click' solution for turn-on/turn-off their synology

×
×
  • Create New...