I created a new top level directory in my volume group (/vol/vol0) some time ago and now want to remove it, but the .snapshot directory contained there in is preventing me from doing so.
This is from my admin host system:
rm -fr XYZ rm: Unable to remove directory XYZ/.snapshot/nightly.1/ABC: Read-only file system rm: Unable to remove directory XYZ/.snapshot/nightly.2/ABC: Read-only file system rm: Unable to remove directory XYZ/.snapshot/nightly.3/ABC: Read-only file system
I was able to remove ABC from XYZ/
Will the snapshots eventually roll out? Do I need to turn something off?
Regards,
Dan O'Brien, dmobrien@lcsi.net Cell: 614-783-4859 Work: 614-476-8473 Home: 740-927-2178 Pataskala, OH
In message 3EC3C0F1.6070308@lcsi.net you wrote:
I created a new top level directory in my volume group (/vol/vol0) some time ago and now want to remove it, but the .snapshot directory contained there in is preventing me from doing so.
This is from my admin host system:
rm -fr XYZ
If I do this:
mount filer1:/vol/vol1/q1 /t/filer1/vol1/q1 cd /t/filer1/vol1 rm -rf q1
then I experience the symptoms you describe. But if instead I say
mount filer1:/vol/vol1 /t/filer1/vol1 cd /t/filer1/vol1 rm -rf q1
then everything works just fine.
What version of ONTAP are you running? Do you have just the top-level directory mounted on your admin host (what OS, what version)? Or do you have /vol/volX mounted from the filer and trying to remove XYZ *strictly*under* the mount point?
==== Collin Park Not a statement of my employer.
collin66@yahoo.com wrote:
If I do this:
mount filer1:/vol/vol1/q1 /t/filer1/vol1/q1 cd /t/filer1/vol1 rm -rf q1
then I experience the symptoms you describe. But if instead I say
mount filer1:/vol/vol1 /t/filer1/vol1 cd /t/filer1/vol1 rm -rf q1
then everything works just fine.
Ok,this works. Thanks. My admin host is Solaris box and I was using /net/filer (i.e., net mount) and that caused funny things to happen. Each subdir under the the filer / was being mounted showing me the .snapshot dirs.
When I hard/hand mounted the filer (mount filer:/ /mnt) I was able to remove the offending directory, no .snapshot dirs.
Thanks to everyone for their help.
Regards,
Dan O'Brien, dmobrien@lcsi.net Cell: 614-783-4859 Work: 614-476-8473 Home: 740-927-2178 Pataskala, OH
I created a new top level directory in my volume group (/vol/vol0) some time ago and now want to remove it, but the .snapshot directory contained there in is preventing me from doing so.
This is from my admin host system:
rm -fr XYZ rm: Unable to remove directory XYZ/.snapshot/nightly.1/ABC: Read-only file system rm: Unable to remove directory XYZ/.snapshot/nightly.2/ABC: Read-only file system rm: Unable to remove directory XYZ/.snapshot/nightly.3/ABC: Read-only file system
I was able to remove ABC from XYZ/
Will the snapshots eventually roll out? Do I need to turn something off?
Looks like you are mounting /vol/vol0/XYZ and then trying to remove XYZ. Try mounting /vol/vol0 instead and then you should be able to remove XYZ.
The .snapshot directory is visible at the NFS mount point, but invisible in subdirectories. When doing rm -fr the NFS client will try to remove the .snapshot directory if it is visible.
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support
The .snapshot directory is visible at the NFS mount point, but invisible in subdirectories. When doing rm -fr the NFS client will try to remove the .snapshot directory if it is visible.
Maybe this is a silly question -- if it is, someone whack me up-side the head with the google results.
Why isn't there a way to walk and manage the file system(s) from the filer itself? Or, is there, and I've just missed it?
Like, I'd like to be able to telnet to the filer, login as root and do:
cd /vol/vol1/ mkdir foo rm -r bar cd /vol/vol1/homes chown fflintst:bedrock fflintst
etc.
-- Dan Brown brown@brauhausdc.org