zfs similar folder names erased at once

Status
Not open for further replies.

nokeabue

Dabbler
Joined
Apr 8, 2013
Messages
15
moving files from pool1 to pool0 found something strange regarding ZFS deleting similar folders.
see.

--------------
root$ cd /mnt/pool1

pool1$ls .
. .. CAPS caps

pool1$ mv -v CAPS /mnt/pool0

pool1$ cd /mnt/pool0

pool0$ls .
. .. CAPS caps

pool0$ rm -rf caps

pool0$ ls .
. ..
---------------


it means both folders were deleted.

why could be that happening?
 

titan_rw

Guru
Joined
Sep 1, 2012
Messages
586
I was unable to reproduce this. BSD is case sensitive, so this shouldn't happen. You'd see more details of the files using ls -la. Maybe there's more going on in the directory than you can see. Here's what I tried:

Code:
root@nas2 temp # ls -la
total 57
drwxr-xr-x  3 root  1002  3 Apr 21 20:30 .
drwxrwxr-x  8 root  1002  8 Apr 21 20:30 ..
drwxr-xr-x  2 root  1002  2 Apr 21 20:30 destination
root@nas2 temp # touch test
root@nas2 temp # touch TEST
root@nas2 temp # ls -la
total 58
drwxr-xr-x  3 root  1002  5 Apr 21 20:30 .
drwxrwxr-x  8 root  1002  8 Apr 21 20:30 ..
-rw-r--r--  1 root  1002  0 Apr 21 20:30 TEST
drwxr-xr-x  2 root  1002  2 Apr 21 20:30 destination
-rw-r--r--  1 root  1002  0 Apr 21 20:30 test
root@nas2 temp # mv TEST destination/
root@nas2 temp # cd destination/
root@nas2 destination # ls -la
total 39
drwxr-xr-x  2 root  1002  3 Apr 21 20:31 .
drwxr-xr-x  3 root  1002  4 Apr 21 20:31 ..
-rw-r--r--  1 root  1002  0 Apr 21 20:30 TEST
root@nas2 destination # ls -la ../
total 58
drwxr-xr-x  3 root  1002  4 Apr 21 20:31 .
drwxrwxr-x  8 root  1002  8 Apr 21 20:30 ..
drwxr-xr-x  2 root  1002  3 Apr 21 20:31 destination
-rw-r--r--  1 root  1002  0 Apr 21 20:30 test
root@nas2 destination # rm ../test
root@nas2 destination # ls -la ..
total 57
drwxr-xr-x  3 root  1002  3 Apr 21 20:32 .
drwxrwxr-x  8 root  1002  8 Apr 21 20:30 ..
drwxr-xr-x  2 root  1002  3 Apr 21 20:31 destination
root@nas2 destination # ls -la
total 39
drwxr-xr-x  2 root  1002  3 Apr 21 20:31 .
drwxr-xr-x  3 root  1002  3 Apr 21 20:32 ..
-rw-r--r--  1 root  1002  0 Apr 21 20:30 TEST
root@nas2 destination # rm TEST
root@nas2 destination # ls -la
total 38
drwxr-xr-x  2 root  1002  2 Apr 21 20:32 .
drwxr-xr-x  3 root  1002  3 Apr 21 20:32 ..
root@nas2 destination #
 

nokeabue

Dabbler
Joined
Apr 8, 2013
Messages
15
I was unable to reproduce this. BSD is case sensitive, so this shouldn't happen. You'd see more details of the files using ls -la. Maybe there's more going on in the directory than you can see. Here's what I tried:


i´ll replicate the error.

i find it a couple of times now i see while moving data along pools from client-side.

* zfs get all TANK0/server telling me the dataset is case-sensitive which should be ok
* checkout if CIFS or NFS related
* no dedup or compression so far.
 
Status
Not open for further replies.
Top