<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create parent directories for a junction path using the CLI in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24421#M5745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;System manager creates a vol folder under the root vol that could be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you're stuck with mounting the vsroot and adding the folder manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 20:06:15 GMT</pubDate>
    <dc:creator>parisi</dc:creator>
    <dc:date>2013-03-18T20:06:15Z</dc:date>
    <item>
      <title>Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24401#M5739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to mount a volume on a deep hierarchy.&amp;nbsp; For example: /a/long/mount/path/vol1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use &lt;SPAN style="font-family: 'courier new', courier;"&gt;vserver setup -vserver vserver1 -storage &lt;/SPAN&gt;I can create this long junction path, but I don't want to use the interactive wizard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without mounting the root volume from a client, how do I create the parent directories on the vserver root volume?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 19:56:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24401#M5739</guid>
      <dc:creator>greg_trahair</dc:creator>
      <dc:date>2013-03-18T19:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24406#M5741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new 20MB volume and mount it to /namespace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then mount all of your volumes under that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So they would be /namespace/volname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 19:59:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24406#M5741</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2013-03-18T19:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24410#M5743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mount command should create the full path &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone 5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:03:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24410#M5743</guid>
      <dc:creator>scottgelb</dc:creator>
      <dc:date>2013-03-18T20:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24415#M5744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response.&amp;nbsp; Although what you propose will work, I don't want to waste my valuable number of volumes creating mount points.&amp;nbsp; I'm sure that there is a cleaner way to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:04:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24415#M5744</guid>
      <dc:creator>greg_trahair</dc:creator>
      <dc:date>2013-03-18T20:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24421#M5745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;System manager creates a vol folder under the root vol that could be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you're stuck with mounting the vsroot and adding the folder manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:06:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24421#M5745</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2013-03-18T20:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24425#M5746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid that I already tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cluster1::*&amp;gt; volume mount -vserver vstor-001 -volume vol3 -junction-path /a/long/junction/path &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Error: command failed: Failed to create or determine if a junction exists within volume 'rootvol1'. Error occurred with the remaining junction&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path of '/a/long/junction/path' for the given path of '/a/long/junction/path'&amp;nbsp; Reason: Junction create failed (2).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:06:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24425#M5746</guid>
      <dc:creator>greg_trahair</dc:creator>
      <dc:date>2013-03-18T20:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24430#M5747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, the path has to exist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:11:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24430#M5747</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2013-03-18T20:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24434#M5748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That can't be the only way.&amp;nbsp; The vserver setup command will create parent paths as deep as you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cstor-001::*&amp;gt; vserver setup -vserver vserver1 -storage &lt;/P&gt;&lt;P&gt;Welcome to the Vserver Setup Wizard, which will lead you through &lt;/P&gt;&lt;P&gt;the steps to create a virtual storage server that serves data to clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can enter the following commands at any time:&lt;/P&gt;&lt;P&gt;"help" or "?" if you want to have a question clarified,&lt;/P&gt;&lt;P&gt;"back" if you want to change your answers to previous questions, and &lt;/P&gt;&lt;P&gt;"exit" if you want to quit the Vserver Setup Wizard. Any changes &lt;/P&gt;&lt;P&gt;you made before typing "exit" will be applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can restart the Vserver Setup Wizard by typing "vserver setup". To accept a default &lt;/P&gt;&lt;P&gt;or omit a question, do not enter a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1. Create a Vserver.&lt;/P&gt;&lt;P&gt;You can type "back", "exit", or "help" at any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose the Vserver data protocols to be configured {nfs, cifs, fcp, iscsi} [nfs]: &lt;/P&gt;&lt;P&gt;Choose the Vserver client services to be configured {ldap, nis, dns}: &lt;/P&gt;&lt;P&gt;Vserver vserver1's allowed protocol list has been modified to nfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2: Create a data volume &lt;/P&gt;&lt;P&gt;You can type "back", "exit", or "help" at any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to create a data volume? {yes, no} [yes]: &lt;/P&gt;&lt;P&gt;Enter the volume name [vol1]: &lt;/P&gt;&lt;P&gt;Enter the name of the aggregate to contain this volume {aggr1_stor001, aggr1_stor002, aggr1_stor003, aggr1_stor004} [aggr1_stor002]:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the volume size: 2G&lt;/P&gt;&lt;P&gt;Enter the volume junction path [/vol/vol1]: /this/junction/path&lt;/P&gt;&lt;P&gt;It can take up to a minute to create a volume...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volume vol1 of size 2GB created on aggregate aggr1_stor002 successfully.&lt;/P&gt;&lt;P&gt;Do you want to create an additional data volume? {yes, no} [no]: no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cstor-001::*&amp;gt; volume show -fields junction-path&lt;/P&gt;&lt;P&gt;vserver&amp;nbsp; volume junction-path &lt;/P&gt;&lt;P&gt;-------- ------ -------------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;vserver1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vol1&amp;nbsp;&amp;nbsp; /this/junction/path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty sure that the vserver setup wizard doesn't mount the volume and create a directory, so it must be doing something that creates directories on the rootvol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:28:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24434#M5748</guid>
      <dc:creator>greg_trahair</dc:creator>
      <dc:date>2013-03-18T20:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24439#M5749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, it creates folders in the root vol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That seems like a valid workaround for what you'd want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can re-run vserver setup on the same vserver at any time without worrying about losing stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 13:19:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24439#M5749</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2013-03-19T13:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24443#M5751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that it's a workaround.&amp;nbsp; I don't want this to be interactive.&amp;nbsp; All I want to know is the magic behind the vserver create wizard that creates directories in the rootvol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 13:47:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24443#M5751</guid>
      <dc:creator>greg_trahair</dc:creator>
      <dc:date>2013-03-19T13:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24448#M5753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The vserver setup command is using ZAPI calls. There is a ZAPI that allows folder creation, but no commands that I know of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest opening a support case and having the engineer file an RFE for this. Sounds like it could be a useful feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime, we have an SDK that might allow you to do what you want (though I prefer the apitest found with DFM/OnCommand). The ZAPI call is "file-create-directory."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@nfsv4-host /]# mount 10.61.100.102:/ /mnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@nfsv4-host mnt]# ls | grep testdir&lt;/P&gt;&lt;P&gt;[root@nfsv4-host mnt]#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;::*&amp;gt; vol create -vserver win2k8 -volume testdir -aggregate aggr2 -size 20MB -state online -type RW -policy default -junction-path /testdir/testdir&lt;/P&gt;&lt;P&gt;&amp;nbsp; (volume create)&lt;/P&gt;&lt;P&gt;[Job 7026] Job is queued: Create testdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: command failed: [Job 7026] Job failed: Volume created successfully but not mounted. Reason: Failed to create or determine if a junction exists within volume 'root'. Error occurred with the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; remaining junction path of '/testdir/testdir' for the given path of '/testdir/testdir'&amp;nbsp; Reason: Junction create failed (2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files\NetApp\DataFabric Manager\DFM\bin&amp;gt;apitest -t filer -h 10.61.100.100 -u vsadmin -p XXXXXXXX file-create-directory path /vol/root/testdir perm 0777&lt;/P&gt;&lt;P&gt;Testing: file-create-directory(path=/vol/root/testdir, perm=0777) Success (0.047 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@nfsv4-host mnt]# ls -la | grep testdir&lt;/P&gt;&lt;P&gt;drwxrwxrwx&amp;nbsp; 2 root unixadmins&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 Mar 19 10:32 testdir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;::*&amp;gt; vol create -vserver win2k8 -volume testdir -aggregate aggr2 -size 20MB -state online -type RW -policy default -junction-path /testdir/testdir&lt;/P&gt;&lt;P&gt;&amp;nbsp; (volume create)&lt;/P&gt;&lt;P&gt;[Job 7028] Job succeeded: Successful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;::*&amp;gt; vol show -vserver win2k8 -volume testdir -fields junction-path&lt;/P&gt;&lt;P&gt;&amp;nbsp; (volume show)&lt;/P&gt;&lt;P&gt;vserver volume&amp;nbsp; junction-path&lt;/P&gt;&lt;P&gt;------- ------- ----------------&lt;/P&gt;&lt;P&gt;win2k8&amp;nbsp; testdir /testdir/testdir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can also create directories inside of the directories:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Program Files\NetApp\DataFabric Manager\DFM\bin&amp;gt;apitest -t filer -h 10.61.100.100-u vsadmin -p XXXXXXXX file-create-directory path /vol/root/testdir/testdir2 perm 0777&lt;/P&gt;&lt;P&gt;Testing: file-create-directory(path=/vol/root/testdir/testdir2, perm=0777) Success (0.313 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you could get creative... or open a case and ask for an RFE. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 14:37:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24448#M5753</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2013-03-19T14:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24453#M5754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; This is what I was expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll certainly create that RFE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 09:45:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24453#M5754</guid>
      <dc:creator>greg_trahair</dc:creator>
      <dc:date>2013-03-21T09:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24457#M5756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was at customer site and we had to tweak the apitest syntax in order to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;SPAN style="font-size: 10.5pt; font-family: 'Calibri','sans-serif'; color: black;"&gt;apitest -t filer -v &amp;lt;SVM_NAME&amp;gt; -s &amp;lt;CLUSTER-NAME&amp;gt; admin &amp;lt;PASSWORD&amp;gt; file-create-directory path /vol/&amp;lt;SVM_ROOT_VOL_NAME&amp;gt;/&amp;lt;FOLDER1&amp;gt; perm 0777&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 21:23:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24457#M5756</guid>
      <dc:creator>rjackson</dc:creator>
      <dc:date>2014-06-25T21:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24461#M5759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for posting...did you use OnCommand 5.2 ?&amp;nbsp; This might be a good reason to have an older DFM install along with 6 to get this functionality for systems without a NAS protocol to mkdir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 22:31:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24461#M5759</guid>
      <dc:creator>scottgelb</dc:creator>
      <dc:date>2014-06-25T22:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24467#M5762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We used the apitest.exe from the NetappSDK. The version of apitest was 5.2.1r1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:33:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24467#M5762</guid>
      <dc:creator>rjackson</dc:creator>
      <dc:date>2014-06-26T13:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24470#M5765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right. The syntax with the DFM apitest vs the SDK will differ. Good find though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:41:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/24470#M5765</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2014-06-26T13:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/106160#M21812</link>
      <description>&lt;P&gt;I know this is an old thread, but a similar problem in 8.3. This time there is no "vserver setup" anymore. So thought of sharing a solution I found for creating /vol on SVMs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Shell:&lt;/P&gt;&lt;P&gt;Import-Module DataONTAP&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Connect-NcController -Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;New-NcDirectory -VserverContext &amp;lt;vservername&amp;gt;&amp;nbsp;-Permission 777 /vol/&amp;lt;vserverrootvolumename&amp;gt;/vol&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Credit to the following threads:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A target="_blank" href="https://community.netapp.com/t5/Data-ONTAP-Discussions/ls-command-on-C-Mode/td-p/32593"&gt;http://community.netapp.com/t5/Data-ONTAP-Discussions/ls-command-on-C-Mode/td-p/32593&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A target="_blank" href="https://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/td-p/102331"&gt;http://community.netapp.com/t5/Simulator-Discussions/Powershell-DataONTAP-cmdlet-New-NcDirectory/td-p/102331&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 00:45:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/106160#M21812</guid>
      <dc:creator>Naag</dc:creator>
      <dc:date>2015-06-12T00:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/125067#M26957</link>
      <description>&lt;P&gt;Sorry to drag up an old thread, but I've found nothing more recent than this discussion and I've also checked the &lt;A href="https://kb-stage.netapp.com/support/index?id=3014349&amp;amp;page=content&amp;amp;locale=en_US" target="_blank"&gt;KB&lt;/A&gt; and &lt;A href="https://library.netapp.com/ecm/ecm_get_file/ECMP1610207" target="_blank"&gt;8.3 Best Practice CIFS&lt;/A&gt; guide without finding anything useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I too have been trying to overcome this problem today, and here's what I've come up with instead of using API calls and works entirely within the CLI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Create a QTree in the SVM root volume&lt;/P&gt;&lt;P&gt;qtree create -vserver VS1 -volume VS1_root -qtree SUBFOLDER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Mount a volume to the QTree&lt;/P&gt;&lt;P&gt;mount -vserver VS1 -volume volData -junction /SUBFOLDER/volData&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This allows you to create a second level mount against a folder (QTree) rather than creating a stub volume and also without resorting to API calls or PowerShell scripts to overcome it. Hope this is of use to someone.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:29:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/125067#M26957</guid>
      <dc:creator>John_Edwards</dc:creator>
      <dc:date>2016-11-03T13:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/125259#M26995</link>
      <description>&lt;P&gt;Yep, I agree that creating qtrees in the root volume is cleaner than creating useless stub volumes. &amp;nbsp;Can be done from both CLI and GUI without having to rely on API.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 21:44:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/125259#M26995</guid>
      <dc:creator>SteveF3</dc:creator>
      <dc:date>2016-11-09T21:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create parent directories for a junction path using the CLI</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/126029#M27183</link>
      <description>&lt;P&gt;I just mount vserver:/.admin from a Linux admin host and then you can create a directory.&amp;nbsp; The admin host has to have 777 rights to / in the default export policy for the SVM.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 11:39:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/m-p/126029#M27183</guid>
      <dc:creator>markfred</dc:creator>
      <dc:date>2016-12-07T11:39:45Z</dc:date>
    </item>
  </channel>
</rss>

