Re-import zfs after reboot.

Status
Not open for further replies.

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
I'm having a weird problem with my Freenas 8.0.3p1 install on an Intel ss4200 unit.
I have a 3-drive RaidZ setup and CIFS sharing. If I have a power failure or a reboot, then access is sloww and streaming is not watchable. System is wired.
I have to export volume, shutdown and boot up, followed by a an auto-import ZFS and go through CIFS settings ( just have to click OK, not cancel).
Then the system is quick and snappy. Obviously something is not correct with rebooting. I've tried both 32bit and 64bit on my USB install. I did do an upgrade to V15 ZFS on the pool.
Does anyone have any suggestions?
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Paste "zpool status", and "zpool import"

There might be some issue related to the name of the pool
 

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
Paste "zpool status", and "zpool import"

There might be some issue related to the name of the pool

I'm getting the following for zpool status


Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.

FreeBSD 8.2-RELEASE-p6 (FREENAS.amd64) #0: Wed Jan 18 13:52:11 PST 2012

FreeNAS nanobsd (c) 2009-2010, The FreeNAS Development Team
All rights reserved.
FreeNAS is under the modified BSD license.

For more information, documentation, help or support, go here:
http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# zpool status
pool: Data
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
Data ONLINE 0 0 0
ada3 ONLINE 0 0 0

errors: No known data errors

pool: ZFS_Pool
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
ZFS_Pool ONLINE 0 0 0
raidz1 ONLINE 0 0 0
gpt/ada0 ONLINE 0 0 0
gpt/ada2 ONLINE 0 0 0
gpt/ada3 ONLINE 0 0 0

errors: No known data errors
[root@freenas] ~#

And zpool import goes back to command prompt.

Hope this helps. Again, I do use auto-import from GUI so the pool should come in correctly.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
That is pretty weird, all I can think of is your usb key being damaged or something, because I don't see anything wrong with the pools...
 

ugh#

Cadet
Joined
Mar 5, 2012
Messages
4
similar problem (I think...)

hi, I'm new here.
I did a fresh install of FreeNAS 8.0.4, instead of upgrade from beta2, and I have a very similar problem: after the installation none of the ZFS disks I've in my machine is auto importable (no raid, three independent volumes with different size, named A, P, U) via GUI (says "MiddlewareError").
I tried as suggested the CLI way (zpool import/zpool import -f), but nothing happens.

here is the "zpool list" and "zpool status" output


[root@freenas] ~# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
Disk A 147G 139G 8.40G 94% ONLINE -
Disk P 25.8G 166K 25.7G 0% ONLINE -
Disk U 74.5G 42.6G 31.9G 57% ONLINE -
[root@freenas] ~# zpool status
pool: Disk A
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
Disk A ONLINE 0 0 0
ada1p2 ONLINE 0 0 0

errors: No known data errors

pool: Disk P
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
Disk P ONLINE 0 0 0
ada2p2 ONLINE 0 0 0

errors: No known data errors

pool: Disk U
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
Disk U ONLINE 0 0 0
ada0p2 ONLINE 0 0 0

errors: No known data errors


the disks seems healthy... and no data lost

Do you think it's possible to mount the disks with another OS (like freebsd), save thtem somewhere like an external USB HDD and build up from new my NAS?

thanks for any useful suggestion.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
GUI cannot import already imported pools, do zpool export name before trying...

Your issue might be related that you have space within the name (?), try changing it: zpoo import poolname newname
 

ugh#

Cadet
Joined
Mar 5, 2012
Messages
4
thanks william,
no, there aren't spaces in drive names, just A,P,U.
tried zpool, everything works OK now.
 

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
That is pretty weird, all I can think of is your usb key being damaged or something, because I don't see anything wrong with the pools...

I've tried alternate USB and versions. I usually write an image direct to the usb and plug it into the ss4200.
One thing I did notice is a difference between import volume and auto import. Auto presents my pools. Import pool lists the 3 hard drives as 2 sets. One set has 2.0tb listed and the other set as 2.1tb. I physically have 3 drives from Samsung with 2.0tb capacity.
Do you think that there may some 'legacy' pool info left over on the drives from when I was playing around with the pools (learning pool setups with single drives per pool)?
Is there a CL command that can list the pool info stored on the drives and maybe a clean up option.

Thanks for all the help.
 

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
protosd,
Thanks for the quick response. I did actually try the zpool renaming trick from your FAQ page, with no success. It's just annoying that a reboot causes my problems. Once I auto imported the volumes, the list is blank from the import volume button (post #8).
I have started experimenting with Freenas from last released V7, so think there may be residual drive data from V7 followed a CLI ZFS pool update to ZFS-V15 with Freenas V8.
I'm considering backing up my data and doing a complete clean of all 3 drives and create a fresh RAIDZ. I just needed a CLI command to copy/backup/restore the files and not tie up a PC during this process.
 

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
This is what I get when I run a few commands from protosd's list,


[root@freenas] ~# gpart show
=> 63 3947013 da0 MBR (1.9G)
63 1930257 1 freebsd [active] (943M)
1930320 63 - free - (32K)
1930383 1930257 2 freebsd (943M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 42084 - free - (21M)

=> 0 1930257 da0s1 BSD (943M)
0 16 - free - (8.0K)
16 1930241 1 !0 (943M)

=> 34 3907029101 ada0 GPT (1.8T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834703 2 freebsd-zfs (1.8T)

=> 34 3907029101 ada1 GPT (1.8T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834703 2 freebsd-zfs (1.8T)

=> 34 3907029101 ada2 GPT (1.8T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834703 2 freebsd-zfs (1.8T)

[root@freenas] ~# camcontrol devlist
<SAMSUNG HD204UI 1AQ10001> at scbus2 target 0 lun 0 (ada0,pass0)
<SAMSUNG HD204UI 1AQ10001> at scbus3 target 0 lun 0 (ada1,pass1)
<SAMSUNG HD204UI 1AQ10001> at scbus4 target 0 lun 0 (ada2,pass2)
<WDC WD5000AAKS-55V0A0 05.01D05> at scbus5 target 0 lun 0 (ada3,pass3)
<A-DATA USB Flash Drive 0.00> at scbus6 target 0 lun 0 (da0,pass4)
[root@freenas] ~# zpool status -v
pool: Data
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
Data ONLINE 0 0 0
ada3 ONLINE 0 0 0

errors: No known data errors

pool: NASPool
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
NASPool ONLINE 0 0 0
raidz1 ONLINE 0 0 0
gpt/ada0 ONLINE 0 0 0
gpt/ada2 ONLINE 0 0 0
gpt/ada3 ONLINE 0 0 0

errors: No known data errors
[root@freenas] ~# glabel status
Name Status Components
ufs/FreeNASs3 N/A da0s3
ufs/FreeNASs4 N/A da0s4
ufs/FreeNASs1a N/A da0s1a
gpt/ada3 N/A ada0p2
gpt/ada2 N/A ada1p2
gpt/ada0 N/A ada2p2

Currently I have 3 2.0tb Samsungs and a WD 500gb drive.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Butlermere,

The reason I pointed you there was so you could learn about "gpart show" and there is also a couple of commands for wiping your disks (after you back them up). I have a 'draft' of a tutorial I'm working on for doing backups/restores/copies, but it's just notes etc. so it's not ready. Sorry you're having so much trouble for what seems like should be a simple thing.
 

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
I backed up the pool, via cp -r command, to an external case (tested the disk wipe command from your FAQ page). Did a wipe on the pool drives, imaged a 64bit 8.0.4 onto a USB flash drive and created the pool with a simple name of nas.
Maybe something to with importing the pool at reboot? I can even leave the unit on overnight, after a reboot, and the browsing/streaming speed is down to 25% compared to the initial import.
It's annoying that the initial import produces excellent performance, so the hardware is up to the task!!.
 

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
Also,
After a reboot, I can hear 'each' drive spins up then clicks then take some time reading the file structure. This winding and clicking occurs at each change in directory level, from the windows explorer.
So it appears as though it's data flow is interrupted and repeated each time the drive's accessed!!.
 

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
Protosd,
Good news. I think I've finally got it working but it may have been more miss than hit.
I played with permissions and ownership, after having access problems from an import process, having to use chown & chmod. Once the pools were standardized, a shutdown and reboot worked wonders. Now I'll see if power saving settings affects it. Thanks for your tips and advice.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
That's good news, glad to hear you're making progress. It's hard for me to keep up with all the threads I've posted in ;)

The spinning up and clicking at each change in directory level is a little concerning, it sounds like your power saving settings are a little short or there's some other problem. Perhaps having to reimport after each boot has something to do with the pool being offline and the power settings.

Anyway, you're making progress, so one step at a time!
 

butlermere

Cadet
Joined
Feb 28, 2012
Messages
9
Protosd,
It appears to be the power management settings. No spin down/power managment produces a good browsing.speed.
I have the 3 x 2tb F4 samsung drives and there appears to be some write up on their power setting issues per http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=65&t=9126 . The drive spinning is obviously a clue so will need to investigate further. These are green drives so they may have their own management built in. Will keep you posted.
 
Status
Not open for further replies.
Top