This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Help. Newbie Mistake

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Karl
NewUser
NewUser
Posts: 5
Joined: 08 Sep 2012 23:32
Status: Offline

Help. Newbie Mistake

Post by Karl »

I am very new to zfs. I hope I haven't lost 1.3T of data...

I created vdev POOL1 (stripe) and created pool NAS41. Loaded it up with data. All is well.

In attempting to grow the pool size, to the best that I know how through Google, I created vdev POOL2 with new hard drive. And then attempted to create using the same pool name NAS41. Resulting in two pool entries with the same NAS41 name. ZFS didn't like that and gave me errors (cannot create or something like that).

I then delete the NAS41 entry created with vdev POOL2. And now the original NAS41 entry with vdev POOL1 is in unkown state.

Then I deleted the original pool with vdev POOL1, and recreated again, and NAS4FREE is showing it as a fresh drive with no data.

I attempted the import command but no luck (probably because I never exported). Restore NAS4FREE to earlier known state did nothing.

I searched forums, Googled forever, and still find no solution to recover the data in vdev POOL1.

Your timely help is very appreciated.
Karl

User avatar
misterredman
Forum Moderator
Forum Moderator
Posts: 184
Joined: 25 Jun 2012 13:31
Location: Switzerland
Status: Offline

Re: Help. Newbie Mistake

Post by misterredman »

Karl wrote:I attempted the import command but no luck
What was the result of the import command?
NAS1: Pentium E6300 - Abit IP35Pro - 4GB RAM - Backup of NAS2
NAS2: Core 2 Quad Q9300 - Asus P5Q-EM - 8GB RAM
pyload - flexget - tvnamer - subsonic - owncloud - crashplan - plex media server

Karl
NewUser
NewUser
Posts: 5
Joined: 08 Sep 2012 23:32
Status: Offline

Re: Help. Newbie Mistake

Post by Karl »

misterredman wrote:
Karl wrote:I attempted the import command but no luck
What was the result of the import command?

Result of the import command was "no pool found".

After more reading, I issued the import -D command. This time it showed my two NAS41 entries! I picked the one which had data in it, and recovered using the import -Df flags. So I got my pool back, except it shows an empty drive :-(

So closer, but not quite there yet...

User avatar
misterredman
Forum Moderator
Forum Moderator
Posts: 184
Joined: 25 Jun 2012 13:31
Location: Switzerland
Status: Offline

Re: Help. Newbie Mistake

Post by misterredman »

Karl wrote:I picked the one which had data in it

Are you sure you picked the right one? How did you know the one you choose had data in it?

To avoid confusion I'd remove the "new" drive physically (they are empty) and retry the import.
NAS1: Pentium E6300 - Abit IP35Pro - 4GB RAM - Backup of NAS2
NAS2: Core 2 Quad Q9300 - Asus P5Q-EM - 8GB RAM
pyload - flexget - tvnamer - subsonic - owncloud - crashplan - plex media server

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: Help. Newbie Mistake

Post by daoyama »

Karl wrote: Then I deleted the original pool with vdev POOL1, and recreated again, and NAS4FREE is showing it as a fresh drive with no data.

I attempted the import command but no luck (probably because I never exported). Restore NAS4FREE to earlier known state did nothing.
Did you try import -D like this?

# zpool import -D 8139102782145167403 newpool

It import old pool as "newpool" to the system.
(Replace 8139102782145167403 with your pool id)

Regards,
Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

Karl
NewUser
NewUser
Posts: 5
Joined: 08 Sep 2012 23:32
Status: Offline

Re: Help. Newbie Mistake

Post by Karl »

misterredman wrote:
Karl wrote:I picked the one which had data in it

Are you sure you picked the right one? How did you know the one you choose had data in it?

To avoid confusion I'd remove the "new" drive physically (they are empty) and retry the import.
Yes I am sure. vdev POOL1 consists of 2 drives (1.0TB and 0.5TB) whereas POOL2 (the"new" drive) consist of 1 drive (1.5TB).

I did physically remove the "new" drive (my POOL2) and retry import with no luck.

I wonder by recreating POOL NAS41, did I reformatted the ZFS file system? From all my reading it seems that I may not need to format a ZFS drive, by creating a POOL the formatting automatically done? (I know, this may be a newbie question).

Karl
NewUser
NewUser
Posts: 5
Joined: 08 Sep 2012 23:32
Status: Offline

Re: Help. Newbie Mistake

Post by Karl »

daoyama wrote:
Karl wrote: Then I deleted the original pool with vdev POOL1, and recreated again, and NAS4FREE is showing it as a fresh drive with no data.

I attempted the import command but no luck (probably because I never exported). Restore NAS4FREE to earlier known state did nothing.
Did you try import -D like this?

# zpool import -D 8139102782145167403 newpool

It import old pool as "newpool" to the system.
(Replace 8139102782145167403 with your pool id)

Regards,
Daisuke Aoyama
That is very close, I issued the import command like this:

# zpool import -Df 8139102782145167403 NAS41

Obviously I replaced your numeric string with my own ID, and NAS41 was my original POOL name.

Post Reply

Return to “ZFS (only!)”