Converting a directory to a qtree
Converting a rooted directory to a qtree
A rooted directory is a directory at the root of a volume. If you have a rooted directory that you want to convert to a qtree, you must migrate the data contained in the directory to a new qtree with the same name, using your client application. The following process outlines the tasks you need to complete to convert a rooted directory to a qtree:
Stage
|
Task
|
|
1
|
Rename the directory to be made into a qtree.
|
|
2
|
Create a new qtree with the original directory name.
|
|
3
|
Use the client application to move the contents of the directory into the new qtree.
|
|
4
|
Delete the now-empty directory.
|
Note
You cannot delete a directory if it is associated with an existing CIFS share.
Following are procedures showing how to complete this process on Windows clients and on UNIX clients.
Note
These procedures are not supported in the Windows command-line interface or at the DOS prompt.
Converting a rooted directory to a qtree using a Windows client
To convert a rooted directory to a qtree using a Windows client, complete the following steps.
Step
|
Action
|
|
1
|
Open Windows Explorer.
|
|
2
|
Click the folder representation of the directory you want to change.
|
|
3
|
From the File menu, select Rename to give this directory a different name.
|
|
4
|
On the storage system, use the qtree create command to create a new qtree with the original name.
|
|
5
|
In Windows Explorer, open the renamed folder and select the files inside it.
|
|
6
|
Drag these files into the folder representation of the new qtree.
Note The more subfolders contained in a folder that you are moving across qtrees, the longer the move operation for that folder will take.
|
|
7
|
From the File menu, select Delete to delete the renamed, now-empty directory folder.
|
Converting a rooted directory to a qtree using a UNIX client
To convert a rooted directory to a qtree using a UNIX client, complete the following steps.
Step
|
Action
|
|
1
|
Open a UNIX window.
|
|
2
|
Use the mv command to rename the directory.
Example
client: mv /n/joel/vol1/dir1 /n/joel/vol1/olddir
|
|
3
|
From the storage system, use the qtree create command to create a qtree with the original name.
Example
system1: qtree create /n/joel/vol1/dir1
|
|
4
|
From the client, use the mv command to move the contents of the old directory into the qtree.
Example
client: mv /n/joel/vol1/olddir/* /n/joel/vol1/dir1
Note Depending on how your UNIX client implements the mv command, storage system ownership and permissions may not be preserved. If this is the case for your UNIX client, you may need to update file owners and permissions after the mv command completes.
The more subdirectories contained in a directory that you are moving across qtrees, the longer the move operation for that directory will take.
|
|
5
|
Use the rmdir command to delete the old, now-empty directory.
Example
client: rmdir /n/joel/vol1/olddir
|
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01085_B0
File: 7qtree10.htm
Last updated: 01-Dec-2005 16:51:43