Subscribe
Accepted Solution

Creating multiple qtrees in a single volume

[ Edited ]

Hi all,

 

I have a requirement of creating multiple qtree in the single volume. The scenario is as follows: I have to create a shared volume and creating 9 qtrees for QA,Dev and Test environment in that shared volume. So after creating the volume, whether I can use these commands to create multiple qtrees :

 

qtree create /vol/vol_nonprod_shared/qa/

qtree create /vol/vol_nonprod_shared/qa/admin

qtree create /vol/vol_nonprod_shared/qa/diag

qtree create /vol/vol_nonprod_shared/qa/appl

 

qtree create /vol/vol_nonprod_shared/dev/

qtree create /vol/vol_nonprod_shared/dev/admin

qtree create /vol/vol_nonprod_shared/dev/diag

qtree create /vol/vol_nonprod_shared/dev/appl

 

qtree create /vol/vol_nonprod_shared/test/

qtree create /vol/vol_nonprod_shared/test/admin

qtree create /vol/vol_nonprod_shared/test/diag

qtree create /vol/vol_nonprod_shared/test/appl



I want to create this and nfs mount these to my oracle systems based on environment. So whether the above commands will work for creating multiple qtrees in a single volume.

Re: Creating multiple qtrees in a single volume

HI,

I think you cannot create a qtree within a qtree:

sin(takeover)> qtree create /vol/volt/qtreet/qtreetTest

qtree create: No '/' allowed in qtree name. Expected /vol/<vol>/<qtree>

-Arun

Re: Creating multiple qtrees in a single volume

Hi Pankaj,

The qtree can be created only in volumes as follows.

qtree create /vol/vol_nonprod_shared/qa

qtree create /vol/vol_nonprod_shared/qaadmin

qtree create /vol/vol_nonprod_shared/qadiag

qtree create /vol/vol_nonprod_shared/qaappl

qtree create /vol/vol_nonprod_shared/dev/

qtree create /vol/vol_nonprod_shared/devadmin

qtree create /vol/vol_nonprod_shared/devdiag

qtree create /vol/vol_nonprod_shared/devappl

qtree create /vol/vol_nonprod_shared/test

qtree create /vol/vol_nonprod_shared/testadmin

qtree create /vol/vol_nonprod_shared/testdiag

qtree create /vol/vol_nonprod_shared/testappl

Re: Creating multiple qtrees in a single volume

Hi Pankaj,

your Volume /vol/vol_nonprod_shared is allready a qtree. You can´t create a qtree in a qtree but you can use  the default quota of your volume.

Re: Creating multiple qtrees in a single volume

Hi Pankaj,

To summarize,

    You can achieve your requirement of having multiple qtrees in a single volume (This is possible). You can assign tree quota for each qtree and manage them.

   But you cannot create a qtree inside another qtree. (This is not possible)

   Let us know if you are looking for any specific solution.

Thanks,

  Arun

Re: Creating multiple qtrees in a single volume

Hi Arun,

Can you give some examples along with the commands for doing that. You are trying to say is I have to create a quota for each qtree and then create folders (admin,diag and appl) in that?

Can you elaborate more on this?

--PG

Re: Creating multiple qtrees in a single volume

Hi Pankaj,

  >> You are trying to say is I have to create a quota for each qtree and then create folders (admin,diag and appl) in that

       No, thats not what i said. You cannot create folders in qtree.

       Quota is to set the limit as to how much space that particular qtree can use in the volume. (say, I have a 1g vol and a qtree in that vol, I can set a quota on tree specifying that it can use upto 500mb of space)

       As per your first post,

   >>   I have to create a shared volume and creating 9 qtrees for QA,Dev and Test environment in that shared volume

      If this is your requirement, you could go-ahead like this:

qtree create /vol/vol_nonprod_shared/qaadmin

qtree create /vol/vol_nonprod_shared/qadiag

qtree create /vol/vol_nonprod_shared/qaappl

qtree create /vol/vol_nonprod_shared/devadmin

qtree create /vol/vol_nonprod_shared/devdiag

qtree create /vol/vol_nonprod_shared/devappl

qtree create /vol/vol_nonprod_shared/testadmin

qtree create /vol/vol_nonprod_shared/testdiag

qtree create /vol/vol_nonprod_shared/testappl

where vol_nonprod_shared is your volume, in which you have 9 qtrees, qaadmin, qadiag, devadmin ..........  etc

Thanks,

Arun




Re: Creating multiple qtrees in a single volume

So, finally I was able to achieve this by creating a volume, mounting the volume on some system and then I created folders in that like qa,dev,test and staging and in each folder I created admin,appl and diag folder. After this I nfs mounted each folder to the appropriate systems. I did not created the qtree as I dont want to use any quotas for this. Thanks everybody for atleast giving some ideas on how it can be created.

-- PG