[prev in list] [next in list] [prev in thread] [next in thread] 

List:       toasters
Subject:    Re: 7Mode junction-path style on cDOT
From:       tmac <tmacmd () gmail ! com>
Date:       2016-03-18 14:14:56
Message-ID: CAL9X-_Hag_gpeiT=B9Yzghxn4LSZn7R9DkKZgE906K65_OXLcQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


furthermore, trying the APITEST command...it still does work, though.
confirmed ONTAPI version 1.31 (which is ahead of ZAPI, using 1.30) and cDOT
version 8.3.1P2 with apitest

It seems Odd that the perfectly usable command is viable via the APITEST,
yet, not available to be seen with ZEDI nor with apitest:

apitest.exe cdotfiler admin "mypasswd" system-api-list | Select-String
"file-c"

                        <name>file-copy-destroy</name>
                        <name>file-copy-get-iter</name>
                        <name>file-copy-start</name>

Do not see file-create-directory !

working example with apitest ->
apitest.exe -t filer -v myvfiler cdotfiler admin "mypasswd"
file-create-directory path /vol/tmp1/dir2 perm 077
<results status="passed"/>

Tried apitest with Powershell, DOS and perl and they all work.

--tmac

*Tim McCarthy, **Principal Consultant*





On Fri, Mar 18, 2016 at 9:30 AM, tmac <tmacmd@gmail.com> wrote:

> It looks like, from what I can see in the API tools(using ZEDI from the
> SDK), that the *file-create-directory* ZAPI call is only exposed in the
> 7-mode and vserver (which appears to only apply to vfilers under 7-mode and
> not cDOT) APIs and not the cluster mode one, yet per my playing yesterday,
> the ability *is* exposed in the PowerShell toolkit.
> 
> --tmac
> 
> *Tim McCarthy, **Principal Consultant*
> 
> 
> 
> On Thu, Mar 17, 2016 at 12:36 PM, Parisi, Justin <Justin.Parisi@netapp.com
> > wrote:
> 
> > You can create folders in cDOT with ZAPI calls. ;)
> > 
> > 
> > http://community.netapp.com/t5/Data-ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/td-p/24401/page/2
> >  
> > 
> > From: tmac <tmacmd@gmail.com>
> > Date: Thursday, March 17, 2016 at 11:26 AM
> > To: Justin Parisi <Justin.Parisi@netapp.com>, Sebastian Goetze <
> > spgoetze@gmail.com>
> > 
> > Cc: "Toasters@teaparty.net" <Toasters@teaparty.net>
> > Subject: Re: 7Mode junction-path style on cDOT
> > 
> > I think the idea is you can easily make the qtree from ONTAP without
> > having to mount the volume first, like in my first post. Not sure, but I
> > think it requires something squirrelly to make a directory from ONTAP
> > without it being a qtree
> > 
> > Sent from Mobile Outlook <https://aka.ms/qtex0l>
> > 
> > 
> > 
> > 
> > On Thu, Mar 17, 2016 at 9:22 AM -0700, "Parisi, Justin" <
> > Justin.Parisi@netapp.com> wrote:
> > 
> > Doesn't even need to be a qtree. Can be an empty directory.
> > > 
> > > From: <toasters-bounces@teaparty.net> on behalf of tmac <
> > > tmacmd@gmail.com>
> > > Date: Thursday, March 17, 2016 at 9:22 AM
> > > To: Sebastian Goetze <spgoetze@gmail.com>
> > > Cc: "Toasters@teaparty.net" <Toasters@teaparty.net>
> > > Subject: Re: 7Mode junction-path style on cDOT
> > > 
> > > Very good point....when I was doing this on the older versions of GX and
> > > cDOT, qtrees were non-existent.
> > > 
> > > --tmac
> > > 
> > > *Tim McCarthy, **Principal Consultant*
> > > 
> > > On Thu, Mar 17, 2016 at 9:57 AM, Sebastian Goetze <spgoetze@gmail.com>
> > > wrote:
> > > 
> > > > How about, instead of creating an empty volume, you *create a QTree
> > > > named "vol"...* (in the SVM root volume)
> > > > Then you can also easily mount with a junction path starting in
> > > > "/vol/..."
> > > > 
> > > > Sebastian
> > > > 
> > > > 
> > > > On 3/17/2016 12:59 PM, tmac wrote:
> > > > 
> > > > you *could* make that happen easily.
> > > > 
> > > > There is the base root volume in cDOT (/) where all junctions usually
> > > > form.
> > > > You would have to set the export-policy on the root volume to something
> > > > that is writeable by a client.
> > > > Mount the root of the cdot filer and create the EMPTY volume call vol.
> > > > That is your place holder.
> > > > 
> > > > Then, when "mounting" a junction in cdot, do something like:
> > > > 
> > > > vol mount -volume share_01 -junction-path /vol/share_01
> > > > 
> > > > and it should work. I did this in a past job with hundreds of volumes
> > > > so I can tell you it works.
> > > > You just need to make sure your export-policies are set the way you
> > > > want/need and be sure to limit the root volume export-policy when you are
> > > > done.
> > > > 
> > > > 
> > > > --tmac
> > > > 
> > > > *Tim McCarthy, **Principal Consultant*
> > > > 
> > > > 
> > > > 
> > > > RHCE6 110-107-141
> > > > <https://www.redhat.com/wapps/training/certification/verify.html?certNumber=110-107-141&isSearch=False&verify=Verify>
> > > >  Current until Aug 02, 2016
> > > > 
> > > > On Thu, Mar 17, 2016 at 7:05 AM, Momonth <momonth@gmail.com> wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > I wonder if it's possible to employ 7Mode mount point behavior on cDOT
> > > > > NFS SVM?
> > > > > 
> > > > > An example:
> > > > > 
> > > > > 1. I create a volume "share_01" and by default it shows up as
> > > > > "toaster:/share_01".
> > > > > 
> > > > > 2. I'd like to access it as "toaset:/vol/share_01"
> > > > > 
> > > > > So, my question is how to add "/vol/" to its junction_path?
> > > > > 
> > > > > Cheers,
> > > > > Vladimir
> > > > > _______________________________________________
> > > > > Toasters mailing list
> > > > > Toasters@teaparty.net
> > > > > http://www.teaparty.net/mailman/listinfo/toasters
> > > > > 
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > Toasters mailing \
> > > > listToasters@teaparty.nethttp://www.teaparty.net/mailman/listinfo/toasters 
> > > > 
> > > > 
> > > 
> 


[Attachment #5 (text/html)]

<div dir="ltr">furthermore, trying the APITEST command...it still does work, though.  \
<div>confirmed ONTAPI version 1.31 (which is ahead of ZAPI, using 1.30) and cDOT \
version 8.3.1P2 with apitest<div><br></div><div>It seems Odd that the perfectly \
usable command is viable via the APITEST, yet, not available to be seen with ZEDI nor \
with apitest:</div><div><br></div><div><div>apitest.exe cdotfiler admin \
&quot;mypasswd&quot; system-api-list | Select-String \
&quot;file-c&quot;</div><div><br></div><div>                                    \
&lt;name&gt;file-copy-destroy&lt;/name&gt;</div><div>                                 \
&lt;name&gt;file-copy-get-iter&lt;/name&gt;</div><div>                                \
&lt;name&gt;file-copy-start&lt;/name&gt;</div></div><div><br></div><div>Do not see \
file-create-directory !</div><div><br></div><div>working example with apitest \
-&gt;</div><div><div><div>apitest.exe -t filer -v myvfiler cdotfiler admin \
&quot;mypasswd&quot; file-create-directory path /vol/tmp1/dir2 perm \
077</div><div>&lt;results status=&quot;passed&quot;/&gt;</div><div \
class="gmail_extra"><br></div><div class="gmail_extra">Tried apitest with Powershell, \
DOS and perl and they all work.</div><div class="gmail_extra"><br \
clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr">--tmac<div><br></div><div><b>Tim McCarthy, </b><i \
style="font-size:12.8px">Principal Consultant</i></div><div><br></div><div><div \
style="text-align:left"><br></div><div style="text-align:center"><font \
size="2"><br></font></div><div \
style="text-align:left"><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div><div \
class="gmail_quote">On Fri, Mar 18, 2016 at 9:30 AM, tmac <span dir="ltr">&lt;<a \
href="mailto:tmacmd@gmail.com" target="_blank">tmacmd@gmail.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div \
dir="ltr">It looks like, from what I can see in the API tools(using ZEDI from the \
SDK), that the <b>file-create-directory</b> ZAPI call is only exposed in the 7-mode \
and vserver (which appears to only apply to vfilers under 7-mode and not cDOT) APIs \
and not the cluster mode one, yet per my playing yesterday, the ability *is* exposed \
in the PowerShell toolkit.<div class="gmail_extra"><span class=""><br \
clear="all"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div \
dir="ltr"><div dir="ltr">--tmac<div><br></div><div><b>Tim McCarthy, </b><i \
style="font-size:12.8px">Principal Consultant</i></div><div><i \
style="font-size:12.8px"><br></i></div><div><div \
style="text-align:left"><br></div></div></div></div></div></div></div></div></div> \
<br></span><div><div class="h5"><div class="gmail_quote">On Thu, Mar 17, 2016 at \
12:36 PM, Parisi, Justin <span dir="ltr">&lt;<a \
href="mailto:Justin.Parisi@netapp.com" \
target="_blank">Justin.Parisi@netapp.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
 <div>You can create folders in cDOT with ZAPI calls. ;)</div>
<div><br>
</div>
<div><a href="http://community.netapp.com/t5/Data-ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/td-p/24401/page/2" \
target="_blank">http://community.netapp.com/t5/Data-ONTAP-Discussions/Create-parent-directories-for-a-junction-path-using-the-CLI/td-p/24401/page/2</a> \
</div> <div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;border-width:1pt \
medium medium;border-style:solid none none;padding:3pt 0in \
0in;border-top-color:rgb(181,196,223)"> <span style="font-weight:bold">From: \
</span>tmac &lt;<a href="mailto:tmacmd@gmail.com" \
target="_blank">tmacmd@gmail.com</a>&gt;<br> <span style="font-weight:bold">Date: \
</span>Thursday, March 17, 2016 at 11:26 AM<br> <span style="font-weight:bold">To: \
</span>Justin Parisi &lt;<a href="mailto:Justin.Parisi@netapp.com" \
target="_blank">Justin.Parisi@netapp.com</a>&gt;, Sebastian Goetze &lt;<a \
href="mailto:spgoetze@gmail.com" \
target="_blank">spgoetze@gmail.com</a>&gt;<div><div><br> <span \
style="font-weight:bold">Cc: </span>&quot;<a href="mailto:Toasters@teaparty.net" \
target="_blank">Toasters@teaparty.net</a>&quot; &lt;<a \
href="mailto:Toasters@teaparty.net" target="_blank">Toasters@teaparty.net</a>&gt;<br> \
<span style="font-weight:bold">Subject: </span>Re: 7Mode junction-path style on \
cDOT<br> </div></div></div><div><div>
<div><br>
</div>
<div>
<div>
<div>I think the idea is you can easily make the qtree from ONTAP without having to \
mount the volume first, like in my first post. Not sure, but I think it requires \
something squirrelly to make a directory from ONTAP without it being a qtree  <br> \
<br> <div>Sent from Mobile <a href="https://aka.ms/qtex0l" \
target="_blank">Outlook</a></div> <br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Thu, Mar 17, 2016 at 9:22 AM -0700, &quot;Parisi, \
Justin&quot; <span dir="ltr"> &lt;<a href="mailto:Justin.Parisi@netapp.com" \
target="_blank">Justin.Parisi@netapp.com</a>&gt;</span> wrote:<br> <br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 <div dir="3D&quot;ltr&quot;">
<div>Doesn't even need to be a qtree. Can be an empty directory.</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;border-width:1pt \
medium medium;border-style:solid none none;padding:3pt 0in \
0in;border-top-color:rgb(181,196,223)"> <span style="font-weight:bold">From: \
</span>&lt;<a href="mailto:toasters-bounces@teaparty.net" \
target="_blank">toasters-bounces@teaparty.net</a>&gt; on behalf of tmac &lt;<a \
href="mailto:tmacmd@gmail.com" target="_blank">tmacmd@gmail.com</a>&gt;<br> <span \
style="font-weight:bold">Date: </span>Thursday, March 17, 2016 at 9:22 AM<br> <span \
style="font-weight:bold">To: </span>Sebastian Goetze &lt;<a \
href="mailto:spgoetze@gmail.com" target="_blank">spgoetze@gmail.com</a>&gt;<br> <span \
style="font-weight:bold">Cc: </span>&quot;<a href="mailto:Toasters@teaparty.net" \
target="_blank">Toasters@teaparty.net</a>&quot; &lt;<a \
href="mailto:Toasters@teaparty.net" target="_blank">Toasters@teaparty.net</a>&gt;<br> \
<span style="font-weight:bold">Subject: </span>Re: 7Mode junction-path style on \
cDOT<br> </div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Very good point....when I was doing this on the older versions of GX \
and cDOT, qtrees were non-existent.<br> <div class="gmail_extra"><br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">--tmac
<div><br>
</div>
<div><b>Tim McCarthy, </b><i style="font-size:12.8px">Principal Consultant</i></div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_quote">On Thu, Mar 17, 2016 at 9:57 AM, Sebastian Goetze <span \
dir="ltr"> &lt;<a href="mailto:spgoetze@gmail.com" \
target="_blank">spgoetze@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 <div bgcolor="#FFFFFF" text="#000000">How about, instead of creating an empty \
volume, you <b>create a QTree named &quot;vol&quot;...</b><b> </b>(in the SVM root \
volume)<b><br> </b>Then you can also easily mount with a junction path starting in \
&quot;/vol/...&quot;<span><font color="#888888"><br> <br>
Sebastian</font></span>
<div>
<div><br>
<br>
<div>On 3/17/2016 12:59 PM, tmac wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">you *could* make that happen easily.
<div><br>
</div>
<div>There is the base root volume in cDOT (/) where all junctions usually \
form.</div> <div>You would have to set the export-policy on the root volume to \
something that is writeable by a client.</div> <div>Mount the root of the cdot filer \
and create the EMPTY volume call vol. That is your place holder.</div> <div><br>
</div>
<div>Then, when &quot;mounting&quot; a junction in cdot, do something like:</div>
<div><br>
</div>
<div>vol mount -volume share_01 -junction-path /vol/share_01</div>
<div><br>
</div>
<div>and it should work. I did this in a past job with hundreds of volumes so I can \
tell you it works.</div> <div>You just need to make sure your export-policies are set \
the way you want/need and be sure to limit the root volume export-policy when you are \
done.</div> <div><br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">--tmac
<div><br>
</div>
<div><b>Tim McCarthy, </b><i style="font-size:12.8px">Principal Consultant</i></div>
<div><i style="font-size:12.8px"><br>
</i></div>
<div>
<div style="text-align:left"><br>
</div>
<div style="text-align:left"><font size="1" face="monospace,monospace"><br>
</font></div>
<div><font size="2" face="arial">  </font><font size="1"><font size="2" face="arial"> \
</font></font><font style="font-family:arial;font-size:small" size="2"><font \
style="background-color:rgb(238,238,238)" color="#ff0000">RHCE6</font>  <a \
href="https://www.redhat.com/wapps/training/certification/verify.html?certNumber=110-107-141&amp;isSearch=False&amp;verify=Verify" \
style="color:rgb(17,85,204)" target="_blank">110-107-141</a></font><font \
style="font-family:arial;font-size:small">  </font>Current  until Aug 02, 2016 </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Thu, Mar 17, 2016 at 7:05 AM, Momonth <span dir="ltr">
&lt;<a href="mailto:momonth@gmail.com" \
target="_blank">momonth@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 Hi,<br>
<br>
I wonder if it&#39;s possible to employ 7Mode mount point behavior on cDOT NFS \
SVM?<br> <br>
An example:<br>
<br>
1. I create a volume &quot;share_01&quot; and by default it shows up as<br>
&quot;toaster:/share_01&quot;.<br>
<br>
2. I&#39;d like to access it as &quot;toaset:/vol/share_01&quot;<br>
<br>
So, my question is how to add &quot;/vol/&quot; to its junction_path?<br>
<br>
Cheers,<br>
Vladimir<br>
_______________________________________________<br>
Toasters mailing list<br>
<a href="mailto:Toasters@teaparty.net" target="_blank">Toasters@teaparty.net</a><br>
<a href="http://www.teaparty.net/mailman/listinfo/toasters" rel="noreferrer" \
target="_blank">http://www.teaparty.net/mailman/listinfo/toasters</a><br> \
</blockquote> </div>
<br>
</div>
</div>
<br>
<fieldset></fieldset> <br>
<pre>_______________________________________________
Toasters mailing list
<a href="mailto:Toasters@teaparty.net" target="_blank">Toasters@teaparty.net</a><a \
href="http://www.teaparty.net/mailman/listinfo/toasters" \
target="_blank">http://www.teaparty.net/mailman/listinfo/toasters</a></pre> \
</blockquote> <br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
</div>
</div>
</div></div></span>
</div>

</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div></div></div>



_______________________________________________
Toasters mailing list
Toasters@teaparty.net
http://www.teaparty.net/mailman/listinfo/toasters


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic