Page 1 of 1

ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 03:10
by OZnas4freeuser
G'day,

I am a new member of the forum although I have read a lot of posts in the past out of interest.
Some background. I had a Freenas setup with 8 HDDs 6 of which were individual and two as a mirror. As always happens some of those drives got full and .. well you know the story.
I took the opportunity of starting from scratch with NAS4Free and ZFS. I copied all the data off to external storage. Installed NAS4Free on a "Boot" drive and then using the web-browser GUI set up the system as follows.
For ease of explanation I will call the drives A1 & A2, B1 & B2, C1 & C3, D1 & D2. (Note that A, B, C & D are different sizes. The 1 & 2 indicate equal sizes.) I made mirrors of A1 with A2, B1 with B2, C1 with C2 and D1 with D2. I then made a Pool with Mirror1, Mirror2, Mirror3 and Mirror3
I am a bit hazy on what I did next but I copied back all the data. I created two "folders" Rescued and Backup. The copied back data should be in Rescued and Backup is for new data.
Now the problem I have is that all the folders I copied back show up in both places "Rescued" and Backup" I would like to know how to correct this situation. I may have used the wrong terminology in some places here in my explanation.
Would it have been better to make a pool of A1, B1, C1 and D1 another of A2, B2, C2 and D2 and mirrored those pools?
Thanks for your time in reading. Hopefully someone will understand and lead me in the right direction.
Ken

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 07:11
by b0ssman
are your "folders" samba shared that point to the same directory on the mounted pool?

if so then yes you should see the data in both folders.

you should create 2 datasets in the zfs pool and share those.

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 07:42
by OZnas4freeuser
G'day

Thanks for that quick response. Yes, Datasets was the term I was trying to recall.
So I have my pool, MYPOOL, in it there are two Datasets = "Rescued" and "backups". The "folders" in them were copied over, so I thought, to the "Rescued" dataset and the "backups" should be empty. If I connect in either a Windows Explorer window or a Mac Finder window I see NAS4FREE with the aforementioned folders (datasets), clicking on either shows the same content. I don't see any reference to "MYPOOL" which is sort of what I expected. I have hunted around the GUI but I can't see how to do what you are suggesting. When you reach your "threescore years and ten" you aren't quite as sharp as you used to be, so be patient (and that's not to imply you are not).
I do appreciate your help. I am hoping somehow I might get my NAS4Free box working the way I wanted. I did an awful lot of reading before I attempted to set it up but even then I have probably not understood and done something out of sequence.

Ken

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 08:09
by b0ssman
please post your samba share configs

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 08:14
by OZnas4freeuser
At the risk of feeling foolish but can you tell me how?

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 08:14
by b0ssman
make a screenshot and post it

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 08:28
by OZnas4freeuser
Is that
Services | CIFS/SMB | Shares
page?

I thought I would be able to work it out myself but ... how do I put my screenshot in here?
I do a lot of forum reading but very little posting (in spite of my age)

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 08:36
by b0ssman
you add them as file attachments to your post

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 08:42
by OZnas4freeuser
Ok so I think I got it. I was looking for an Icon that said "Attach". But hopefully I have correctly worked it out.

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 08:52
by b0ssman
your share point to the same folder /mnt/MYPOOL
because of this they show the same files because it is the same location

you will need to point to the dataset for each share
eg. /mnt/MYPOOL/Rescued and /mnt/MYPOOL/Backup

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 09:03
by OZnas4freeuser
That's what I presupposed but when I click on the little "path" button to open the window to choose, neither show up. What shows is the list of folders that should be below Rescued (and backups)

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 09:53
by b0ssman
then you have not created a dataset with those names and have moved all the data to the pool

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 10:48
by OZnas4freeuser
Well I thought I did. But maybe I am mistaken.
Screen shot 2015-01-22 at 7.41.48 PM.png

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 12:34
by b0ssman
check from the command line if those folders are there

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 12:51
by OZnas4freeuser
Interesting. No they are not.
However I created a new dataset Backups (as against backups) and that shows.
So if I create a replacement dataset for rescued how will I be able to move the folders into it. Can I do it from the GUI? If so, how? Or must I do the command line thing? Again, how? I am not afraid of command line but when you are 70 and haven't used it much in recent years (GUI, click and "drag and drop" tend to spoil one) I need a little assistance to jog the old grey cells.

Re: ZFS Duplicated data?? maybe

Posted: 22 Jan 2015 13:01
by b0ssman
if you have created the dataset and leave your cifs configuration the same you will be able to move the files using windows.
the dataset will just show up as a folder. just move all the files in there.