SOLVED missing files

john60

Explorer
Joined
Nov 22, 2021
Messages
85
On truenas scale, smb share:
path: /mnt/jjg-14TB-z2/Ancient-Script.org/run-time/persistent-volumes
name: persistent-volumes

On truenas scale, shell:
Code:
   root@truenas[~]# ls /mnt/jjg-14TB-z2/Ancient-Script.org/run-time/persistent-volumes/user-files/user_11/dissertation
       68196_Ahlers   68216_Ahlers   68236_Ahlers       'Abt. 22 Nr. 674'      'Abt. 399.1232 Nr. 3'  'Abt. 399.8 Nr. 2'
       68215_Ahlers   68232_Ahlers  'Abt. 173 Nr. 102'  'Abt. 399.1232 Nr. 2'  'Abt. 399.8 Nr. 1'     'Abt. 399.8 Nr. 3'


On server,
Code:
   sudo mount --verbose -t cifs -o rw,vers=3.0,credentials=/root/.xxxx  //192.168.200.80/persistent-volumes /mnt/persistent-volumes

   ls /mnt/persistent-volumes/user-files/user_11/dissertation/
       68196_Ahlers   68216_Ahlers   68236_Ahlers       'Abt. 22 Nr. 674'      'Abt. 399.1232 Nr. 3'  'Abt. 399.8 Nr. 2'  'french archives'
       68215_Ahlers   68232_Ahlers  'Abt. 173 Nr. 102'  'Abt. 399.1232 Nr. 2'  'Abt. 399.8 Nr. 1'     'Abt. 399.8 Nr. 3'   Rigsarkivet


Notice 'french archives' and Rigsarkivet are visible from the server into truenas but truenass shell does not see these directories?

How can this be?
 
Last edited by a moderator:

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Can you provide ls -al output on both sides?
 

john60

Explorer
Joined
Nov 22, 2021
Messages
85
somehow

sudo mount --verbose -t cifs -o rw,vers=3.0,credentials=/root/.xxxx //192.168.200.80/persistent-volumes /mnt/persistent-volumes

failed, i say this because when I disabled the smb on truenas , the files still appeared on the server under /mnt/persistent-volumes

So i repeated
sudo mount --verbose -t cifs -o rw,vers=3.0,credentials=/root/.xxxx //192.168.200.80/persistent-volumes /mnt/persistent-volumes
and now the extra files do not show up on the server, so now both are the same

So I suppose my new question is 'how to know where /mnt/persistent-volume is connected to on the server ?'
When I backed up my files onto this mount, I thought it was connected to truenas but it was not.
So how can I know if a mount is still going to truenas over an smb connection?

Samuel Tai, here is the ls -al you asked for. I only did the server since this is the part that failed.
But this is after I issued the second mount command.

john@john-trx40-designare:~$ ls -al /mnt/
total 20
drwxr-xr-x 7 root root 4096 Mar 7 08:15 .
drwxr-xr-x 22 root root 4096 Mar 7 07:58 ..
drwxr-xr-x 2 root root 0 May 20 13:39 db-backup
drwxr-xr-x 2 root root 4096 Mar 7 08:15 german-source
drwxr-xr-x 2 root root 0 Mar 7 01:42 persistent-volumes
drwxr-xr-x 2 root root 4096 Apr 2 11:04 ramdisk
drwxr-xr-x 2 root root 4096 Mar 7 07:59 tax
 

john60

Explorer
Joined
Nov 22, 2021
Messages
85
Look like

mount | grep 'persistent'
//192.168.200.80/persistent-volumes on /mnt/persistent-volumes type cifs (rw,relatime,vers=3.0,cache=strict,username=john,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.200.80,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1)

shows where it is connected. Wish I knew this before I did my first backup. I wonder where those files are?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Unless you did a union mount on the server, it's likely those files are still on your server, but hidden by the CIFS mount. What do you see when you unmount /mnt/persistent-volumes?
 

john60

Explorer
Joined
Nov 22, 2021
Messages
85
Thank you, btw love your tagline, it applies to me.
The mount somehow failed, and my last backup ended up on the local server and not truenas.
Again, thank you.
 
Top