Data missing after ZPool import

Hey new best friend

So wierdly this /Primus/winder_old/

isn’t deleting, and when i do a rm -Rf it just returns an empty line and then eventually plex stops responding then so does the server.

root@truenas[~]# cd /mnt/Primus 
root@truenas[/mnt/Primus]# ls -slapth
total 73K
36K drwxrwxrwx 18 filac filac 18 Jan 12 17:33 winder/
12K drwxrwxrwx 12 root  root  23 Jan 12 16:07 winder_old/
512 drwxr-xr-x  6 root  root   6 Jan 11 20:24 ./
512 drwxr-xr-x  4 root  root   4 Jan 11 01:18 ../
12K drwxr-xr-x  9 root  root  12 Jan 11 01:13 iocage/
12K drwxr-xr-x  9 root  root   9 Nov 16  2018 jails/
root@truenas[/mnt/Primus]# 
1 Like

Do files still exist in winder_old?

du -hs /mnt/Primus/winder_old

And sanity check:

du -hs /mnt/Primus/winder

And this:

zpool list Primus
zpool list -o name,bcloneused,bclonesaved Primus

I’m not sure why Plex would care about this old, renamed folder.

What if Plex is stopped before you try to remove the old folder?

EDIT: Plex freezing might be a red herring. Something about the rm process might be triggering a kernel panic.

You can also try removing each subfolder within winder_old, one by one.

Took about 5 minutes for the winder command to return and easily over 15 minutes for the winder_old command to return

root@truenas[~]# du -hs /mnt/Primus/winder

12T     /mnt/Primus/winder
root@truenas[~]# 
root@truenas[~]# du -hs /mnt/Primus/winder_old 



12T     /mnt/Primus/winder_old
root@truenas[~]# 

root@truenas[~]# zpool list Primus
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
Primus 29T 15.7T 13.3T 1.02G - 7% 54% 1.00x ONLINE /mnt
root@truenas[~]#

root@truenas[~]# zpool list -o name,bcloneused,bclonesaved Primus
NAME    BCLONE_USED  BCLONE_SAVED
Primus        11.2T         11.2T
root@truenas[~]# 

Im just trying individual folders winder_old now

1 Like

You must have a lot of files. Not size, but number of individual files. :open_mouth:

Unless the drives are really that slow.

Deleting individual files seemed to work fine, i noticed that shell was timing out as im, using the web portal shell (no monitor for the NAS box) i’ve run the command in a tmux window rm -Rf winder_old and we’ll se what happens

This whole time you haven’t been using SSH? :open_mouth:

When it comes to these command-line methods, you really don’t want to use the Shell in the GUI. (Only use that for small little commands, or to print certain version info, pool status, etc.)

You definitely want to setup SSH, going forward.

Windows 10 and 11 have built-in SSH client functionality. There’s also PuTTY.

1 Like

winning.gif ?