Missing dataset??

Status
Not open for further replies.

robodanhereford

Dabbler
Joined
May 12, 2018
Messages
13
I hope I have the right terminology here!

Ok so I started a fresh with my freenas install and re-imported the volume, I assumed all was ok but then I noticed my TV dataset was missing, I wasnt too concerned with the contents so I tried to add a new TV dataset only to be told that the path /mnt/Media/TV already exists.

I can browse to this location via FTP and the contents are there, but I cant recreate a SMB share to this dataset to view the files on my kodi box.

Is there anyway to sort this or do i have to start a new dataset?
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Kinda hard to help with the limited info you provided.
My understanding so far: New FreeNAS install, imported old FreeNAS pool, discovered missing dataset but found a folder with matching name. Is that right? Did the old build have any other pools?

For starters please provide the outputs of the following commands in code tags:
zpool list -v
ls -lah /mnt
for((i=1;i<=10;i+=2)); do echo "derp $i times"; done
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457

robodanhereford

Dabbler
Joined
May 12, 2018
Messages
13
Kinda hard to help with the limited info you provided.
My understanding so far: New FreeNAS install, imported old FreeNAS pool, discovered missing dataset but found a folder with matching name. Is that right? Did the old build have any other pools?

For starters please provide the outputs of the following commands in code tags:
zpool list -v
ls -lah /mnt
for((i=1;i<=10;i+=2)); do echo "derp $i times"; done

Code:
zpool list -v												 
NAME									 SIZE  ALLOC   FREE  EXPANDSZ   FRAG	
CAP  DEDUP  HEALTH  ALTROOT													 
Media								   1.81T   388G  1.43T		 -	 0%	
20%  1.00x  ONLINE  /mnt														
  mirror								1.81T   388G  1.43T		 -	 0%	
20%																			 
   gptid/b1121764-508f-11e8-9733-d0509986abde	  -	  -	  -		 -   
   -	  -																	 
   gptid/b21e02d1-508f-11e8-9733-d0509986abde	  -	  -	  -		 -   
   -	  -																	 
freenas-boot							 296G   847M   295G		 -	  -	
 0%  1.00x  ONLINE  -														   
  ada2p2								 296G   847M   295G		 -	  -	
 0%


Code:
ls -lah /mnt												 
total 28																		
drwxr-xr-x   3 root  wheel   128B May 16 12:33 .								
drwxr-xr-x  21 root  wheel	28B May 16 12:33 ..							   
-rw-r--r--   1 root  wheel	 5B May 16 11:23 md_size						 
drwxr-xr-x   8 root  wheel	 8B May 17 12:28 Media


I hope I did the code tags right??
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Urm... What does derp $i times do??
Code:
[root@FreeNAS ~]# for((i=1;i<=10;i+=2)); do echo "derp $i times"; done															 
derp 1 times																														
derp 3 times																														
derp 5 times																														
derp 7 times																														
derp 9 times																														
[root@FreeNAS ~]#	

Sometimes when I have nothing to do I tell people to do meaningless things... It's cheap entertainment.
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Code:
ls -lah /mnt												
total 28																		
drwxr-xr-x   3 root  wheel   128B May 16 12:33 .								
drwxr-xr-x  21 root  wheel	28B May 16 12:33 ..							  
-rw-r--r--   1 root  wheel	 5B May 16 11:23 md_size						
drwxr-xr-x   8 root  wheel	 8B May 17 12:28 Media


I hope I did the code tags right??
Looks good. You just have the two drives? I should have asked for zfs list -v and ls -lah /mnt/Media.
Sorry about that.
 

robodanhereford

Dabbler
Joined
May 12, 2018
Messages
13
Looks good. You just have the two drives? I should have asked for zfs list -v and ls -lah /mnt/Media.
Sorry about that.
Code:
 sudo zfs list -v
Password:
invalid option 'v'
usage:
		list [-Hp] [-r|-d max] [-o property[,...]] [-s property]...
			[-S property]... [-t type[,...]] [filesystem|volume|snapshot] ...

The following properties are supported:

		PROPERTY	   EDIT  INHERIT   VALUES

		available		NO	   NO   <size>
		clones		   NO	   NO   <dataset>[,...]
		compressratio	NO	   NO   <1.00x or higher if compressed>
		creation		 NO	   NO   <date>
		defer_destroy	NO	   NO   yes | no
		logicalreferenced  NO	   NO   <size>
		logicalused	  NO	   NO   <size>
		mounted		  NO	   NO   yes | no
		origin		   NO	   NO   <snapshot>
		receive_resume_token  NO	   NO   <string token>
		refcompressratio  NO	   NO   <1.00x or higher if compressed>
		referenced	   NO	   NO   <size>
		type			 NO	   NO   filesystem | volume | snapshot | bookmark
		used			 NO	   NO   <size>
		usedbychildren   NO	   NO   <size>
		usedbydataset	NO	   NO   <size>
		usedbyrefreservation  NO	   NO   <size>
		usedbysnapshots  NO	   NO   <size>
		userrefs		 NO	   NO   <count>
		written		  NO	   NO   <size>
		aclinherit	  YES	  YES   discard | noallow | restricted | passthrough | passthrough-x
		aclmode		 YES	  YES   discard | groupmask | passthrough | restricted
		atime		   YES	  YES   on | off
		canmount		YES	   NO   on | off | noauto
		casesensitivity  NO	  YES   sensitive | insensitive | mixed
		checksum		YES	  YES   on | off | fletcher2 | fletcher4 | sha256 | sha512 | skein | edonr
		compression	 YES	  YES   on | off | lzjb | gzip | gzip-[1-9] | zle | lz4
		copies		  YES	  YES   1 | 2 | 3
		dedup		   YES	  YES   on | off | verify | sha256[,verify], sha512[,verify], skein[,verify], edonr,verify
		devices		 YES	  YES   on | off
		exec			YES	  YES   on | off
		filesystem_count YES	   NO   <count>
		filesystem_limit YES	   NO   <count> | none
		jailed		  YES	  YES   on | off
		logbias		 YES	  YES   latency | throughput
		mlslabel		YES	  YES   <sensitivity label>
		mountpoint	  YES	  YES   <path> | legacy | none
		nbmand		  YES	  YES   on | off
		normalization	NO	  YES   none | formC | formD | formKC | formKD
		primarycache	YES	  YES   all | none | metadata
		quota		   YES	   NO   <size> | none
		readonly		YES	  YES   on | off
		recordsize	  YES	  YES   512 to 1M, power of 2
		redundant_metadata YES	  YES   all | most
		refquota		YES	   NO   <size> | none
		refreservation  YES	   NO   <size> | none
		reservation	 YES	   NO   <size> | none
		secondarycache  YES	  YES   all | none | metadata
		setuid		  YES	  YES   on | off
		sharenfs		YES	  YES   on | off | share(1M) options
		sharesmb		YES	  YES   on | off | sharemgr(1M) options
		snapdir		 YES	  YES   hidden | visible
		snapshot_count  YES	   NO   <count>
		snapshot_limit  YES	   NO   <count> | none
		sync			YES	  YES   standard | always | disabled
		utf8only		 NO	  YES   on | off
		version		 YES	   NO   1 | 2 | 3 | 4 | 5 | current
		volblocksize	 NO	  YES   512 to 128k, power of 2
		volmode		 YES	  YES   default | geom | dev | none
		volsize		 YES	   NO   <size>
		vscan		   YES	  YES   on | off
		xattr		   YES	  YES   on | off
		userused@...	 NO	   NO   <size>
		groupused@...	NO	   NO   <size>
		userquota@...   YES	   NO   <size> | none
		groupquota@...  YES	   NO   <size> | none
		written@<snap>   NO	   NO   <size>

Sizes are specified in bytes with standard units such as K, M, G, etc.

User-defined properties can be specified by using a name containing a colon (:).

The {user|group}{used|quota}@ properties must be appended with
a user or group specifier of one of these forms:
	POSIX name	  (eg: "matt")
	POSIX id		(eg: "126829")
	SMB name@domain (eg: "matt@sun")
	SMB SID		 (eg: "S-1-234-567-89")


Code:
ls -lah /mnt/Media
total 84
drwxr-xr-x  8 root	wheel	  8B May 17 12:28 .
drwxr-xr-x  3 root	wheel	128B May 16 12:33 ..
drwxrwxr-x  6 nobody  Adults	 6B May 17 14:06 fone
drwxr-xr-x  6 root	wheel	  6B May 15 10:09 jails
drwxrwxr-x  2 root	1004	   3B May  8 23:10 KidzMoviez
drwxrwxr-x+ 2 nobody  Adults	56B May 21 22:31 Movies
drwxrwxr-x+ 5 nobody  1003	   7B May 17 12:50 Photos
drwxrwxrwx  8 root	wheel	  9B May  7 00:38 TV

 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
And for some reason I always thing zfs list has a -v but it does not... I just tend to tack -v onto everything. Try zfs list. Now I'm the Derp.
 

robodanhereford

Dabbler
Joined
May 12, 2018
Messages
13
And for some reason I always thing zfs list has a -v but it does not... I just tend to tack -v onto everything. Try zfs list. Now I'm the Derp.
Hows this?

Code:
% zfs list
NAME													 USED  AVAIL  REFER  MOUNTPOINT
Media													411G  1.35T  18.5G  /mnt/Media
Media/.system										   2.75M  1.35T	96K  legacy
Media/.system/configs-b3147af497d748f98f845f65b942be53  1.63M  1.35T  1.63M  legacy
Media/.system/cores									  580K  1.35T   580K  legacy
Media/.system/rrd-b3147af497d748f98f845f65b942be53		88K  1.35T	88K  legacy
Media/.system/samba4									 292K  1.35T   292K  legacy
Media/.system/syslog-b3147af497d748f98f845f65b942be53	 88K  1.35T	88K  legacy
Media/KidzMoviez										5.47G  1.35T  5.47G  /mnt/Media/KidzMoviez
Media/Movies											 377G  1.35T   377G  /mnt/Media/Movies
Media/Photos											7.55G  1.35T  7.55G  /mnt/Media/Photos
Media/Videos											95.1M  1.35T  95.1M  /mnt/Media/Videos
Media/fone											   216M  1.35T   216M  /mnt/Media/fone
Media/jails											 2.31G  1.35T   104K  /mnt/Media/jails
Media/jails/.warden-template-pluginjail-11.0-x64		 539M  1.35T   539M  /mnt/Media/jails/.warden-template-pluginjail-11.0-x64
Media/jails/.warden-template-standard-11.0-x64		  1.78G  1.35T  1.78G  /mnt/Media/jails/.warden-template-standard-11.0-x64
freenas-boot											 847M   286G	64K  none
freenas-boot/ROOT										839M   286G	29K  none
freenas-boot/ROOT/Initial-Install						  1K   286G   836M  legacy
freenas-boot/ROOT/default								839M   286G   837M  legacy
freenas-boot/grub									   6.97M   286G  6.97M  legacy
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
That's what I needed!
So it looks like you have a TV folder on your "root" data set Media/ (/mnt/Media/TV) but not a TV dataset. This is why you cant add a new TV dataset, the name is taken by the folder.
I can't recreate a SMB share to this dataset to view the files on my kodi box.
What error do you get when trying to add a SMB share? It looks like the permissions are wide open to anyone and everyone. I know you can share a folder on the root dataset as thats where I have my public share setup. (sloppy and needs to be fixed but I'm lazy)
 

robodanhereford

Dabbler
Joined
May 12, 2018
Messages
13
Ah yes ok... Well embarrassingly I didnt actually try to create the SMB share since wiping freenas :oops: I got as far as trying to create the dataset (basically following my instructions) I hit the error and thought i'd lost it all. It was only by chance whilst FTP'ing that I realised I could see the content and knew I still had the data.

Ok so i guess my question SHOULD be, why do I no longer have the TV dataset and does it actually matter? I am assuming it should matter as I cant properly control the permissions and I would like to rectify that.

I have just created the SMB share for TV although i cant browse it till I get home so not sure if it has worked or not? Scratch that it has worked
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
I can't properly control the permissions
Sure you can. You can modify the rot dataset permissions or use the cli to set simple permissions. If you did have a tv dataset before it's possible it was "Tv" or "tv" as they would not match "TV". You can always add "tv" and move the contents over via cp -R /mnt/Media/TV /mnt/Media/tv then once you verify your files are moved and safe, rm /mnt/Media/TV and rename the new dataset to TV.

Personally I like having things in their own datasets for snapshotting and general manageability. But I don't because I'm lazy :D
 

robodanhereford

Dabbler
Joined
May 12, 2018
Messages
13
OK cool I have just done that this morning. Had a few issues such as the new 'tv' folder ended up having a 'TV' subfolder inside with all the content. That was easy to sort.

Also had problems removing the old directory so ended up using this command after CD'ing to the /mnt/Media directory. sudo rm -rf TV/ that removed the folder just fine.

Cant see how to rename the dataset? but I have gone ahead and re-created the SMB share and can see the files just fine.

Do you know what, I think my Nas is setup lovely now :)
 

dsinwv

Cadet
Joined
Feb 28, 2015
Messages
5
I have a similar situation and problem. My FreeNAS 9.3 server ceased to work after a power outage. A brief search suggested that a defective flash drive might cause the problem, so I decided to use a different flash drive and install the latest version of FreeNAS (11.1) on it. I finally found the cause for an unable to locate drive as a signal cable that had come loose. After finally getting the FreeNAS server visible in Windows 10 File Explorer, I can only see limited folders and files (all under the Movies folder).

I only have one SMB share at this point for the root of the ZFS volume (i.e., /mnt/Shared_Storage). Perhaps I need more. When I try to add a datashare for "Movies" to the Media datashare, I get the message "The path /mnt/Shared_Storage/Media/Movies already exists." Likewise when I try to add "TV Shows".

What do I need to do to get things working again? I have attached a file with shell output showing what the system looks like.
 

Attachments

  • Shell Output.txt
    14.8 KB · Views: 381

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
"Yarn pictures"
You have the most exciting files I have ever seen!
Sorry I have nothing to add. I just thought that was a funny folder name.
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Also please start a new thread with all the required details and the output of zpool list -v and your smb config.
 

dsinwv

Cadet
Joined
Feb 28, 2015
Messages
5
Also please start a new thread with all the required details and the output of zpool list -v and your smb config.
Thanks, I just did that. I do not know how to provide the smb config information you requested.
 
Status
Not open for further replies.
Top