Problems with importing existing volume

Status
Not open for further replies.

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
Hi all,

I used an earlier version of Freenas about a year ago, and accidently turned off the web interface and local console. This made me unable to access it so I just left it. Today I'm working to recover all info. It was a laptop with freenas installed in the harddrive and two external USB harddrives as extra volumes. I think I used UFS as fs.

I have now installed Freenas 8 on a USB stick (NICE gui btw) and encounter problems when trying to import the existing volumes. I can't find any of them! I try auto import and it doesn't find any of them, and I try the import volumes button as well, but it says an error was encountered. I believe the drives and systems should be all good, no faults of any kind. But I can't find them! Any clues? Please tell me what to clarify.

Many thanks and kind regards
s
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
Hi,

quick update:

This is what I try to do: From GUI, go into storage, volumes, import volume... Error occurs.

I do the same thing but with auto import. it scans for a quick while, and then the drop down menu that appears is empty.

Any suggestions?

Pleeeeeeeeaaaaaaaaseeeeee
 

Durkatlon

Patron
Joined
Aug 19, 2011
Messages
414
What happens when you type "zpool import" from the command line on the console (or ssh connection)?
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
Thanks for your time and help!

What happens when you type "zpool import" from the command line on the console (or ssh connection)?

I choose option 9 to access the shell. Then I enter "zpool import".

I get the following output:


ZFS NOTICE:
prefetch is disabled by deafult on i386 -- to enable, add "vfs.zfs.prefetch_disabled=0" to /boot/loader.conf.
ZFS WARNING: Recommended minimum kmem_size is 512MB; expect unstable behaviour. Consider tuning vm.kmem_size and vm.kmem_size_max in /boot/loader.conf

ZFS filesystem version 4
ZFS storage pool version 15.


After that control is returned to the user at the shell. Nothing visible has changed in GUI either (no new volumes are found). Please help!
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
So just to clarify, you're still using the laptop with both disks connected using USB?

Can you find the disks listed if you do 'dmesg | more' from the command line?
 

Durkatlon

Patron
Joined
Aug 19, 2011
Messages
414
You get those warning messages when the system loads the ZFS libraries. The fact that it immediately returned you to the shell prompt after those warnings means that the command did not see any import candidates.

But upon re-reading your original message I guess that is not surprising since you said you were using UFS, not ZFS. Sorry, I kind of missed that part. I have no experience with UFS myself, so hopefully someone else can chime in.
 
Joined
Sep 26, 2011
Messages
5
Don't see active volumes

I had 8-RC1 and ran into problems, then I said F'IT and wrote 8-RC5 to my USB disk and popped it in thinking it would be easy for me to set back up (importing volumes, etc).

When I'm in the web gui: Storage > Active Volumes

I see nothing, I was able to "Auto Import" my volumes though! I did fish around a bit for help and ran into two commands that gave me some information.

gpart show

zpool status

Here are my results:


freenas# zpool status
pool: backup
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
backup ONLINE 0 0 0
mirror ONLINE 0 0 0
ada1p2 ONLINE 0 0 0
ada3p2 ONLINE 0 0 0

errors: No known data errors

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

NAME STATE READ WRITE CKSUM
store1 ONLINE 0 0 0
mirror ONLINE 0 0 0
ada0p2 ONLINE 0 0 0
ada2p2 ONLINE 0 0 0

errors: No known data errors



freenas# gpart show
=> 63 7653240 da0 MBR (3.6G)
63 953505 1 freebsd [active] (466M)
953568 63 - free - (32K)
953631 953505 2 freebsd (466M)
1907136 3024 3 freebsd (1.5M)
1910160 41328 4 freebsd (20M)
1951488 5701815 - free - (2.7G)

=> 0 953505 da0s1 BSD (466M)
0 16 - free - (8.0K)
16 953489 1 !0 (466M)

=> 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)

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

=> 63 1258291125 zvol/store1/netshare MBR (600G)
63 1258274997 1 ntfs (600G)
1258275060 16128 - free - (7.9M)




Now - if I go to "Create Volume" I see 4 disks, I don't want to do that though because all my data is there. Do I have to import disks? If I go to "Import Volume" I get weirdness :p

I get a spot to put "Volume Name":
I get a spot to select "Disk":

ada0p1 <-- 2 GB
ada0p2 <-- 1.8 TB
ada1p1 <-- 2 GB
ada1p2 < --1.8 TB
...

I'm seeing a pattern here, what's up with the 2 GB partitions on disk 0, 1, 2 and 3...?

I need help to see my disks similar to this poster so I'd thought I'd post my woes too :p

* I edited my post to upload a picture of my volume set.
 

Attachments

  • freenas.jpg
    freenas.jpg
    13.1 KB · Views: 365

Durkatlon

Patron
Joined
Aug 19, 2011
Messages
414
So you auto-import the ZFS volumes from the WebGUI? Aren't the volumes supposed to be accessible after that though whatever means you want (CIFS, from the shell, mounted in /mnt, etc).
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
The 2GB partitions were an 'un-optionally' created striped swap partition in version 8.0. In 8.01 it became optional, but you're stuck with them now.

I was able to "Auto Import" my volumes though!

Now I'm confused, if you were able to Auto Import your volumes, you should be back in business. You probably just need to recreate the CIFS share or whatever other method of accessing your files on your network.

The part that's even more confusing is that when you go to 'Create Volume', it's offering up your partitions, which you are correct about not doing because it'll wipe your data...

So I guess you need to clarify the part about Auto Import working...
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
The 2GB partitions were an 'un-optionally' created striped swap partition in version 8.0. In 8.01 it became optional, but you're stuck with them now.



Now I'm confused, if you were able to Auto Import your volumes, you should be back in business. You probably just need to recreate the CIFS share or whatever other method of accessing your files on your network.

The part that's even more confusing is that when you go to 'Create Volume', it's offering up your partitions, which you are correct about not doing because it'll wipe your data...

So I guess you need to clarify the part about Auto Import working...

Someone hijacked my thread! Other people have similar problems I guess :)

I'll try what you suggested protosd, and be back in a jiffy...
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
So just to clarify, you're still using the laptop with both disks connected using USB?

Can you find the disks listed if you do 'dmesg | more' from the command line?

As mentioned, there's someone else commenting here with a similar problem, which is not really my problem.

To clarify: The original set up was with operating system on the laptop HD, and I have a vague memory of having several paritions there too (for swap, OS and storage). maybe not though, don't remember too clearly. On top of that I had two HD's connected via USB, one 1TB using FAT32, mounted as read only, accessed via samba. The other was about 80GB flash drive and running UFS. Today I only have the flash drive with UFS connected, and the other USB hole (only two on the laptop!) has a small USB flash stick which I installed freenas 8 on, and boot from the USB. Currently I can only access the USB stick and not the laptop HD or the UFS USB drive.

dmesg | more yields a lot of information! Since it seems like running shell commands from the GUI has been removed in freenas 8, I can't really write everything manually in here. There are several pages of information. Is there anything you want me to look for in particular? Among other things it says something about <Freecom Technologies> (which is the USB 80gb drive I want to import) at usbus3, and then something like "umass0: Freecom Technologies [...]".
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
So you auto-import the ZFS volumes from the WebGUI? Aren't the volumes supposed to be accessible after that though whatever means you want (CIFS, from the shell, mounted in /mnt, etc).

I'm afraid not:
Auto-import via the GUI gives me a dropdown menu with zero elements in it.
Import volume via the GUI gives me "An error has occured".
Create volume lets me choose the to I'm interested in! ada0 @30GB, which is the laptop drive, and da0 @80GB which is the USB flash drive on UFS (if I recall correctly...).

As previously mentioned, confusing part is probably due to two different posters in this thread.
 
Joined
Sep 26, 2011
Messages
5
Didn't hijack your thread

I didn't hijack your thread, sorry if you feel that way. In my opinion I'm having the same problem.

My problem is resolved. I was using the wrong version of FreeNAS. I was apparently using 8.1-RC1 and not 8.0-RC1 so when I "upgraded" to RC5 it was in 8.0 but really I should have upgraded to 8.1-RC2. Case closed, auto import worked!

About your problem. Did you do a backup of your settings from the old version you were on? I don't remember if that was axe'd. What I was going to do if all else failed is restore my old setup then restore my settings.

Good luck!
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
I didn't hijack your thread, sorry if you feel that way. In my opinion I'm having the same problem.

My problem is resolved. I was using the wrong version of FreeNAS. I was apparently using 8.1-RC1 and not 8.0-RC1 so when I "upgraded" to RC5 it was in 8.0 but really I should have upgraded to 8.1-RC2. Case closed, auto import worked!

About your problem. Did you do a backup of your settings from the old version you were on? I don't remember if that was axe'd. What I was going to do if all else failed is restore my old setup then restore my settings.

Good luck!

No problem at all!! Just a bit confusing :) Congrats on solving your problem.

No I didn't do a backup. The old version is still installed on the laptop HD, and working. However, I had set a static route (not dhcp or anything) which I don't remember, so I can't access the GUI. Also I had locked the local console on the laptop so I can only start the server but no IP is assigned. If I could manage to assign an IP I would be able to access it from the LAN and there would be no problem. Now however no IP is assigned and I don't really know how to fix it. To step around this problem I'm trying to access the drives and my data from another freenas installation (booting the laptop from a USB stick with freenas 8).
 
Joined
Sep 26, 2011
Messages
5
IP?

So you can access the console or not? If not you're essentially saying you're locked out of both the console and the web gui right?

If you're essentially totally locked out of your FreeNAS then maybe you could boot another linux distro and change the networking config to assign an IP or you could look at it and see what you have?

Here's how to config network manually for BSD: http://www.freebsd.org/doc/handbook/config-network-setup.html

Scroll down to the section right above 11.8.3 where it says to edit "/etc/rc.conf". You'll either see what you have set or can change it to what you want.

Then reboot your machine and see if you can get into the web gui.
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
So you can access the console or not? If not you're essentially saying you're locked out of both the console and the web gui right?

If you're essentially totally locked out of your FreeNAS then maybe you could boot another linux distro and change the networking config to assign an IP or you could look at it and see what you have?

Here's how to config network manually for BSD: http://www.freebsd.org/doc/handbook/config-network-setup.html

Scroll down to the section right above 11.8.3 where it says to edit "/etc/rc.conf". You'll either see what you have set or can change it to what you want.

Then reboot your machine and see if you can get into the web gui.

Well, that's essentially one part of what I'm trying to do. But I somehow can't access the laptop HD, which has the original freenas installation on it....! Any suggenstions?
 
Joined
Sep 26, 2011
Messages
5
HD's?

What distro are you using to access your laptop hard drive?

I'm used to working with an Ubuntu cd-rom, usb thumb drive or other boot media, boot it live so I've got a nice gui to mount disks with.
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
What distro are you using to access your laptop hard drive?

I'm used to working with an Ubuntu cd-rom, usb thumb drive or other boot media, boot it live so I've got a nice gui to mount disks with.

Just trying with the latest freeNas dist, booting from USB...
 
Joined
Sep 26, 2011
Messages
5
Your problem

OK - so here's your problem (potentially).

You're booting from USB using the new version 8 FreeNAS and trying to import your stuff. What I'm suggesting is ditch that, put Ubuntu or some other live version of a distro your comfortable with.

1 - Boot to the Linux Live Distro Gui
2 - Mount the laptop hard drive if it's not already
3 - Go to: /etc/rc.conf <-- Edit your file per the previous BSD network config link, make DHCP available on that network interface
4 - Reboot - you should NOW get a network address (that you didn't forget) on your OLD installation of FreeNAS.
5 - Try and go the WebGui (using your new IP) and see if you can login
6 - Then you can unlock whatever it is you have locked

* Since our conversation though I don't remember if you forgot your credentials or not ha ha. That would suck!

Am I missing something here? That's how I'd go about doing it...unless I forgot my credentials all together then you'd need to blank out your admin / root password and I haven't had to do that on Linux before (only WindErs).
 

stusse

Dabbler
Joined
Sep 23, 2011
Messages
12
OK - so here's your problem (potentially).

You're booting from USB using the new version 8 FreeNAS and trying to import your stuff. What I'm suggesting is ditch that, put Ubuntu or some other live version of a distro your comfortable with.

1 - Boot to the Linux Live Distro Gui
2 - Mount the laptop hard drive if it's not already
3 - Go to: /etc/rc.conf <-- Edit your file per the previous BSD network config link, make DHCP available on that network interface
4 - Reboot - you should NOW get a network address (that you didn't forget) on your OLD installation of FreeNAS.
5 - Try and go the WebGui (using your new IP) and see if you can login
6 - Then you can unlock whatever it is you have locked

* Since our conversation though I don't remember if you forgot your credentials or not ha ha. That would suck!

Am I missing something here? That's how I'd go about doing it...unless I forgot my credentials all together then you'd need to blank out your admin / root password and I haven't had to do that on Linux before (only WindErs).

It's just that I don't really see how I should be able to mount the laptop drive with ubuntu if I can't do it with freenas...

Anyone got any suggestions?

Many thanks
 
Status
Not open for further replies.
Top