Unable to mount or recover Volume after power lost.

Questions about SNMP, Power, System, Logs, disk, & RAID.
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

I've tried the steps before .... founded in this post :
viewtopic.php?p=224731

But when I try to execute e2fsck .... it says that DEV/MD1 is busy or locked by another programa,user, ....

:(
jacobite1
Easy as a breeze
Posts: 389
Joined: Fri Aug 07, 2015 7:02 pm
Location: London, England

Re: Unable to mount or recover Volume after power lost.

Post by jacobite1 »

Okay, I think you need to wait for QNAP's support to get in touch with you - reach out to them if you haven't already.
TVS-872XT-i5-16GB with 6*ST12000VNZ008 in RAID 6.
Backed up to a stack of a half dozen 'cold' external 12TB and 8TB HDDs - please back up your data, RAID is not the same as a backup!

Formerly TVS-463 with 4*WD60EFRX in RAID5, planning to reuse as an additional backup destination in the new year.
All protected by an APC SMT750VA UPS - protect your NAS from bad power!
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

I've opened a ticked 11 hours ago. I hope they contact soon with me.

Thanks anyway

Enviado desde mi LG-H870DS mediante Tapatalk
User avatar
dolbyman
Guru
Posts: 35248
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Unable to mount or recover Volume after power lost.

Post by dolbyman »

you might have to stop the services to do the e2fsck

depending on the firmware used you might also need the 64bit version of it

Code: Select all

# /etc/init.d/services.sh stop

Code: Select all

e2fsck_64 -f -v -C 0 /dev/md1
(that should also output the progress (and any errors encountered) to your current SSH session)

afterwards start the services again

Code: Select all

# /etc/init.d/services.sh start
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

dolbyman wrote:you might have to stop the services to do the e2fsck

depending on the firmware used you might also need the 64bit version of it

Code: Select all

# /etc/init.d/services.sh stop

Code: Select all

e2fsck_64 -f -v -C 0 /dev/md1
(that should also output the progress (and any errors encountered) to your current SSH session)

afterwards start the services again

Code: Select all

# /etc/init.d/services.sh start
Thanks.

The problem is that I really don't understand the first steps before e2fsck. I don't know what dev is correct to remplaze the md8 in this example:

swapoff /dev/md8
mdadm -S /dev/md8

mkswap /dev/sda2
mkswap /dev/sdb2
mkswap /dev/sdc2
mkswap /dev/sdd2
swapon /dev/sda2
swapon /dev/sdb2
swapon /dev/sdc2
swapon /dev/sdd2
e2fsck_64 -f /dev/md0
mount /dev/md0 /share/MD0_DATA/ -t ext4

In my particular case, I have only 3x6TB and dev/md1. I would be something like this:

swapoff /dev/mdX
mdadm -S /dev/mdX
mkswap /dev/sda1
mkswap /dev/sdb1
mkswap /dev/sdc1

#mkswap /dev/sdd2
swapon /dev/sda1
swapon /dev/sdb1
swapon /dev/sdc1
#swapon /dev/sdd2
e2fsck -f /dev/md1

I'm not sure if this are the correct steps.

Thanks again :P
User avatar
dolbyman
Guru
Posts: 35248
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Unable to mount or recover Volume after power lost.

Post by dolbyman »

not sure where all the other steps come from

after stopping the system services, examination is run (both commands posted above)
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

I'm going to try it
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

Error again, block resource. I'm restarting and try again.
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

[~] # e2fsck -f -v -C 0 /dev/md1
e2fsck 1.41.4 (27-Jan-2009)
e2fsck: Device or resource busy while trying to open /dev/md1
Filesystem mounted or opened exclusively by another program?


After stop all the services running:

/etc/init.d/services.sh stop
/etc/init.d/opentftp.sh stop
/etc/init.d/Qthttpd.sh stop

How can obtain full access to md1 ??
User avatar
dolbyman
Guru
Posts: 35248
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Unable to mount or recover Volume after power lost.

Post by dolbyman »

did you stop the services before or after the check ?

best thing to wait for qnap .. so they can help with other steps (like unmounting the filesystem etc.) they will probably do a remote desktop session
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

How long Qnap usually take to contact ?
jacobite1
Easy as a breeze
Posts: 389
Joined: Fri Aug 07, 2015 7:02 pm
Location: London, England

Re: Unable to mount or recover Volume after power lost.

Post by jacobite1 »

jdgszorro wrote:How long Qnap usually take to contact ?
48 hours/2-3 working days.

By Tuesday at the latest now, but they're usually faster. I wouldn't be surprised if it's tomorrow.

I don't think it will hurt to update your ticket by linking to this thread and telling QNAP support in advance the steps you have taken.
TVS-872XT-i5-16GB with 6*ST12000VNZ008 in RAID 6.
Backed up to a stack of a half dozen 'cold' external 12TB and 8TB HDDs - please back up your data, RAID is not the same as a backup!

Formerly TVS-463 with 4*WD60EFRX in RAID5, planning to reuse as an additional backup destination in the new year.
All protected by an APC SMT750VA UPS - protect your NAS from bad power!
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

jacobite1 wrote:
jdgszorro wrote:How long Qnap usually take to contact ?
48 hours/2-3 working days.

By Tuesday at the latest now, but they're usually faster. I wouldn't be surprised if it's tomorrow.

I don't think it will hurt to update your ticket by linking to this thread and telling QNAP support in advance the steps you have taken.
Thanks.
I wait for them.
User avatar
storageman
Ask me anything
Posts: 5507
Joined: Thu Sep 22, 2011 10:57 pm

Re: Unable to mount or recover Volume after power lost.

Post by storageman »

Very confusing thread MD IS Legacy volume
What happens when you run
"/etc/init.d/mountall"
jdgszorro
Starting out
Posts: 24
Joined: Sun Nov 27, 2016 1:27 am

Re: Unable to mount or recover Volume after power lost.

Post by jdgszorro »

Contacted by Qnap, waitting for remote support by team viewer.....
Post Reply

Return to “System & Disk Volume Management”