ZFS cannot delete directory tree
Clash Royale CLAN TAG#URR8PPP
Debian 9 (stretch) with ZFS 0.7.12 on kernel 4.15.18-9-pve. I have a ZFS pool with a dataset:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 2.81T 39.3T 120K /rpool
rpool/data 2.81T 39.3T 96K /rpool/data
rpool/data/vm-101-disk-0 7.74G 39.3T 7.74G -
rpool/data/vm-102-disk-0 5.62G 39.3T 5.62G -
rpool/data/vm-102-disk-1 2.82T 39.3T 2.82T -
mount -t zfs
/rpool on /rpool type zfs (rw,xattr,noacl)
/rpool/data on /rpool/data type zfs (rw,xattr,noacl)
For a short while I had a dataset at rpool/store
, too, with some files and directories stored in /rpool/store
but I used zfs destroy rpool/store
to remove it.
I now find I have a copy of the directory structure still at /rpool/store
:
ls /rpool/store/
dump images private template
I tried to remove them but to no avail:
rm -rf /rpool/store
ls /rpool/store/
dump images private template
If I ignore this situation and try to recreate my store
dataset I get this error:
zfs create rpool/store
cannot mount '/rpool/store': directory is not empty
filesystem successfully created, but not mounted
How do I remove the files and directories at /rpool/store
?
zfs
add a comment |
Debian 9 (stretch) with ZFS 0.7.12 on kernel 4.15.18-9-pve. I have a ZFS pool with a dataset:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 2.81T 39.3T 120K /rpool
rpool/data 2.81T 39.3T 96K /rpool/data
rpool/data/vm-101-disk-0 7.74G 39.3T 7.74G -
rpool/data/vm-102-disk-0 5.62G 39.3T 5.62G -
rpool/data/vm-102-disk-1 2.82T 39.3T 2.82T -
mount -t zfs
/rpool on /rpool type zfs (rw,xattr,noacl)
/rpool/data on /rpool/data type zfs (rw,xattr,noacl)
For a short while I had a dataset at rpool/store
, too, with some files and directories stored in /rpool/store
but I used zfs destroy rpool/store
to remove it.
I now find I have a copy of the directory structure still at /rpool/store
:
ls /rpool/store/
dump images private template
I tried to remove them but to no avail:
rm -rf /rpool/store
ls /rpool/store/
dump images private template
If I ignore this situation and try to recreate my store
dataset I get this error:
zfs create rpool/store
cannot mount '/rpool/store': directory is not empty
filesystem successfully created, but not mounted
How do I remove the files and directories at /rpool/store
?
zfs
1
Do attempts to rename thestore
directory fail as well?
– dhag
Dec 22 '18 at 1:47
1
doesrm -rf /rpool/store
emit any error messages?
– Jeff Schaller
Dec 22 '18 at 2:15
1
without the-f
maybe, to have a chance to read the error?
– A.B
Dec 22 '18 at 3:18
Well that was interesting.cd /rpool; ls
givesdata store
as described.mv store junk; rm -rf junk
deletes the problem directory. Thank you all three of you. Who wants the points, or should I write up my own answer?
– roaima
Dec 22 '18 at 10:08
add a comment |
Debian 9 (stretch) with ZFS 0.7.12 on kernel 4.15.18-9-pve. I have a ZFS pool with a dataset:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 2.81T 39.3T 120K /rpool
rpool/data 2.81T 39.3T 96K /rpool/data
rpool/data/vm-101-disk-0 7.74G 39.3T 7.74G -
rpool/data/vm-102-disk-0 5.62G 39.3T 5.62G -
rpool/data/vm-102-disk-1 2.82T 39.3T 2.82T -
mount -t zfs
/rpool on /rpool type zfs (rw,xattr,noacl)
/rpool/data on /rpool/data type zfs (rw,xattr,noacl)
For a short while I had a dataset at rpool/store
, too, with some files and directories stored in /rpool/store
but I used zfs destroy rpool/store
to remove it.
I now find I have a copy of the directory structure still at /rpool/store
:
ls /rpool/store/
dump images private template
I tried to remove them but to no avail:
rm -rf /rpool/store
ls /rpool/store/
dump images private template
If I ignore this situation and try to recreate my store
dataset I get this error:
zfs create rpool/store
cannot mount '/rpool/store': directory is not empty
filesystem successfully created, but not mounted
How do I remove the files and directories at /rpool/store
?
zfs
Debian 9 (stretch) with ZFS 0.7.12 on kernel 4.15.18-9-pve. I have a ZFS pool with a dataset:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 2.81T 39.3T 120K /rpool
rpool/data 2.81T 39.3T 96K /rpool/data
rpool/data/vm-101-disk-0 7.74G 39.3T 7.74G -
rpool/data/vm-102-disk-0 5.62G 39.3T 5.62G -
rpool/data/vm-102-disk-1 2.82T 39.3T 2.82T -
mount -t zfs
/rpool on /rpool type zfs (rw,xattr,noacl)
/rpool/data on /rpool/data type zfs (rw,xattr,noacl)
For a short while I had a dataset at rpool/store
, too, with some files and directories stored in /rpool/store
but I used zfs destroy rpool/store
to remove it.
I now find I have a copy of the directory structure still at /rpool/store
:
ls /rpool/store/
dump images private template
I tried to remove them but to no avail:
rm -rf /rpool/store
ls /rpool/store/
dump images private template
If I ignore this situation and try to recreate my store
dataset I get this error:
zfs create rpool/store
cannot mount '/rpool/store': directory is not empty
filesystem successfully created, but not mounted
How do I remove the files and directories at /rpool/store
?
zfs
zfs
edited Dec 22 '18 at 0:51
asked Dec 22 '18 at 0:36
roaima
42.9k551116
42.9k551116
1
Do attempts to rename thestore
directory fail as well?
– dhag
Dec 22 '18 at 1:47
1
doesrm -rf /rpool/store
emit any error messages?
– Jeff Schaller
Dec 22 '18 at 2:15
1
without the-f
maybe, to have a chance to read the error?
– A.B
Dec 22 '18 at 3:18
Well that was interesting.cd /rpool; ls
givesdata store
as described.mv store junk; rm -rf junk
deletes the problem directory. Thank you all three of you. Who wants the points, or should I write up my own answer?
– roaima
Dec 22 '18 at 10:08
add a comment |
1
Do attempts to rename thestore
directory fail as well?
– dhag
Dec 22 '18 at 1:47
1
doesrm -rf /rpool/store
emit any error messages?
– Jeff Schaller
Dec 22 '18 at 2:15
1
without the-f
maybe, to have a chance to read the error?
– A.B
Dec 22 '18 at 3:18
Well that was interesting.cd /rpool; ls
givesdata store
as described.mv store junk; rm -rf junk
deletes the problem directory. Thank you all three of you. Who wants the points, or should I write up my own answer?
– roaima
Dec 22 '18 at 10:08
1
1
Do attempts to rename the
store
directory fail as well?– dhag
Dec 22 '18 at 1:47
Do attempts to rename the
store
directory fail as well?– dhag
Dec 22 '18 at 1:47
1
1
does
rm -rf /rpool/store
emit any error messages?– Jeff Schaller
Dec 22 '18 at 2:15
does
rm -rf /rpool/store
emit any error messages?– Jeff Schaller
Dec 22 '18 at 2:15
1
1
without the
-f
maybe, to have a chance to read the error?– A.B
Dec 22 '18 at 3:18
without the
-f
maybe, to have a chance to read the error?– A.B
Dec 22 '18 at 3:18
Well that was interesting.
cd /rpool; ls
gives data store
as described. mv store junk; rm -rf junk
deletes the problem directory. Thank you all three of you. Who wants the points, or should I write up my own answer?– roaima
Dec 22 '18 at 10:08
Well that was interesting.
cd /rpool; ls
gives data store
as described. mv store junk; rm -rf junk
deletes the problem directory. Thank you all three of you. Who wants the points, or should I write up my own answer?– roaima
Dec 22 '18 at 10:08
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f490424%2fzfs-cannot-delete-directory-tree%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f490424%2fzfs-cannot-delete-directory-tree%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Do attempts to rename the
store
directory fail as well?– dhag
Dec 22 '18 at 1:47
1
does
rm -rf /rpool/store
emit any error messages?– Jeff Schaller
Dec 22 '18 at 2:15
1
without the
-f
maybe, to have a chance to read the error?– A.B
Dec 22 '18 at 3:18
Well that was interesting.
cd /rpool; ls
givesdata store
as described.mv store junk; rm -rf junk
deletes the problem directory. Thank you all three of you. Who wants the points, or should I write up my own answer?– roaima
Dec 22 '18 at 10:08