The web interface doesn't provide a Qtree rename option. Is there a way to rename a Qtree without having to create a new Qtree, copy the data, and deleting the old Qtree? I have been told this copy process is the only way to rename a Qtree.
I rename qtrees on the unix admin host all the time. mount the volume via NFS and use the mv command.
then visit the exports and quotas file :)
-- email: lance_bailey@pmc-sierra.com box: Lance R. Bailey, unix Administrator vox: +1 604 415 6646 PMC-Sierra, Inc fax: +1 604 415 6151 105-8555 Baxter Place http://www.lydia.org/~zaphod Burnaby BC, V5A 4V7 Cats Hate it: when you roll over on them at night.
Dale Wolf wrote:
The web interface doesn't provide a Qtree rename option. Is there a way to rename a Qtree without having to create a new Qtree, copy the data, and deleting the old Qtree? I have been told this copy process is the only way to rename a Qtree.
Dale> The web interface doesn't provide a Qtree rename option. Is Dale> there a way to rename a Qtree without having to create a new Dale> Qtree, copy the data, and deleting the old Qtree? I have been Dale> told this copy process is the only way to rename a Qtree.
You can simply mv(1) the directory that represents the qtree to it's new name.
b. -- /* Bruno Connelly, bruno@whack.org */
What about making a top level directory into a qtree after data is already stored?
For example, I have /vol/vol0/scratch but scratch was not originally created as a qtree. Can I make it one without having to create a new qtree and then move all the data from one dir to another?
Thanks.
~JK
Bruno Connelly wrote:
Dale> The web interface doesn't provide a Qtree rename option. Is Dale> there a way to rename a Qtree without having to create a new Dale> Qtree, copy the data, and deleting the old Qtree? I have been Dale> told this copy process is the only way to rename a Qtree.
You can simply mv(1) the directory that represents the qtree to it's new name.
b.
/* Bruno Connelly, bruno@whack.org */
that's harder. i had to create a new qtree and then used ndmpd to copy stuff over. i found no way to convert a directory into a qtree. i'd love to be told i'm wrong. on this.
-- email: lance_bailey@pmc-sierra.com box: Lance R. Bailey, unix Administrator vox: +1 604 415 6646 PMC-Sierra, Inc fax: +1 604 415 6151 105-8555 Baxter Place http://www.lydia.org/~zaphod Burnaby BC, V5A 4V7 C program. C program run. C program dump core. bad program.
Jeff Kennedy wrote:
What about making a top level directory into a qtree after data is already stored?
For example, I have /vol/vol0/scratch but scratch was not originally created as a qtree. Can I make it one without having to create a new qtree and then move all the data from one dir to another?
Thanks.
~JK
Bruno Connelly wrote:
Dale> The web interface doesn't provide a Qtree rename option. Is Dale> there a way to rename a Qtree without having to create a new Dale> Qtree, copy the data, and deleting the old Qtree? I have been Dale> told this copy process is the only way to rename a Qtree.
You can simply mv(1) the directory that represents the qtree to it's new name.
b.
/* Bruno Connelly, bruno@whack.org */
--
Jeff Kennedy Unix Administrator AMCC jlkennedy@amcc.com
Nope, you're not wrong. I got a reply from NetApp and this is the case. Was just hoping 6.1R1 maybe made miracles possible...
~JK
"Lance R. Bailey" wrote:
that's harder. i had to create a new qtree and then used ndmpd to copy stuff over. i found no way to convert a directory into a qtree. i'd love to be told i'm wrong. on this.
-- email: lance_bailey@pmc-sierra.com box: Lance R. Bailey, unix Administrator vox: +1 604 415 6646 PMC-Sierra, Inc fax: +1 604 415 6151 105-8555 Baxter Place http://www.lydia.org/~zaphod Burnaby BC, V5A 4V7 C program. C program run. C program dump core. bad program.
Jeff Kennedy wrote:
What about making a top level directory into a qtree after data is already stored?
For example, I have /vol/vol0/scratch but scratch was not originally created as a qtree. Can I make it one without having to create a new qtree and then move all the data from one dir to another?
Thanks.
~JK
Bruno Connelly wrote:
Dale> The web interface doesn't provide a Qtree rename option. Is Dale> there a way to rename a Qtree without having to create a new Dale> Qtree, copy the data, and deleting the old Qtree? I have been Dale> told this copy process is the only way to rename a Qtree.
You can simply mv(1) the directory that represents the qtree to it's new name.
b.
/* Bruno Connelly, bruno@whack.org */
--
Jeff Kennedy Unix Administrator AMCC jlkennedy@amcc.com
Nope, you're not wrong. I got a reply from NetApp and this is the case. Was just hoping 6.1R1 maybe made miracles possible...
~JK
Yes, this would be nice, but not trivial to do. This is because you can have multiple directory entries for the same file (aka hard links). Suppose you want to convert /vol/vol0/users from a regular directory tree to a qtree. But suppose somene has done this:
ln users/file otherdir/file
Now we have two directory entries for "file" -- one inside the "users" directory and one outside in "otherdir". When converting the "users" directory to a qtree, what should be done about "file" ? Include it in the qtree or not? If you include it, then what should be done if "otherdir" is turned into a qtree ?
This is why ONTAP insists that qtrees be created empty. Once you put a file in a qtree, you cannot make a hard link to it outside the qtree with the unix ln command (try it).
Steve Losen scl@virginia.edu phone: 804-924-0640
University of Virginia ITC Unix Support