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!

Previously used folder as a mount point for newly created dataset, data loss?

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
default68
NewUser
NewUser
Posts: 5
Joined: 27 Dec 2017 08:36
Status: Offline

Previously used folder as a mount point for newly created dataset, data loss?

Post by default68 »

Hi,

Thank you for your help and patience in advance I tried to find answer even in oracle sites, but could not find any.
I have two 1T disks each ZFS without RAID, I have been using a few datasets for my data which works well, but recently I made an ordinary folder "backup" on pool1, and for a few months a script copied data to it in every week. Now I tried to turn it to a ZFS dataset by creating a dataset "backup" and referenced the folder as mounting point. Then I just saw that the "backup" dataset only consumes 144k and all of the data from the folder is lost. Only newly written data can be seen in it.
So my question is, whether a mounting point must be an empty folder when creating a new dataset?

Thank you for your help

User avatar
Snufkin
Advanced User
Advanced User
Posts: 317
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: Previously used folder as a mount point for newly created dataset, data loss?

Post by Snufkin »

default68 wrote:
02 Jan 2018 20:23
So my question is, whether a mounting point must be an empty folder when creating a new dataset?
If I'm not mistaken ZFS automount option is enabled by default in N4F.
So dir with ZFS pool name and subdirs with dataset names appear in /mnt automatically.
And there is no need to issue extra mount command.
XNAS 11.4.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2
ZFS 2 x HGST HDN726040ALE614, L2ARC PLEXTOR PX-128M5S

Post Reply

Return to “ZFS (only!)”