Cannot Import Volume. Reinstall after system crash
We had a UPS fail which crashed our Nexentastor 3.1.1 server. After reboot the console flaged a lot of operating system errors. I rebooted again and the system wouldnt boot. I reinstalled nexentastor onto the syspool drive, and have found that the data volume 'Datastore' is in a Faulted state. On tyring to import from web interface i get an error
Unable to import volume: cannot import 'Datastore': volume may be in use from other system, it was last accessed by NAS.... etc
I click Yes to proceed with a forced import and get the error
Unable to import volume: cannot import 'Datastore': I/O error
I have tried to import from the console window with
nmc@NAS:~$ setup volume import -F Datastore
this gives the same error about being in use by another system.
I have tried to import rom the console window with
nmc@NAS:~$ setup volume import -fF Datastore
this gives me an error :- SystemCallError: cannont import 'Datastore':I/O error
Is there any way to repair and reimport this volume?
do you have bad drives somewhere?
No all the drives look to be online and ok. On first reboot after the crash there was a message saying that we could discard 15 seconds of data and recover the volume, but the system hung and on hard reboot the system wouldn't boot. So the volume looks to be in that state were it has lost some logs or something and just needs to roll back those 15 seconds.
the zpool -F should rollback to the last place it can get to.. The in use by another system might be caused by the reinstall. Did you keep the same hostname?
try exiting out of nmc as root try
zpool clear -F Datastore
zpool import -F Datastore
lemme see the errors.
also as you are logged in as root, let me see the output of fmadm faulty and fmdump -V
I found out how to log in as root. I had to do the following for anyone else that may find this post
$ option expert_mode=1
then i ran
root@NAS:/zpool clear -F Datastore
cannot import 'Datastore': no such pool
root@NAS:/zpool import -F Datastore
cannot import 'Datastore': pool may be in use from other system, it was last accessed by NAS. Use '-f' to import anyway.
root@NAS:/zpool import -fF Datastore
Pool Datastore returned to its state as of Sat May 19......
Discarded approximately 5 seconds of transactions.
I can now see the datastore as online. I am going to check through it now and see if anything is missing. Looks like i need to reset permmissions and a few things. Will post back if there are any issues.
Thanks again for your help Linda.