NAS Reset with Data intact

Questions about SNMP, Power, System, Logs, disk, & RAID.
Post Reply
jverdin
Starting out
Posts: 14
Joined: Wed Feb 08, 2012 11:18 pm

NAS Reset with Data intact

Post by jverdin »

I performed a NAS reset with Data intact. The system cannot find /dev/mdo or /Share/MD0_Data. What to do next?>

Code: Select all

[~] # ls /share/
Amcrest@         Elements@  HDC_DATA/  HDG_DATA/  HDK_DATA/  HDO_DATA/  HDS_DATA/  HDW_DATA/  homes@          Microsoft@   QVRProAppData@    VMWare@
BerryBoot2@      external/  HDD_DATA/  HDH_DATA/  HDL_DATA/  HDP_DATA/  HDT_DATA/  HDX_DATA/  Horizon Stuff@  Morrison@    QVRProAutoSnap@
CACHEDEV1_DATA/  HDA_DATA/  HDE_DATA/  HDI_DATA/  HDM_DATA/  HDQ_DATA/  HDU_DATA/  HDY_DATA/  iSCSIimages@    Multimedia@  QVRProDB@
Compass Stuff@   HDB_DATA/  HDF_DATA/  HDJ_DATA/  HDN_DATA/  HDR_DATA/  HDV_DATA/  HDZ_DATA/  Jesse Stuff@    Public@      QVRProRecording@
Last edited by dolbyman on Mon Dec 05, 2022 11:27 am, edited 1 time in total.
Reason: title spelling
User avatar
dolbyman
Guru
Posts: 35253
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: NAS Reset with Data entact

Post by dolbyman »

md0 is a device not a share..recreate the shares and point them to md0

I hope you have backups (ALWAYS have backups!)
User avatar
Moogle Stiltzkin
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: NAS Reset with Data entact

Post by Moogle Stiltzkin »

i assume you used the 4th option ya? "reset settings"
1. 3 second 1 beep

2. 10 second 2 beep
This restores the default system settings without deleting the user data.


3. factory reset

4. Reset Settings
Comparable to the 10 second button press mentioned in the Hardware resets section earlier. This restores the default system settings without deleting the user data.

5. reinitialize
https://www.qnap.com/en/how-to/faq/arti ... -explained

I hope you have backups (ALWAYS have backups!)
i hope you have backup? :' Before i do anything dangerous even if it promises not to delete user data, I STILL have a backup, just in case.
https://www.reddit.com/r/qnap/comments/ ... _a_backup/


Did you go to your shares, are they shown?

sometimes if they aren't shown, i will add back the share with the exact name (same casing as previously), then it will say it detected data, then it will show again. if that doesn't work then i have no idea. rip :( (and this is why u need backups)



hope u figure this out otherwise u may have to resort to expensive solution. this site claims to have a recovery method, but i see the prices are bonkers and no idea if they legitimately work or not. i would have rather invested in a backup plan rather than this :?
https://tinyurl.com/3b43xbtu

other people discussing whether ufs explorer actually works or not for recovery
https://www.reddit.com/r/qnap/comments/ ... ied_ts251/
https://www.reddit.com/r/qnap/comments/ ... _might_it/
https://www.reddit.com/r/DataHoarder/co ... s_because/
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
User avatar
Moogle Stiltzkin
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: NAS Reset with Data intact

Post by Moogle Stiltzkin »

jverdin wrote: Mon Dec 05, 2022 11:21 am The system cannot find /dev/mdo or /Share/MD0_Data. What to do next?>
i found this, not sure if it will help or not :'
viewtopic.php?t=102367

other stuff i found

https://www.reddit.com/r/qnap/comments/ ... e_default/



I hope this is the solution otherwise really rip :shock:
My Shared Folder was removed but data is still there. How to access the data?
Last modified date: 2022-03-30

If you perform an advanced NAS reset, or if you remove a shared folder but choose to not delete data, then the shared folder will disappear but the data contained in it will remain on the volume.

https://www.qnap.com/en-us/how-to/knowl ... s-the-data
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
jverdin
Starting out
Posts: 14
Joined: Wed Feb 08, 2012 11:18 pm

Re: NAS Reset with Data intact

Post by jverdin »

Yes, the shares are located in the listing below: Morrison@, Public@ ..... So how do I fix this please include commands to link the shares to the md0.. Thanks!

Code: Select all

[~] # ls /share/
Amcrest@         Elements@  HDC_DATA/  HDG_DATA/  HDK_DATA/  HDO_DATA/  HDS_DATA/  HDW_DATA/  homes@          Microsoft@   QVRProAppData@    VMWare@
BerryBoot2@      external/  HDD_DATA/  HDH_DATA/  HDL_DATA/  HDP_DATA/  HDT_DATA/  HDX_DATA/  Horizon Stuff@  Morrison@    QVRProAutoSnap@
CACHEDEV1_DATA/  HDA_DATA/  HDE_DATA/  HDI_DATA/  HDM_DATA/  HDQ_DATA/  HDU_DATA/  HDY_DATA/  iSCSIimages@    Multimedia@  QVRProDB@
Compass Stuff@   HDB_DATA/  HDF_DATA/  HDJ_DATA/  HDN_DATA/  HDR_DATA/  HDV_DATA/  HDZ_DATA/  Jesse Stuff@    Public@      QVRProRecording@
User avatar
dolbyman
Guru
Posts: 35253
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: NAS Reset with Data intact

Post by dolbyman »

you do this via the GUI

create a share and manually point it to your volume (explained in the manual) ..there should be plenty of threads in this forum as well
jverdin
Starting out
Posts: 14
Joined: Wed Feb 08, 2012 11:18 pm

Re: NAS Reset with Data intact

Post by jverdin »

Well, I can see the Raid and the drives but the DataVol1 is unmounted, and the Storage pool shows Error.


Code: Select all

[~] # md_checker

Welcome to MD superblock checker (v2.0) - have a nice day~

Scanning system...


RAID metadata found!
UUID:           a5d8eb23:6c0f0a9c:33c67b03:bf8b9268
Level:          raid5
Devices:        4
Name:           md1
Chunk Size:     512K
md Version:     1.0
Creation Time:  Oct 24 15:35:08 2020
Status:         ONLINE (md1) [UUUU]
===============================================================================================
 Enclosure | Port | Block Dev Name | # | Status |   Last Update Time   | Events | Array State
===============================================================================================
 NAS_HOST       1        /dev/sda3   0   Active   Dec  4 17:20:09 2022   107935   AAAA
 NAS_HOST       2        /dev/sdb3   1   Active   Dec  4 17:20:09 2022   107935   AAAA
 NAS_HOST       3        /dev/sdc3   2   Active   Dec  4 17:20:09 2022   107935   AAAA
 NAS_HOST       4        /dev/sdd3   3   Active   Dec  4 17:20:09 2022   107935   AAAA
===============================================================================================
jverdin
Starting out
Posts: 14
Joined: Wed Feb 08, 2012 11:18 pm

How to get the DataVol1 mounted? Storage pool status Error

Post by jverdin »

Well, I'm getting closer. The 10.71 is my volume but cannot get the storage pool out of the error status and get the DataVol1 mounted

Code: Select all

[~] # lvscan
  WARNING: duplicate PV xPkrmu1IL3e9JIIpxjNMZx3EMBMifYGk is being used from both devices /dev/drbd1 and /dev/md1
  Found duplicate PV xPkrmu1IL3e9JIIpxjNMZx3EMBMifYGk: using /dev/drbd1 not /dev/md1
  Using duplicate PV /dev/drbd1 from subsystem DRBD, ignoring /dev/md1
  inactive          '/dev/vg1/lv544' [111.49 GiB] inherit
  inactive          '/dev/vg1/tp1' [10.71 TiB] inherit
  inactive          '/dev/vg1/lv1' [6.93 TiB] inherit
  ACTIVE            '/dev/vg1/lv1312' [1.11 GiB] inherit
  inactive          '/dev/vg1/lv288' [32.00 GiB] inherit
  inactive          '/dev/vg1/snap10002' [6.93 TiB] inherit
  inactive          '/dev/vg1/snap10003' [6.93 TiB] inherit
  inactive          '/dev/vg1/snap10001' [6.93 TiB] inherit
  inactive          '/dev/vg1/snap10004' [6.93 TiB] inherit
User avatar
dolbyman
Guru
Posts: 35253
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: NAS Reset with Data intact

Post by dolbyman »

md0 would have been a legacy volume, but now you say md1 is unmounted, what is it?

Please state the NAS model and firmware used.
User avatar
dolbyman
Guru
Posts: 35253
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: NAS Reset with Data intact

Post by dolbyman »

I also merged both of your topics, no need to open them left and right for the same issue
jverdin
Starting out
Posts: 14
Joined: Wed Feb 08, 2012 11:18 pm

Re: NAS Reset with Data intact

Post by jverdin »

Well, Should I tell it to fix it or quit? I have created a ticket with QNAP, but while waiting for them, I wanted to see if I could fix it.. :)

Code: Select all

[~] # parted -l
Model: Seagate ST4000VN008-2DR1 (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name     Flags
 1      20.5kB  543MB   543MB   ext3            primary
 2      543MB   1086MB  543MB   linux-swap(v1)  primary
 3      1086MB  3992GB  3991GB                  primary
 4      3992GB  3992GB  543MB   ext3            primary
 5      3992GB  4001GB  8554MB  linux-swap(v1)  primary


Model: Seagate ST4000VN008-2DR1 (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name     Flags
 1      20.5kB  543MB   543MB   ext3            primary
 2      543MB   1086MB  543MB   linux-swap(v1)  primary
 3      1086MB  3992GB  3991GB                  primary
 4      3992GB  3992GB  543MB   ext3            primary
 5      3992GB  4001GB  8554MB  linux-swap(v1)  primary


Model: Seagate ST4000VN008-2DR1 (scsi)
Disk /dev/sdc: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name     Flags
 1      20.5kB  543MB   543MB   ext3         primary
 2      543MB   1086MB  543MB                primary
 3      1086MB  3992GB  3991GB               primary
 4      3992GB  3992GB  543MB   ext3         primary
 5      3992GB  4001GB  8554MB               primary


Model: Seagate ST4000VN008-2DR1 (scsi)
Disk /dev/sdd: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name     Flags
 1      20.5kB  543MB   543MB   ext3            primary
 2      543MB   1086MB  543MB   linux-swap(v1)  primary
 3      1086MB  3992GB  3991GB                  primary
 4      3992GB  3992GB  543MB   ext3            primary
 5      3992GB  4001GB  8554MB  linux-swap(v1)  primary


Model: WD Elements 25A3 (scsi)
Disk /dev/sde: 6001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  6001GB  6001GB  ntfs         primary


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/vg1-lv1312: 1195MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
 1      0.00B  1195MB  1195MB  ext3


Error: The backup GPT table is not at the end of the disk, as it should be.
This might mean that another operating system believes the disk is smaller.
Fix, by moving the backup to the end (and removing the old backup)?
Fix/Ignore/Cancel?
Anyone want to chime in?
Post Reply

Return to “System & Disk Volume Management”