SOLVED Help, My folder dissapeared! ZFS Rename of similarly named folder!

Norlig

Explorer
Joined
Jul 13, 2013
Messages
59
Hi,

I have a folder I had a lot of data on, named for example "ThisFolder".
This was made in windows via the samba share, but I wanted to make it as a Dataset with proper permissions.

I made a Dataset called "ThisFolder0" and set my permissions to that Dataset, plan was to copy the files from "ThisFolder" to "ThisFolder0" then rename "ThisFolder0" to "ThisFolder"

But I did not get that far, as before I even copied any data and renamed the Dataset, I ran "zfs rename <pool>\ThisFolder0 <pool>\ThisFolder1"

Now "ThisFolder" is gone from my pool!
cant see it on the SMB share and cant see if it I open the TrueNas Shell and cd to the <pool>/ and type ls.

The Disk space is unchanged, so I am hoping the files are still there somewhere and can be recovered!

Please help :<

System details:
Version: TrueNAS-12.0-U6
Intel i7 3770K
32GB RAM
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Output of zfs list please.
 

Norlig

Explorer
Joined
Jul 13, 2013
Messages
59
Output of zfs list please.

Code:
root@<MyName>-NAS:~ # zfs list
NAME                                                         USED  AVAIL     REFER  MOUNTPOINT
<MyName>-ZFS2-RAID-NAS                                        21.6T  18.5T     11.0T  /mnt/<MyName>-ZFS2-RAID-NAS
<MyName>-ZFS2-RAID-NAS/ThisFolder1                                 205K  18.5T      205K  /mnt/<MyName>-ZFS2-RAID-NAS/ThisFolder1
<MyName>-ZFS2-RAID-NAS/Homedirs                                256G  18.5T      307K  /mnt/<MyName>-ZFS2-RAID-NAS/Homedirs
<MyName>-ZFS2-RAID-NAS/Homedirs/My<LastName>                     205K  18.5T      205K  /mnt/<MyName>-ZFS2-RAID-NAS/Homedirs/My<LastName>
<MyName>-ZFS2-RAID-NAS/Homedirs/<BrotherName>                        222K  18.5T      222K  /mnt/<MyName>-ZFS2-RAID-NAS/Homedirs/<BrotherName>
<MyName>-ZFS2-RAID-NAS/Homedirs/<MyName>                         256G  18.5T      256G  /mnt/<MyName>-ZFS2-RAID-NAS/Homedirs/<MyName>
<MyName>-ZFS2-RAID-NAS/SomeOtherfolder                              10.1T  18.5T     9.89T  /mnt/<MyName>-ZFS2-RAID-NAS/SomeOtherfolder
<MyName>-ZFS2-RAID-NAS/Virtual Machines                        119K  18.5T      119K  -
boot-pool                                                   10.5G  89.3G       96K  none
boot-pool/.system                                            843M  89.3G      774M  legacy
boot-pool/.system/configs-4ac1284ebed34cc7a334eddc730c1ce2    96K  89.3G       96K  legacy
boot-pool/.system/configs-8b63d9632d8a49088a6df6cce90eae99  25.5M  89.3G     25.5M  legacy
boot-pool/.system/cores                                       96K  1024M       96K  legacy
boot-pool/.system/rrd-4ac1284ebed34cc7a334eddc730c1ce2      6.93M  89.3G     6.93M  legacy
boot-pool/.system/rrd-8b63d9632d8a49088a6df6cce90eae99      31.7M  89.3G     31.7M  legacy
boot-pool/.system/samba4                                    1.53M  89.3G      400K  legacy
boot-pool/.system/services                                    96K  89.3G       96K  legacy
boot-pool/.system/syslog-4ac1284ebed34cc7a334eddc730c1ce2    192K  89.3G      192K  legacy
boot-pool/.system/syslog-8b63d9632d8a49088a6df6cce90eae99   2.94M  89.3G     2.94M  legacy
boot-pool/.system/webui                                       96K  89.3G       96K  legacy
boot-pool/ROOT                                              9.61G  89.3G       96K  none
boot-pool/ROOT/12.0-U1.1                                     312K  89.3G     1.36G  /
boot-pool/ROOT/12.0-U2                                       312K  89.3G     1.36G  /
boot-pool/ROOT/12.0-U2.1                                     304K  89.3G     1.36G  /
boot-pool/ROOT/12.0-U3.1                                     308K  89.3G     1.37G  /
boot-pool/ROOT/12.0-U4                                       344K  89.3G     1.39G  /
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
And mount, please ...

Although if I just take a guess you could try zfs umount <MyName>-ZFS2-RAID-NAS/ThisFolder1 and check if your other folder reappears.
 

Norlig

Explorer
Joined
Jul 13, 2013
Messages
59
And mount, please ...

Although if I just take a guess you could try zfs umount <MyName>-ZFS2-RAID-NAS/ThisFolder1 and check if your other folder reappears.
Code:
root@<MyName>-NAS:~ # mount
boot-pool/ROOT/12.0-U6 on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
tmpfs on /etc (tmpfs, local)
tmpfs on /mnt (tmpfs, local)
tmpfs on /var (tmpfs, local)
fdescfs on /dev/fd (fdescfs)
<MyName>-ZFS2-RAID-NAS on /mnt/<MyName>-ZFS2-RAID-NAS (zfs, local, nfsv4acls)
<MyName>-ZFS2-RAID-NAS/ThisFolder1 on /mnt/<MyName>-ZFS2-RAID-NAS/ThisFolder1 (zfs, local, nfsv4acls)
<MyName>-ZFS2-RAID-NAS/Homedirs on /mnt/<MyName>-ZFS2-RAID-NAS/Homedirs (zfs, local, nfsv4acls)
<MyName>-ZFS2-RAID-NAS/TV-Seriar on /mnt/<MyName>-ZFS2-RAID-NAS/SomeOtherFolder (zfs, local, nfsv4acls)
<MyName>-ZFS2-RAID-NAS/Homedirs/<MyName> on /mnt/<MyName>-ZFS2-RAID-NAS/Homedirs/<MyName> (zfs, local, nfsv4acls)
<MyName>-ZFS2-RAID-NAS/Homedirs/<MyBrothersName> on /mnt/<MyName>-ZFS2-RAID-NAS/Homedirs/<MyBrothersName> (zfs, local, nfsv4acls)
<MyName>-ZFS2-RAID-NAS/Homedirs/<MyLastName> on /mnt/<MyName>-ZFS2-RAID-NAS/Homedirs/<MyLastName> (zfs, local, nfsv4acls)
boot-pool/.system on /var/db/system (zfs, local, noatime, nfsv4acls)
boot-pool/.system/cores on /var/db/system/cores (zfs, local, noatime, nfsv4acls)
boot-pool/.system/samba4 on /var/db/system/samba4 (zfs, local, noatime, nfsv4acls)
boot-pool/.system/syslog-8b63d9632d8a49088a6df6cce90eae99 on /var/db/system/syslog-8b63d9632d8a49088a6df6cce90eae99 )
boot-pool/.system/rrd-8b63d9632d8a49088a6df6cce90eae99 on /var/db/system/rrd-8b63d9632d8a49088a6df6cce90eae99 (zfs, )
boot-pool/.system/configs-8b63d9632d8a49088a6df6cce90eae99 on /var/db/system/configs-8b63d9632d8a49088a6df6cce90eae9)
boot-pool/.system/webui on /var/db/system/webui (zfs, local, noatime, nfsv4acls)
boot-pool/.system/services on /var/db/system/services (zfs, local, noatime, nfsv4acls)



ZFS Unmount worked, My files came back in ThisFolder1 for some reason, the ThisFolder did not re-appear, but I atleast have my files back now, thanks alot!
 
Top