Spin-down guard disabled

Spin-down guard disabled

Postby batondebois » Wed Sep 22, 2021 2:43 pm

I've looked around in the forum and the help, but cannot figure-out why the spin-down guard for the internal hard-drives is disabled. When I grep:

Code: Select all
root@homenas:/ # ps -ef | grep noflushd
root      2943     1  0 11:28 ?        00:00:00 noflushd -n 5 /dev/sdb
root      2989  2138  0 11:32 pts/0    00:00:00 grep noflushd


I see that it is enabled, but in the web I see that it is in fact disabled:

Code: Select all
Current setting:   disabled, Inactivity period 0 Minutes


Is this a compatibility error with my disk? Could there be a media deamon taking over (I've looked around and they all seem disabled. The disks don't sound like they spin down.
batondebois
Donator VIP
Donator VIP
 
Posts: 7
Joined: Mon Aug 23, 2021 8:31 pm

Re: Spin-down guard disabled

Postby fvdw » Wed Sep 22, 2021 7:00 pm

Seems disk spin down is not active on sda (system disk) but enabled on sdb, the second disk.
Normally noflushd should list as well sda as sdb. In your case it only list sdb.
The reason must be that sda is incompatible with commands used by nofushd to check disk settings and activity. As result the web interface mentioned disabled.
You could try to start noflushd for sda by giving this command at command line
Code: Select all
noflushd -n 5 /dev/sda

And see what response you get
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Spin-down guard disabled

Postby batondebois » Wed Sep 22, 2021 10:00 pm

What you said rang a bell, and I remembered that I installed the firmware on sdb. I wiped everything and transferred data on sda, and no everything works as planned. Do you think that this was this the problem? Now I see enabled on the web interface.
batondebois
Donator VIP
Donator VIP
 
Posts: 7
Joined: Mon Aug 23, 2021 8:31 pm

Re: Spin-down guard disabled

Postby Jocko » Thu Sep 23, 2021 9:10 am

Hi

Indeed this may explain this issue.

First, on a 2big2, the command line should be in all case
Code: Select all
noflushd -n xx /dev/sda /dev/sdb
. The firmware reads the nas database to get the disks list having to be monitored by noflush daemon. So that would mean the nas database is corrupted.

Please to post these outputs
Code: Select all
grep '<vol>' -A 20 /etc/nas_conf_db.xml
grep '<disk>' -A 20 /etc/nas_conf_db.xml
grep '<hdparams>' -A 7 /etc/nas_conf_db.xml
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Spin-down guard disabled

Postby batondebois » Thu Sep 23, 2021 2:33 pm

In my NAS I only have a drive in the A port at the moment. Here is the output:

Code: Select all
root@homenas:/ # grep '<vol>' -A 20 /etc/nas_conf_db.xml
      <vol>
         <volid>1000</volid>
         <md>/dev/sda8</md>
         <fs>1000</fs>
         <lastindex>1</lastindex>
         <name>Vol-A</name>
         <devices/>
         <raidtype>single</raidtype>
         <color>#c80b17</color>
         <formatting>0</formatting>
         <size>1860.24909163</size>
      </vol>
   </vols>
   <isofiles/>
   <rsyncd>
      <enable>false</enable>
      <modules>
         <enable>false</enable>
      </modules>
   </rsyncd>
</nas_conf_db>
root@homenas:/ # grep '<disk>' -A 20 /etc/nas_conf_db.xml
         <disk>
            <device>/dev/sda</device>
            <inactivityperiod>15</inactivityperiod>
            <lastselftest>0</lastselftest>
         </disk>
      </hdparams>
      <notify>
         <eventbmp>3</eventbmp>
         <email>
            <enable>false</enable>
            <address/>
            <smtpip/>
         </email>
         <icq>
            <enable>false</enable>
            <idnum/>
            <passwd/>
            <dest_idnum/>
         </icq>
         <sms>
            <enable>false</enable>
--
      <disk>
         <size>1860.24909163</size>
         <internal>true</internal>
         <name>Disk-A</name>
         <system>true</system>
         <blockdev>/dev/sda</blockdev>
         <diskid>5YD2Y2HP</diskid>
         <model> ST2000DL001-9VT156</model>
         <usb>false</usb>
         <freesize>0</freesize>
         <init>true</init>
         <partitions>
            <partition>
               <lvname>/dev/sda8</lvname>
               <color>#c80b17</color>
               <volid>1000</volid>
               <index>0</index>
               <size>1860.24909163</size>
            </partition>
         </partitions>
      </disk>
root@homenas:/ # grep '<hdparams>' -A 7 /etc/nas_conf_db.xml
      <hdparams>
         <disk>
            <device>/dev/sda</device>
            <inactivityperiod>15</inactivityperiod>
            <lastselftest>0</lastselftest>
         </disk>
      </hdparams>
      <notify>
batondebois
Donator VIP
Donator VIP
 
Posts: 7
Joined: Mon Aug 23, 2021 8:31 pm

Re: Spin-down guard disabled

Postby Jocko » Thu Sep 23, 2021 6:58 pm

According with your outputs, all is right :scratch
But it seems you tried to change the inactivity period because currently the value is 15 min whereas in your first post it was 5 min
Code: Select all
root      2943     1  0 11:28 ?        00:00:00 noflushd -n 5 /dev/sdb

So can you reboot the nas and check the running noflushd commandline
Code: Select all
 ps -ef | grep noflushd


Note: Did you edit manually the nas database ? because these lines are wrong and never the firmware can do that
Code: Select all
   <rsyncd>
      <enable>false</enable>
      <modules>
         <enable>false</enable>              <------------------ this is a wrong line
      </modules>
   </rsyncd>

by enabling again rsyncd and enable a module all should be right again
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Lacie 2Big Network vs2

Who is online

Users browsing this forum: No registered users and 4 guests

cron