Beruflich Dokumente
Kultur Dokumente
NetApp – Create a new volume on vFiler
(7mode)
Search …
MAY 21, 2015 BY DEREK.HENNESSY
RECENT POSTS
I had to create a new volume on a vfiler recently. This is a fairly straight
Cisco Data Center
forward tasks for long term NetApp admins but I thought I’d write up the
User Group Melbourne
process for the next time that I forget. In this example the vfiler already exists
First Meetup
and has been exported on a different subnet than the root vfiler, vfiler0. If
Cisco Data Centre
you’re new to vfilers then you’ll immediately notice that once you change the
User Group –
vfiler context to the vfiler you want to add a volume to that you don’t have the
Melbourne
option to create a new volume. The new volume needs to be created at the
vMotion to vNotions
root vfiler level and then assigned to the vfiler you wish. In this example I am
create a new ISO datastore on a vfiler context so that one of our tenants can Cisco Live Session
have their own ISO datastore. We could present out the ISO datastore from Review
vfiler0 but that would break the security model we worked hard to put in place. Cisco Live Recap
The first thing to do is change the vfiler context and then run the vol
ARCHIVES
command. You will see from this that it’s not possible to create the volume
directly on the vfiler. June 2016
May 2016
https://www.vnotions.com/2015/05/21/netappcreateanewvolumeonvfiler/ 1/9
7/21/2016 NetApp Create a new volume on vFiler (7mode) | vNotions
March 2016
vfiler context <tenantvfiler>
February 2016
tenantvfiler@NTAPcontroller> vol
November 2015
The following commands are available; for more information
type "vol help "
October 2015
offline options restrict status
September 2015
online
tenantvfiler@NTAPcontroller> vol create iso01 aggr1 200g
June 2015
vol: No such command "create".
May 2015
The following commands are available; for more information
type "vol help " April 2015
offline options restrict status
March 2015
online
February 2015
January 2015
December 2014
So go back to the parent vfiler, vfiler0, and then create the new volume. From
there you can add it to the tenantvfiler. Before transferring the volume to the November 2014
tenantvfiler I have also changed the options to make the volume thin July 2014
provisioned using the “guarantee none” setting and also set fractional_reserve
March 2014
to 0. The commands used to create the new volume, modify the settings and
June 2013
add it to the tenantvfiler were:
February 2013
tenantvfiler@NTAPcontroller> vfiler context vfiler0
TWITTER
NTAPcontroller> vol create iso01 s volume aggr1 200g
NTAPcontroller> vol options iso01 guarantee none Tweets by
NTAPcontroller> vol options iso01 fractional_reserve 0 @derekhennessy
NTAPcontroller> vol status iso01
Derek Hennessy
Volume State Status Options Retweeted
iso01 online raid_dp, flex create_ucode=on, convert_ucode=on,
Dave Lowry
mirrored guarantee=none, fractional_reserve=0
@LLdavedave
64bit Excited to see @wonder
featured on the @AppStore
Volume UUID: 0df82cecfdb811e4a27a123478563412
today
Containing aggregate: 'aggr1'
NTAPcontroller> vfiler add tenantvfiler /vol/iso01
WARNING: reassigning storage to another vfiler does not change the security in
Tue May 19 09:47:47 EST [NTAPcontroller:cmds.vfiler.path.move:notice]: Path /v
14
Derek Hennessy
Tue May 19 09:47:47 EST [NTAPcontroller:export.auto.update.disabled:warning]:
Retweeted
NTAPcontroller>
Lifehacker
@lifehacker
Wonder introduces you to
great new music and new
<Update> releases, all curated by
music lovers:
lifehac.kr/m5iCmHo
Another way to provision the volume is to perform the volume creation inline
and enable VAAI also. Thanks to Sebastian Goetze for pointing this out.
NTAPcontroller> vol create iso01 s none aggr1 200g
12 Jul
Derek Hennessy
NTAPcontroller> vfiler run tenantvfiler options nfs.vstorage.enable on Retweeted
Anna Fawcus
@AnnaFawcus
</Update>
I recently received issue 14
of @blowphotomag
The next thing from a vfiler perspective is to ensure that the volume is online. magazine, a self portrait
Change the vfiler context to the tenant the then check on the volume status. issue which includes my…
instagram.com/p/BHm2FLgB
pzZ/
NTAPcontroller> vfiler context tenantvfiler 08 Jul
tenantvfiler@NTAPcontroller> vol status
Derek Hennessy
Volume State Status Options Retweeted
iso01 online raid_dp, flex create_ucode=on, convert_ucode=on,
Rick Vanover
@RickVanover
mirrored guarantee=none, fractional_reserve=0
64bit Awesome! RT
@alexiskleinman: THIS IS
HOW CARROTS GET
HARVESTED I’M FREAKING
OUT
The last thing you need to do from a storage perspective is to ensure the
volume is presented to the correct network range with rw access, otherwise
you’ll be able to mount the volume but not use write to it. Then it’s off to
vCenter to make sure you can add the new volume. The set to edit the exports
file for the vfiler involves going to the root vfiler and entering the advanced
08 Jul
mode. Then you’ll need to read the /etc/exports from the vfiler, copy to
notepad and add the address range for access, write a new /etc/exports for Derek Hennessy
@derekhennessy
@sergecharles Thanks for
presenting tonight Serge,
https://www.vnotions.com/2015/05/21/netappcreateanewvolumeonvfiler/ 3/9
7/21/2016 NetApp Create a new volume on vFiler (7mode) | vNotions
the vfiler and lastly you’ll need to push the update out after the write has taken
place. SITE PAGES
About
NTAPcontroller> priv set advanced
Warning: These advanced commands are potentially dangerous; use
them only when directed to do so by NetApp
personnel.
NTAPcontroller*> rdfile /vol/tenantvfiler/etc/exports
/vol/nfs01 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs02 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs03 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs04 sec=sys,rw=192.168.1.0/24,anon=0
/vol/iso01 sec=sys,rw=
NTAPcontroller*> wrfile /vol/tenantvfiler/etc/exports
/vol/nfs01 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs02 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs03 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs04 sec=sys,rw=192.168.1.0/24,anon=0
/vol/iso01 sec=sys,rw=192.168.1.0/24,anon=0
read: error reading standard input: Interrupted system call
NTAPcontroller*> rdfile /vol/tenantvfiler/etc/exports
/vol/nfs01 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs02 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs03 sec=sys,rw=192.168.1.0/24,anon=0
/vol/nfs04 sec=sys,rw=192.168.1.0/24,anon=0
/vol/iso01 sec=sys,rw=192.168.1.0/24,anon=0
NTAPcontroller*>
NTAPcontroller*> vfiler run tenantvfiler exportfs av
===== tenantvfiler
Export did not change for /vol/nfs01
reexported /vol/nfs01
Export did not change for /vol/nfs02
reexported /vol/nfs02
Export did not change for /vol/nfs03
reexported /vol/nfs03
Export did not change for /vol/nfs04
reexported /vol/nfs04
unexported /vol/iso01
https://www.vnotions.com/2015/05/21/netappcreateanewvolumeonvfiler/ 4/9
7/21/2016 NetApp Create a new volume on vFiler (7mode) | vNotions
reexported /vol/iso01
NTAPcontroller*> priv set
Next go to vCenter and select the ESX host you want to mount the ISO to.
Select he Configuration tab, and then select Storage. Lastly click Add Storage.
Select Network File System and click Next.
Enter the vfiler IP/hostname, enter the volume name you just created and
enter a datastore name for the new volume. Click Next.
https://www.vnotions.com/2015/05/21/netappcreateanewvolumeonvfiler/ 5/9
7/21/2016 NetApp Create a new volume on vFiler (7mode) | vNotions
Check the summary and click Finish
The new volume will be mounted as an NFS datastore from the tenantvfiler.
https://www.vnotions.com/2015/05/21/netappcreateanewvolumeonvfiler/ 6/9
7/21/2016 NetApp Create a new volume on vFiler (7mode) | vNotions
One thing to check before closing out the volume creation is to check the
settings from your backup solution to ensure that the ISO datastore is backed
up or not depending on your requirements. In my instance I’ve ensured the
ISO folder wasn’t being backed up as it mainly contains VM templates and
ISOs stored elsewhere and SnapProtect struggles to back up VM templates.
Share this:
Related
THIS ENTRY WAS POSTED IN NETAPP AND TAGGED FILE SHARE, NETAPP, NFS
DATASTORE, TENANT, VFILER, VOLUME. BOOKMARK THE PERMALINK.
← UCS CENTRAL UPGRADE VERSION 1.3 & LEAP SECOND YEAR – IMPACT ON CISCO
OVERVIEW EQUIPMENT →
3 thoughts on “NetApp – Create a new volume on vFiler (7mode)”
Sebastian P. Goetze says:
June 4, 2015 at 7:18 pm
Just a tiny suggestion: You create the volume explicitly with volume space
guarantee and in the next line change it to ‘none’.
Instead just do
NTAPcontroller> vol create iso01 s none aggr1 200g
And don’t forget to enable VAAI if you haven’t done so yet:
NTAPcontroller> vfiler run tenantvfiler options nfs.vstorage.enable on
https://www.vnotions.com/2015/05/21/netappcreateanewvolumeonvfiler/ 7/9
7/21/2016 NetApp Create a new volume on vFiler (7mode) | vNotions
Sebastian
NCI (NetApp Certified Instructor)
Reply
Virtual Notions says:
June 9, 2015 at 3:06 pm
Thanks very much for pointing that out Sebastian. I’ve updated the post to show
this other method. I appreciate the feedback, I’m still getting to grips with 7mode.
Reply
Pingback: NetApp – Create a new volume on vFiler (7mode) « Virtual Notions |
drewreeves
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
https://www.vnotions.com/2015/05/21/netappcreateanewvolumeonvfiler/ 8/9
7/21/2016 NetApp Create a new volume on vFiler (7mode) | vNotions
Post Comment
Notify me of followup comments by email.
Notify me of new posts by email.
Powered by Virtual Notions Media
https://www.vnotions.com/2015/05/21/netappcreateanewvolumeonvfiler/ 9/9