Raid clean, degraded completed, estimated time ...

Re: Raid clean, degraded completed, estimated time ...

Postby Jocko » Sun May 26, 2024 4:13 pm

if you run no command after assembling the raid, what value do you get with
Code: Select all
echo $?
(of course from the same shell window)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid clean, degraded completed, estimated time ...

Postby razzor0 » Sun May 26, 2024 4:14 pm

Code: Select all
root@fvdwsl-base:/ # echo $?
0
razzor0
Donator VIP
Donator VIP
 
Posts: 55
Joined: Sun Feb 04, 2024 11:02 am

Re: Raid clean, degraded completed, estimated time ...

Postby Jocko » Sun May 26, 2024 4:18 pm

So yes reboot the nas again but this time after enabling the debug mode
Code: Select all
debugon

And then post again
Code: Select all
cat /boot.log
mount
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid clean, degraded completed, estimated time ...

Postby razzor0 » Sun May 26, 2024 4:20 pm

Just to be safe here I should run those commands after the reboot right ?
razzor0
Donator VIP
Donator VIP
 
Posts: 55
Joined: Sun Feb 04, 2024 11:02 am

Re: Raid clean, degraded completed, estimated time ...

Postby Jocko » Sun May 26, 2024 4:21 pm

debugon command must be done before rebooting
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid clean, degraded completed, estimated time ...

Postby razzor0 » Sun May 26, 2024 4:26 pm

Code: Select all
root@fvdwsl-base:/ # cat /boot.log
start boot log
is a physical machine
detect and set platform
5big2
kirkwood
UIMAGE-414133-KIRKWOOD-5
Current kernel: 4.14.133 #5 PREEMPT Thu Aug 10 15:38:37 CEST 2023
device 5big2
family kirkwood
Arm: found valid system disk sda
system disk = sda
 mount dev/pts
update dev nodes
booting using sda1 root file system...
enable IP forwarding...
run udevstart to update dev nodes when necessary
inserting kernel modules:
modprobe: module 'iscsi_trgt' not found
start buttons control daemon
device = 5big2
source = buttons-nwsp2
buttons-nwsp2 daemon started
Thu May 23 12:48:49 UTC 2024
configuration partition is rightly mounted
create temporary passwd file
create temporary group file
set samba environment for version 3.0.37
configure loopback network interface
setting reboot and standby
5big2
rebootd-nwsp2
5big2
standbyd-nwsp2
start fan
starting php based setup routines step 1
mwexec()[2024/05/23 12:49:01]: killall syslogd
 * Starting syslogd... mwexec()[2024/05/23 12:49:01]: /sbin/syslogd -b 5
                                         [ OK ]
 * Initialize the volatile db file...mwexec()[2024/05/23 12:49:01]: chown 99:99 '/tmp/etc/nas_conf_vltl.xml'
mwexec()[2024/05/23 12:49:01]: chmod 666 '/tmp/etc/nas_conf_vltl.xml'
         [ OK ]
 * Starting udevd... mwexec()[2024/05/23 12:49:01]: /sbin/udevd --daemon
mwexec()[2024/05/23 12:49:01]: /sbin/udevadm trigger --action=add
mwexec()[2024/05/23 12:49:02]: /sbin/udevadm settle --timeout=5
                                         [ OK ]
mwexec()[2024/05/23 12:49:09]: sh -c '/usr/bin/grep -ic mailaddr /rw_fs/etc/mdadm.conf > /dev/null && /bin/sed -rie "s/.*mailaddr.*/MAILADDR /gI" /rw_fs/etc/mdadm.conf || echo -e "
MAILADDR
" >> /rw_fs/etc/mdadm.conf'
 * Starting RAID monitor: mwexec()[2024/05/23 12:49:09]: /sbin/mdadm  --monitor --daemonise --scan --delay=600 --pid-file=/var/run/mdadm.pid
                                 [ OK ]
 * Starting restore RAID devices...
   - Assembling device /dev/md0: mwexec()[2024/05/23 12:49:09]: mdadm --assemble /dev/md0 --run
 [ Fail ]
 * Finishing restore RAID devices...     [ Fail ]
 * Found database configuration file...  [ OK ]
mwexec()[2024/05/23 12:49:10]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec()[2024/05/23 12:49:10]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
mwexec()[2024/05/23 12:49:10]: chown 99:99 /rw_fs/etc/nas_conf_db.xml
mwexec()[2024/05/23 12:49:10]: chmod 666 /rw_fs/etc/nas_conf_db.xml
 * Updating Disks database... mwexec()[2024/05/23 12:49:20]: unlink /direct-usb
mwexec()[2024/05/23 12:49:20]: /usr/bin/ln -s /share/1000 /direct-usb
mwexec()[2024/05/23 12:49:20]: unlink /usr/local
mwexec()[2024/05/23 12:49:20]: /usr/bin/ln -s /share/1000/fvdw/addons /usr/local
mwexec()[2024/05/23 12:49:20]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec()[2024/05/23 12:49:20]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
                         [ OK ]
 * Starting mount of volumes...
   - Mounting volume Vol-A: mwexec()[2024/05/23 12:49:20]: /bin/mkdir -p /share/1000
mwexec()[2024/05/23 12:49:20]: /bin/mount -o user_xattr,acl,noatime,nodelalloc /dev/sda8 /share/1000
mwexec()[2024/05/23 12:49:21]: /usr/bin/chmod 775 '/share/1000'
mwexec()[2024/05/23 12:49:21]: /usr/bin/chgrp sys '/share/1000'
 [ OK ]
 * Finishing mount of volumes...                 [ OK ]
 * Generating Hosts File... mwexec()[2024/05/23 12:49:23]: /usr/bin/unlink /etc/hosts
                         [ OK ]
 * Configuring System Hostname... mwexec()[2024/05/23 12:49:23]: /usr/bin/hostname 'fvdwsl-base.local'
                 [ OK ]
 * Configuring LAN interface... mwexec()[2024/05/23 12:49:23]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec()[2024/05/23 12:49:23]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
mwexec()[2024/05/23 12:49:23]: /sbin/ifconfig -a 'eth0' 169.254.136.235 netmask 255.255.0.0
mwexec()[2024/05/23 12:49:23]: /sbin/ifconfig 'eth0' up
mwexec()[2024/05/23 12:49:23]: /sbin/udhcpc -b -i 'eth0' -s /etc/api/api_dhcpc.php dhcpdCbScript -x hostname='fvdwsl-base'
mwexec()[2024/05/23 12:49:28]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.update /rw_fs/etc/nas_conf_db.xml
mwexec()[2024/05/23 12:49:28]: /usr/bin/mv -f /rw_fs/etc/nas_conf_db.xml.try /rw_fs/etc/nas_conf_db.xml.bak
                 [ OK ]
 * Initializing Timezone... mwexec()[2024/05/23 12:49:28]: ln -sf /usr/share/zoneinfo/UTC /etc/localtime
                         [ OK ]
 * Starting web server... mwexec()[2024/05/23 12:49:28]: rm /etc/webdav.conf
mwexec()[2024/05/23 12:49:28]: chmod 644 /etc/webdav.conf
mwexec()[2024/05/23 12:49:28]: unlink /etc/proxy.conf
mwexec()[2024/05/23 12:49:28]: touch /etc/proxy.conf
mwexec()[2024/05/23 12:49:28]: cp -p /etc/php.ini /etc/php.ini.bak
mwexec()[2024/05/23 12:49:28]: sed -rie 's/(memory_limit =).*$/\1 24M/g' /etc/php.ini
mwexec()[2024/05/23 12:49:28]: sh -c 'echo  > "/etc/SSL_fvdwsl.conf"'
mwexec()[2024/05/23 12:49:28]: /usr/bin/httpd -f httpd.conf -d /etc
                                 [ OK ]
 * Starting mount of internal USB ...
 * Finishing mount internal USB ...      [ OK ]
 * Configuring Disks... mwexec()[2024/05/23 12:49:29]: /usr/sbin/noflushd -n 15 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde
                                 [ OK ]
 * Configuring Samba...                                  [ OK ]
mwexec()[2024/05/23 12:49:29]: /usr/sbin/nmbd -D -l /var/log/samba
mwexec()[2024/05/23 12:49:29]: /usr/sbin/smbd -D -l /var/log/samba
 * Configuring System Users...
        Root password: use default password
        Set usersmwexec()[2024/05/23 12:49:32]: unlink /rw_fs/usr/private/smbpasswd
mwexec()[2024/05/23 12:49:32]: unlink /etc/passwd+
, linux and samba accounts       [ OK ]
 * Starting Fvdw-sl Discovery Daemon...mwexec()[2024/05/23 12:49:32]: /usr/bin/killall  discoverd
mwexec_bg()[2024/05/23 12:49:32]: /bin/busybox setsid /usr/bin/discoverd
         [ OK ]
start rpcbind service
starting php based setup routines step 2
mwexec()[2024/05/23 12:49:32]: chmod 755 /rw_fs/etc/dropbear
mwexec()[2024/05/23 12:49:32]: chmod 600 /rw_fs/etc/dropbear/dropbear_rsa_host_key
mwexec()[2024/05/23 12:49:32]: chmod 600 /rw_fs/etc/dropbear/dropbear_dss_host_key
mwexec()[2024/05/23 12:49:32]: chmod 600 /rw_fs/etc/dropbear/dropbear_ecdsa_host_key
mwexec()[2024/05/23 12:49:32]: touch /rw_fs/tmp/var/log/lastlog
mwexec()[2024/05/23 12:49:32]: touch /rw_fs/tmp/var/run/utmp
mwexec()[2024/05/23 12:49:32]: unlink /etc/rootcheck
mwexec()[2024/05/23 12:49:32]: sudo chmod 777 '/rw_fs/.ssh'
mwexec()[2024/05/23 12:49:32]: sudo chmod 700 '/rw_fs/.ssh'
 * Starting dropbear... mwexec()[2024/05/23 12:49:33]: dropbear -p 22 -r '/rw_fs/etc/dropbear/dropbear_rsa_host_key' -r '/rw_fs/etc/dropbear/dropbear_dss_host_key' -r '/rw_fs/etc/dropbear/dropbear_ecdsa_host_key'
                                 [ OK ]
mwexec()[2024/05/23 12:49:33]: sh -c "chown 0:999 /etc;chmod 775 /etc"
mwexec()[2024/05/23 12:49:33]: unlink /etc/profile
 * Kill temporary dropbear...mwexec()[2024/05/23 12:49:33]: kill -9 964
                         [ OK ]
mwexec()[2024/05/23 12:49:33]: choom -p 1885 -n -500
starting php based setup routines step 3
 * Starting daemon update Hosts File... mwexec()[2024/05/23 12:49:33]: /usr/sbin/hostd 7200
 [ OK ]
 * Starting mount of remote shares...
 * Finishing mount shares...                     [ OK ]
mwexec()[2024/05/23 12:49:33]: unlink /direct-usb
mwexec()[2024/05/23 12:49:33]: ln -s /share/1000 /direct-usb
mwexec()[2024/05/23 12:49:33]: /bin/chmod 777 /var/spool/mqueue
mwexec()[2024/05/23 12:49:33]: /bin/chown 0:0 /var/spool/mqueue
mwexec()[2024/05/23 12:49:33]: /bin/chmod 777 /var/spool/clientmqueue
mwexec()[2024/05/23 12:49:33]: /bin/chown 0:0 /var/spool/clientmqueue
starting php based setup routines step banner


*** fvdw-sl NAS firmware
    This is fvdw-sl version: fvdw-sl 18.3
    built on: February 20 2024

    LAN IP address: 192.168.188.46 (DHCP)

    Port configuration:

    LAN   -> eth0
php based setup routines finished
web permission on resolv.conf
set device tuning for dms performance
move smbd en nmbd db files away from ram disk to prevent hanging samba server

------------------------
Monitor if file system check is required on next booting
LED settings

Send a boot mail notification to
else loop1 finished
rcS finished
root@fvdwsl-base:/ # mount
/dev/sda1 on / type ext3 (rw,noatime,data=ordered)
none on /proc type proc (rw,noatime)
none on /sys type sysfs (rw,noatime)
none on /dev/pts type devpts (rw,noatime,mode=600,ptmxmode=000)
/dev/sda5 on /rw_fs type ext3 (rw,noatime,data=ordered)
tmpfs on /rw_fs/tmp/usr/var type tmpfs (rw,noatime,size=5000k)
nfsd on /proc/fs/nfsd type nfsd (rw,noatime)
/dev/sda8 on /share/1000 type ext4 (rw,noatime,nodelalloc,data=ordered)
/dev/sda7 on /lacie-boot type ext3 (rw,noatime,data=ordered)
/dev/sda7 on /lib/firmware type ext3 (rw,noatime,data=ordered)
razzor0
Donator VIP
Donator VIP
 
Posts: 55
Joined: Sun Feb 04, 2024 11:02 am

Re: Raid clean, degraded completed, estimated time ...

Postby Jocko » Sun May 26, 2024 4:30 pm

and check if really the raid is not rebuilt :scratch
Code: Select all
cat /proc/mdstat
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid clean, degraded completed, estimated time ...

Postby razzor0 » Sun May 26, 2024 4:31 pm

Code: Select all
root@fvdwsl-base:/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
unused devices: <none>
razzor0
Donator VIP
Donator VIP
 
Posts: 55
Joined: Sun Feb 04, 2024 11:02 am

Re: Raid clean, degraded completed, estimated time ...

Postby Jocko » Sun May 26, 2024 4:34 pm

More and more amazing. So do again
Code: Select all
mdadm --assemble /dev/md0 --run
echo $?
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Raid clean, degraded completed, estimated time ...

Postby razzor0 » Sun May 26, 2024 4:35 pm

uff..... :dontknow

Code: Select all
root@fvdwsl-base:/ # mdadm --assemble /dev/md0 --run
mdadm: failed to get exclusive lock on mapfile - continue anyway...
mdadm: /dev/md0 has been started with 4 drives (out of 5).
root@fvdwsl-base:/ # echo $?
0



Plus this from email
Code: Select all
This is an automatically generated mail message from mdadm
running on fvdwsl-base.local

A DegradedArray event had been detected on md device /dev/md0.


P.S. The /proc/mdstat file currently contains the following:

Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md0 : active raid5 sdb8[1] sde8[4] sdd8[3] sdc8[2]
7800905728 blocks super 1.0 level 5, 512k chunk, algorithm 2 [5/4] [_UUUU]
bitmap: 4/15 pages [16KB], 65536KB chunk
razzor0
Donator VIP
Donator VIP
 
Posts: 55
Joined: Sun Feb 04, 2024 11:02 am

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 7 guests