Can you rename a qtree?
I tried this: - from the mount point for /vol/vol0 I did a "mv qtreedir newqtreedir" - edited /vol/vol0/etc/quotas to change the quota entry to reflect the new name: newqtreedir - edited /vol/vol0/etc/exports to change the exported dir to newqtreedir - resized quota for vol0 - rexported everything - at the host unmounted/deleted the nfs mount - added a new mount using newqtreedir
It looks like it works. On the hosts a df command shows the quota correctly.
Question: Is this really messing things up or is this ok?
Thanks
Rick ---------------------------------------------------------------------- Richard L. Rhodes e: rhodesr@firstenergycorp.com Ohio Edison Co. p: 330-384-4904 f: 330-384-2514
You've did everything fine from my experience. "mv"-ing the qtree's name does not change its inode, so it doesn't change its internal essence as a qtree.
Eyal.
"Richard L. Rhodes" wrote:
Can you rename a qtree?
I tried this:
- from the mount point for /vol/vol0 I did a "mv qtreedir newqtreedir"
- edited /vol/vol0/etc/quotas to change the quota entry to reflect the new name: newqtreedir
- edited /vol/vol0/etc/exports to change the exported dir to newqtreedir
- resized quota for vol0
- rexported everything
- at the host unmounted/deleted the nfs mount
- added a new mount using newqtreedir
It looks like it works. On the hosts a df command shows the quota correctly.
Question: Is this really messing things up or is this ok?
Thanks
Rick
Richard L. Rhodes e: rhodesr@firstenergycorp.com Ohio Edison Co. p: 330-384-4904 f: 330-384-2514
On Tue, 22 Feb 2000, Eyal Traitel wrote:
You've did everything fine from my experience. "mv"-ing the qtree's name does not change its inode, so it doesn't change its internal essence as a qtree.
Speaking of which, I've never tried it, but what would happen if you tried to move a qtree up the directory hierarchy? Would it be converted to a plain ol'e directory, ... ?
Tom
From tkaczma@gryf.net on Thu, 24 Feb 2000 05:42:04 CST:
On Tue, 22 Feb 2000, Eyal Traitel wrote:
You've did everything fine from my experience. "mv"-ing the qtree's name does not change its inode, so it doesn't change its internal essence as a qtree.
Speaking of which, I've never tried it, but what would happen if you tried to move a qtree up the directory hierarchy? Would it be converted to a plain ol'e directory, ... ?
Funny you ask, I just did that the other day. It does in fact convert it to a plain old directory. Well, actually it probably just stops monitoring it as a qtree, but nonetheless, that qtree magic is gone. =~(
-- Jeff
-- ---------------------------------------------------------------------------- Jeff Krueger E-Mail: jeff@qualcomm.com NetApp File Server Lead Phone: 858-651-6709 IT Engineering and Support Fax: 858-651-6627 QUALCOMM, Incorporated Web: www.qualcomm.com
On Thu, 24 Feb 2000 tkaczma@gryf.net wrote:
Speaking of which, I've never tried it, but what would happen if you tried to move a qtree up the directory hierarchy? Would it be converted to a plain ol'e directory, ... ?
Don't qtrees have to anchored to the root of a volume anyway? Where would you move it "up" to?
Richard:
That's the way to do it! The only special administration involved with qtrees is in creating them and, of course, keeping their entries up to date in /etc/quotas. Otherwise they are just good old directories off the root of a volume.
One thing that could get you when renaming or removing any directory on a NetApp, including a qtree, is that CIFS shares prevent you from performing these commands. You will get a "Permission denied." error in UNIX if you try to remove or rename a directory which is currently the target of a CIFS share. To workaround this, simply delete the share, rename or remove the directory, then optionally re-add the share pointing to the new target.
Have fun!
-- Jeff
-- ---------------------------------------------------------------------------- Jeff Krueger E-Mail: jeff@qualcomm.com NetApp File Server Lead Phone: 858-651-6709 IT Engineering and Support Fax: 858-651-6627 QUALCOMM, Incorporated Web: www.qualcomm.com
From "Richard L. Rhodes" on Tue, 22 Feb 2000 13:40:07:
Can you rename a qtree?
I tried this:
- from the mount point for /vol/vol0 I did a "mv qtreedir newqtreedir"
- edited /vol/vol0/etc/quotas to change the quota entry to reflect the new name: newqtreedir
- edited /vol/vol0/etc/exports to change the exported dir to newqtreedir
- resized quota for vol0
- rexported everything
- at the host unmounted/deleted the nfs mount
- added a new mount using newqtreedir
It looks like it works. On the hosts a df command shows the quota correctly.
Question: Is this really messing things up or is this ok?
Thanks
Rick
Richard L. Rhodes e: rhodesr@firstenergycorp.com Ohio Edison Co. p: 330-384-4904 f: 330-384-2514