FAQ  •  Register  •  Login

Zyxel NSA325V2 Disk Always Active [SOLVED]

<<

Lonewolf

Serviio newbie

Posts: 10

Joined: Fri Dec 18, 2015 9:59 pm

Post Thu Jan 11, 2018 5:19 am

Zyxel NSA325V2 Disk Always Active [SOLVED]

I recently updated Serviio on my Zyxel NSA325V2 from version 1.52 to version 1.9. I now noticed that my drives will no longer sleep after the prescribed time and stay active as long as serviio process is running. The strange thing is that with version 1.52 of Serviio, I didn't have this problem. If I stop Serviio the unit sleeps after the prescribed time. I have all updating in Serviio shut off but the problem persists.

Here is what I am seeing with Serviio enabled.

  Code:
cat /proc/d_suspdtime


The results are:
  Code:
SuspendingTime = 10
Disk0: ACTIVE
Disk1: ACTIVE


The disks never go to NOT ACTIVE so they never go to STANDBY.

Here is a list of the open files on the drive when serviio is running.
  Code:
root@NAS325DAD:~# lsof /mnt/HD_a2 | grep i-data
smbd      10312    root  cwd    DIR    9,0     4096 110231553 /i-data/0365a9f9/public
smbd      10313    root  cwd    DIR    9,0     4096  15859713 /i-data/0365a9f9/video
smbd      10314    root  cwd    DIR    9,0     4096  69206017 /i-data/0365a9f9/photo
smbd      10315    root  cwd    DIR    9,0     4096 184942593 /i-data/0365a9f9/music
smbd      10323    root  cwd    DIR    9,0     4096  45744129 /i-data/0365a9f9/admin
smbd      10328    root  cwd    DIR    9,0     4096 114691595 /i-data/0365a9f9/.system/autoshare_sata/Volume1
httpd     26463  nobody    5w   REG    9,0   146854 102368995 /i-data/0365a9f9/.system/zyxelFrameworkLog
httpd     26463  nobody   10w   REG    9,0   146854 102368995 /i-data/0365a9f9/.system/zyxelFrameworkLog


What can I do aside from stopping the serviio process to stop the disk activity and allow my drives to go into standby?
Last edited by Lonewolf on Sun Jan 14, 2018 9:35 pm, edited 1 time in total.
<<

atc98092

User avatar

DLNA master

Posts: 2569

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Jan 11, 2018 1:10 pm

Re: Zyxel NSA325V2 Disk Always Active

I believe that there were some changes to the database between those two versions, so Serviio is conducting a complete rescan of your media. Depending on the number of files, this can take quite some time, with some people reporting more than a day. Once it completes you should be back to normal.

Not saying it's this for sure, but it's something I remember being posted here a while back.
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Roku 2 XS, 4, Ultra and Stick, Yamaha RX-V679 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 7 Home Premium, AMD Phenom II X4 965, 8 gig ram

Enable debug logging Identify media file contents
<<

Lonewolf

Serviio newbie

Posts: 10

Joined: Fri Dec 18, 2015 9:59 pm

Post Thu Jan 11, 2018 2:32 pm

Re: Zyxel NSA325V2 Disk Always Active

atc98092 wrote:I believe that there were some changes to the database between those two versions, so Serviio is conducting a complete rescan of your media. Depending on the number of files, this can take quite some time, with some people reporting more than a day. Once it completes you should be back to normal.

Not saying it's this for sure, but it's something I remember being posted here a while back.


I know what you are talking about but the disks are staying on after the initial scan is complete which did take overnight to complete. The initial Serviio staus screen shows how many movies, photos, music files it had scanned so I know the scan has completed. I even went to the point of removing any shared folders to see if that got rid of the issue and unfortunately it did not. I pulled the network cable, shut off all plugins on the NAS and the only thing that allowed the unit to go into standby is shutting the serviio process off. Bingo, a few minutes after Serviio is shutdown the disks go "not active" and ten minutes later they go into "standby". Re-enabling Serviio causes the disks to go "active" and stay that way. Some process in Serviio or its related programs is keeping the disks "active", I just don't have the knowledge to figure out which one and fix it.
The only other thing I can add is that after upgrading to Serviio 1.9, I had one of my raid 1 drives go bad and I had to replace it. Since the drives are mirrored, I had the NAS unit rebuild the array and it seems fine. I don't think that would be an issue but could it?
<<

atc98092

User avatar

DLNA master

Posts: 2569

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Jan 11, 2018 5:46 pm

Re: Zyxel NSA325V2 Disk Always Active

I wouldn't think the RAID would have anything to do with it, but perhaps Zip might have other info.

The one other thing I can think of is that Serviio changed its method of scanning for updated files some time back, and that might be the difference between your older version and 1.9. Do you have the Poller option selected for your shared locations? If not, try enabling it, and if it's already on try turning it off. Just another thought.
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Roku 2 XS, 4, Ultra and Stick, Yamaha RX-V679 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 7 Home Premium, AMD Phenom II X4 965, 8 gig ram

Enable debug logging Identify media file contents
<<

Lonewolf

Serviio newbie

Posts: 10

Joined: Fri Dec 18, 2015 9:59 pm

Post Thu Jan 11, 2018 6:48 pm

Re: Zyxel NSA325V2 Disk Always Active

atc98092 wrote:I wouldn't think the RAID would have anything to do with it, but perhaps Zip might have other info.

The one other thing I can think of is that Serviio changed its method of scanning for updated files some time back, and that might be the difference between your older version and 1.9. Do you have the Poller option selected for your shared locations? If not, try enabling it, and if it's already on try turning it off. Just another thought.


Turned on the Poller option on both of my shared locations. Didn't help. Could it be some java or ffmpeg process doing this?
<<

atc98092

User avatar

DLNA master

Posts: 2569

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Fri Jan 12, 2018 1:23 am

Re: Zyxel NSA325V2 Disk Always Active

Going to have to let Zip chime in now. reached the limits of my knowledge on this. :D
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Roku 2 XS, 4, Ultra and Stick, Yamaha RX-V679 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 7 Home Premium, AMD Phenom II X4 965, 8 gig ram

Enable debug logging Identify media file contents
<<

Lonewolf

Serviio newbie

Posts: 10

Joined: Fri Dec 18, 2015 9:59 pm

Post Fri Jan 12, 2018 6:23 pm

Re: Zyxel NSA325V2 Disk Always Active

OK, here is what I think is keeping the disks running. The disk accesses noted in the log stop as soon as I stop Serviio and the disks go "not active".

  Code:
 ==== Fri Jan 12 12:43:05 EST 2018 ====
    kjournald2(1596): WRITE block 3905183064 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    kjournald2(1596): WRITE block 3905183072 on md0
    kjournald2(1596): WRITE block 3905183080 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    pdflush(170): WRITE block 3670018200 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    java(13188): dirtied inode 114691904 (.userRootModFile.serviio) on md0
    kjournald2(1596): WRITE block 3905183088 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    kjournald2(1596): WRITE block 3905183096 on md0
    kjournald2(1596): WRITE block 3905183104 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    ==== Fri Jan 12 12:44:04 EST 2018 ====
    kjournald2(1596): WRITE block 3905183112 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    kjournald2(1596): WRITE block 3905183120 on md0
    kjournald2(1596): WRITE block 3905183128 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    pdflush(170): WRITE block 3670018200 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    java(13188): dirtied inode 114691904 (.userRootModFile.serviio) on md0
    kjournald2(1596): WRITE block 3905183136 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    kjournald2(1596): WRITE block 3905183144 on md0
    kjournald2(1596): WRITE block 3905183152 on md0
    md0_raid1(1579): WRITE block 8 on sda2
    md0_raid1(1579): WRITE block 8 on sdb2
    Logging stopped : Fri Jan 12 12:44:46 EST 2018


What is Serviio constantly writing to the disk?
<<

Lonewolf

Serviio newbie

Posts: 10

Joined: Fri Dec 18, 2015 9:59 pm

Post Sat Jan 13, 2018 7:49 pm

Re: Zyxel NSA325V2 Disk Always Active

OK, I ran some more detective work with the help of a few people much smarter than I am and ran the following;
  Code:
inotifywait -rmdo /root/monitorHDD.log --format '%T %e %w/%f' --timefmt '%Y_%m_%d %H:%M:%S' /i-data/md0

There is a 30 second set of commands that Serviio seems to be requesting that keep repeating themselves. This is a one minute example of it.

    018_01_13 19:23:31 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:23:31 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:23:31 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:23:31 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:23:41 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:23:41 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:23:41 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:23:41 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:23:51 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:23:51 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:23:51 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:23:51 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:23:55 OPEN /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/.java/.userPrefs//.user.lock.serviio
    2018_01_13 19:23:55 ATTRIB /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/.java/.userPrefs//.userRootModFile.serviio
    2018_01_13 19:23:55 CLOSE_WRITE,CLOSE /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/.java/.userPrefs//.user.lock.serviio
    2018_01_13 19:24:01 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:24:01 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:24:01 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:24:01 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:24:11 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:24:11 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:24:11 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:24:11 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:24:21 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:24:21 OPEN,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:24:21 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio//plugins
    2018_01_13 19:24:21 CLOSE_NOWRITE,CLOSE,ISDIR /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/plugins//
    2018_01_13 19:24:25 OPEN /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/.java/.userPrefs//.user.lock.serviio
    2018_01_13 19:24:25 ATTRIB /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/.java/.userPrefs//.userRootModFile.serviio
    2018_01_13 19:24:25 CLOSE_WRITE,CLOSE /i-data/md0/.system/zy-pkgs/ffproot/ffp/opt/serviio/.java/.userPrefs//.user.lock.serviio

I hope to get Zip to help me out but if anyone else can help, please do. I am stuck at this point and have to leave Serviio off or I am afraid my drives will not survive very long.
<<

norm

Serviio lover

Posts: 64

Joined: Tue Apr 09, 2013 3:18 pm

Post Sun Jan 14, 2018 7:58 am

Re: Zyxel NSA325V2 Disk Always Active

Good going Lonewolf looks like you might have found the culprit plugins.check system property.

plugins.check - if set to 'false', Serviio will not perform continuous checks for new or updated plugin files


Try editing your JAVA_OPTS in /ffp/opt/serviio/bin/serviio.sh and add
  Code:
-Dplugins.check=false

I would also recommend adding -Djava.util.prefs.syncInterval with something high too.
  Code:
-Djava.util.prefs.syncInterval=86400


I have had this in my JAVA_OPTS for sometime and it hasn't broken anything. The only thing that you need to be aware of is that you will need to restart Serviio to pickup any new plugins but seeing as a new plugin version isn't that common. You shouldn't have any problems.
Ref: http://forum.serviio.org/viewtopic.php?f=5&t=17503&view=previous#p85817
http://www.serviio.org/forum/viewtopic.php?f=5&t=6878#p50339
<<

Lonewolf

Serviio newbie

Posts: 10

Joined: Fri Dec 18, 2015 9:59 pm

Post Sun Jan 14, 2018 8:31 pm

Re: Zyxel NSA325V2 Disk Always Active

OK, because this is for a Zyxel NSA325V2 with Barmalej2's start script, I made the changes suggested in /ffp/start/serviio.sh instead of the version located in /ffp/opt/serviio/bin/serviio.sh. And guess what? IT WORKED!!!!! :D Kudos and many thanks to Norm and Barmalej2 (again ;) ) for your help diagnosing this issue and then solving the problem. Great!!!

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 3 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.