Qnap nas raid problem. Please help.

Backup, Restore, Netbak Replicator, Cloud Storage Services
Post Reply
nixis11
New here
Posts: 4
Joined: Thu Apr 22, 2021 5:55 pm

Qnap nas raid problem. Please help.

Post by nixis11 » Thu Apr 22, 2021 6:07 pm

Hello, i have raid 10 system on qnap. It wasnt active. when i write a command "md_checker" status was offline. So i made a mistake and write following command

mdadm -CfR –assume-clean /dev/md1 -n 4 -l 5 -c 64 -e 1.0 /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3

but this is for raid 5. But i had using raid 10. Now when i write md_checker it shows raid 5 and active. But i cant see files. Is there a way make it raid 10 again? so i'm upset

elvisimprsntr
Easy as a breeze
Posts: 327
Joined: Thu Apr 06, 2017 6:07 am

Re: Qnap nas raid problem. Please help.

Post by elvisimprsntr » Thu Apr 22, 2021 6:27 pm

Why are you using the CLI in the first place?

Sadly, you likely lost your files. You have backups right? RAID is not a backup.

https://linux.die.net/man/8/mdadm
--assume-clean
Tell mdadm that the array pre-existed and is known to be clean. It can be useful when trying to recover from a major failure as you can be sure that no data will be affected unless you actually write to the array. It can also be used when creating a RAID1 or RAID10 if you want to avoid the initial resync, however this practice - while normally safe - is not recommended. Use this only if you really know what you are doing.
When the devices that will be part of a new array were filled with zeros before creation the operator knows the array is actually clean. If that is the case, such as after running badblocks, this argument can be used to tell mdadm the facts the operator knows.
When an array is resized to a larger size with --grow --size= the new space is normally resynced in that same way that the whole array is resynced at creation. From Linux version 3.0, --assume-clean can be used with that command to avoid the automatic resync.
Have you tried to stop the array and re-issue the correct command?
[Hourly] TS-453A-16G, R5x4x2TB Seagate ST2000VN00?, Crucial CT2KIT102464BF160B
[Daily] TS-253A-16G, TrueNAS-CORE, Seagate ST4000VN008, Crucial CT2KIT102464BF160B
[Weekly] USB3, 1x4TB Seagate STDR4000901, 45 min fire rated safe
[WAN1] ATT Fiber
[WAN2] SpeedTalk SIM in Netgear LTE Modem
[Firewall] pfSense on Protectli
[WLAN] OpenWRT on Linksys WRT3200ACM
[UPS] APC Back-UPS BX1500G

nixis11
New here
Posts: 4
Joined: Thu Apr 22, 2021 5:55 pm

Re: Qnap nas raid problem. Please help.

Post by nixis11 » Thu Apr 22, 2021 6:32 pm

How can i stop the array?

elvisimprsntr
Easy as a breeze
Posts: 327
Joined: Thu Apr 06, 2017 6:07 am

Re: Qnap nas raid problem. Please help.

Post by elvisimprsntr » Thu Apr 22, 2021 6:34 pm

mdadm --stop /dev/md1
[Hourly] TS-453A-16G, R5x4x2TB Seagate ST2000VN00?, Crucial CT2KIT102464BF160B
[Daily] TS-253A-16G, TrueNAS-CORE, Seagate ST4000VN008, Crucial CT2KIT102464BF160B
[Weekly] USB3, 1x4TB Seagate STDR4000901, 45 min fire rated safe
[WAN1] ATT Fiber
[WAN2] SpeedTalk SIM in Netgear LTE Modem
[Firewall] pfSense on Protectli
[WLAN] OpenWRT on Linksys WRT3200ACM
[UPS] APC Back-UPS BX1500G

nixis11
New here
Posts: 4
Joined: Thu Apr 22, 2021 5:55 pm

Re: Qnap nas raid problem. Please help.

Post by nixis11 » Thu Apr 22, 2021 6:48 pm

i stopped and try again.

when i command that
mdadm -CfR –assume-clean /dev/md1 -n 4 -l 10 -c 512 -e 1.0 /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3

gives this warning

You have listed more devices (5) than are in the array(4)!

nixis11
New here
Posts: 4
Joined: Thu Apr 22, 2021 5:55 pm

Re: Qnap nas raid problem. Please help.

Post by nixis11 » Thu May 06, 2021 2:16 pm

You scared me but I didn't lose my files. There was a way to fix the problem. I contacted qnap support, they remotely connected and accessed my files. Thank you to them.

User avatar
dolbyman
Guru
Posts: 22816
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Qnap nas raid problem. Please help.

Post by dolbyman » Thu May 06, 2021 8:36 pm

now start making external backups

Post Reply

Return to “Backup & Restore”