Académique Documents
Professionnel Documents
Culture Documents
n each Sunday, Daily snapshots are created each day except Sunday at midnight)
snap delta volume_name (Shows delta changes between snapshots for a given volume
)
snap reserve volume_name (Shows the snap reserve for a given volume)
snap reclaimable volume_name snapshot_name (Shows the amount of space reclaimabl
e if you remove this snapshot from the volume)
options cifs.show_snapshot on (Allows snapshot directory to be browse-able via C
IFS)
options nfs.hide_snapshot off (Allows snapshot directory to be visible via NFS)
SnapMirror
options snapmirror.enable on (turns on SnapMirror. Replace on with off to toggle
)
rdfile /etc/snapmirror.allow (Performed on the Source Filer. You should see you
destination filers in this file.)
wrfile /etc/snapmirror.allow (Performed on the Source Filer. Overwrites the file
with the specified destination filer name and ip address)
vol restrict volume_name (Performed on the Destination. Makes the destination vo
lume read only which must be done for volume based replication. Dont use for Qtre
e based replication)
snapmirror initialize -S srcfiler:source_volume dstfiler:destination_volume (Per
formed on the destination. This is for full volume mirror. For example snapmirro
r initialize -S filer1:vol1 filer2:vol2)
snapmirror initialize -S srcfiler:/vol/vol1/qtree dstfiler:/vol/vol1/qtree (Perf
ormed on the destination. Performs the same as the command above but for Qtrees o
nly)
snapmirror initialize -S srcfiler/vol/vol1/- dstfiler:/vol/vol1/qtree (Performed
on the destination. Performs volume to qtree replication. Includes all luns, ex
ports on the source volume)
snapmirror status (Shows the status of snapmirror and replicated volumes or qtre
es)
snapmirror status -l (Shows much more detail that the command above, i.e. snapsh
ot name, bytes transferred, progress, etc)
snapmirror quiesce volume_name (Performed on Destination. Pauses the SnapMirror
Replication. If you are removing the snapmirror relationship this is the first s
tep.)
snapmirror break volume_name (Performed on Destination. Breaks or disengages the
SnapMirror Replication. If you are removing the snapmirror relationship this is
the second step followed by deleting the snapshot)
snapmirror resync volume_name (Performed on Destination. When data is out of dat
e, for example working off DR site and wanting to resync back to primary, only p
erformed when SnapMirror relationship is broken)
snapmirror update -S srcfiler:volume_name dstfiler:volume_name (Performed on Des
tination. Forces a new snapshot on the source and performs a replication, only i
f an initial replication baseline has been already done)
snapmirror release volume_name dstfiler:volume_name (Performed on Destination. R
emoves a snapmirror destination)
/etc/snapmirror.conf (edit or wrfile this file on the destination filer or vfile
r to enter in a snapmirror schedule. i.e. srcfiler:vol1 dstfiler:vol1 15 * * * T
his will replicate every 15 minutes. Each * represents a value. Starting from ri
ght to left you have day of week, month, day of month, hour minute. Minute 0-59,
hours 0-23, day-of-month 1-31, day-of-week 0 for Sunday 6 Saturday) Each value
can only be a number.)
/vol/vfiler_vol/etc/snapmirror.conf (read or write this file for snapmirror conf
igurations on a vfiler. vfiler_vol being the first volume with the /etc in the v
filer)
priv set diag followed by snapmirror break -h followed by priv set. (If for some rea
on you snapmirror relationship has been orphaned, meaning it doesnt exist in snap
mirror status on the source but does exist on the destination, you can use these
three commands to force the destination to become read/write. You can then do sn
ap list and find the baseline snapshot for the destination. Followed by snap dele
te of the baseline snapshot. This will remove the snapmirror relationship if all
else fails. Lastly dont forget to remove the entry from snapmirror.conf)
Cluster
cf enable (enable cluster)
cf disable (disable cluster)
cf takeover (take over resources from other controller)
cf giveback (give back controller resources after a take over)
vFiler Multistore
vfiler limit (Performed on the host to see what the limit of vfilers is)
vfiler limit 16 (Performed on the host to change the limit of vfilers to 16 or a
ny number you specify. Check the documentation for Memory Requirements before do
ing this)
vfiler status (Displays the status of the vfiler i.e. running or stopped)
vfiler status -r (On the host system. Shows which volumes are running on each vf
iler)
vfiler rename old_vfiler_name new_vfiler_name (Renames a vfiler)
vfiler run vfiler_name setup (Runs the vfiler setup wizard)
vfiler run vfiler_name cifs setup (Runs the cifs setup wizard for a vfiler)
ipspace create ipspacename (Creates an ipspace needed when 2 or more vfilers use
the same network subnets)
ipspace list (Lists the available ipspaces)
ipspace assign ipspacename interface_name (Assigns the interface to an ipspace.)
ipspace destroy ipspace_name (Removes/Deletes an ipspace)
vfiler create vfiler_name -s ipspace_name -i x.x.x.x /vol/volume_name or qtree_n
ame (Creates a vfiler name with ip address x.x.x.x and assigns the volume or qtr
ee to the vfiler. The -s is optional)NOTE: Creating a qtree as the base vfiler d
oes not allow you to enable snapmirror. You must create the base as a volume!
vfiler add vfiler_name -i x.x.x.x /vol/volume_name (Adds an ip address and addit
ional volume (can be qtree) to an existing vfiler name)
vfiler remove vfiler_name -i x.x.x.x /vol/volume_name (Removes an IP address and
volume from an existing vfiler)
vfiler destroy vfiler_name (Deletes/removes a vfiler)
vfiler rename vfiler_name_old vfiler_name_new (Renames a vfiler from old name to
new name)
vfiler context vfiler_name (Changes CLI into the context of the vfiler name)
vfiler allow vfiler_name proto=cifs proto=nfs proto=iscsi (Allows the following
protocols cifs, nfs and iscsi. Disallows rsh, ssh, ftp and http)
vfiler stop vfiler_name (Stops a vfiler instance)
vfiler start vfiler_name (Starts a vfiler instance)
vfiler run vfiler_name route add default x.x.x.x 1 (Adds a default route to a vf
iler. Performed from vfiler0)
route add x.x.x.x/x x.x.x.x 1 (Adds a route in a vfiler)
To add extra vlans to a vfiler you must do the following:
Check the ip space that the vfiler is using by typing ipspace list
Create the vlan interface on the host i.e. vif0-360 for vlan 360
Assign the interface to the ip space of the vfiler i.e. ipspace assign ipspace_n
ame vif0-360
Add the ip address you wish to use on the vlan interface to the vfiler i.e. vfil
er add vfiler_name -i 192.168.1.1
Once the vfiler has this ip address in its config we can add it onto the interfac
e i.e. ifconfig vif0-360 192.168.1.1 netmask 255.255.255.0
Autosupport
options autosupport.support.enable on (Turns Autosupport on)
options autosupport.support.enable off (Turns Autosupport off)
autosupport.doit description (creates an autosupport alert with a user defined des
cription)
Hot Spares
Any functioning disk that is not assigned to an aggregate but is assigned to a c
ontroller functions as a hot spare disk
disk show
vol status -r (displays which disks are allocated as spare)
Disks
disk show (Show disk information)
disk show -n (Show unowned disks)
disk assign 0d.02.0 -s unowned (Changes ownership from owned to unowned or to ot
her cluster member)
disk assign 0d.02.0 (assigns the disk to the controller you perform the command
on)
options disk.auto_assign off (turns auto assign of unowned disks to controllers
to off)
options disk.auto_assign on (turns auto assign of unowned disks to controllers t
o on)
storage show disk -p (displays primary, secondary port, shelf and bay in a metro
cluster)
Luns
lun setup (runs the cli lun setup wizard)
lun create -s 10g -t windows_2008 -o noreserve /vol/vol1/lun1 (creates a lun of
10GB with type Windows 2008, sets no reservation and places it in the following
volume or qtree)
lun offline lun_path (takes a lun offline)
lun online lun_path (brings a lun online)
lun show -v (Verbose listing of luns)
lun move /lun_path_source /lun_path_destination (Move lun from source to destina
tion)
lun resize -f lun_path +|- new_size k|m|g|t (Resizes a lun by adding space (+) o
r subtracting space (-) Note: a lun can only ever grow 10x its original size)
lun map /vol/vol1/lun1 igroup_name (Maps lun1 to the igroup_name)
lun alignment show (MUST BE DONE IN PRIV SET DIAG MODE. Shows which luns are ali
gned and which are not)
Fiber FCP
fcadmin config -t taget 0a (Changes adapter from initiator to target)
fcadmin config (lists adapter state)
fcadmin start (Start the FCP service)
fcadmin stop (Stop the FCP service)
fcp show adapters (Displays adapter type, status, FC Nodename, FC Portname and s
lot number)
fcp nodename (Displays fiber channel nodename)
fcp show initiators (Show fiber channel initiators)
fcp wwpn-alias set alias_name (Set a fiber channel alias name for the controller
)
fcp wwpn-alias remove -a alias_name (Remove a fiber channel alias name for the c
ontroller)
igroup show (Displays initiator groups with WWNs)
iSCSI
iscsi
iscsi
iscsi
iscsi
iscsi
iscsi
SIS (Deduplication)
sis status (Show SIS status)
sis config (Show SIS config)
sis on /vol/vol1 (Turn on deduplication on vol1)
sis config -s mon-fri@23 /vol/vol1 (Configure deduplication to run every monday
Friday at 11pm on vol1)
sis start -s /vol/vol1 (Run deduplication manually on vol1)
sis status -l /vol/vol1 (Display deduplication status on vol1)
df -s vol1 (View space savings with deduplication)
sis stop /vol/vol1 (Stop deduplication on vol1)
sis off /vol/vol1 (Disables deduplication on vol1)
User Accounts
useradmin user add user_name -g group_name (Adds a user to a group)
useradmin user list (Lists current users)
useradmin user list user_name (List specific user information)
useradmin group list (Lists current groups)
useradmin group delete group_name (Deletes a specific group name)
useradmin group modify group_name -g new_group_name (Modify group name)
useradmin user delete user_name (Delete a specific user)
useradmin user modify user_name -g group_name (Adds a user to a group)
useradmin domain user add user_name -g group_name (Adds a Windows Domain user to
a local group)
useradmin domain user list -g group_name (List Windows Domain users in a specifi
c group)
DNS
dns flush (Flushes the DNS cache)
/etc/resolv.conf (edit this file to change your dns servers)
NDMPD
ndmpd status (check status)
ndmpd on|off (turns ndmpd on or off)
ndmpd version (displays version information)
ndmpd version 4 (set ndmpd version to 4)
options ndmpd (Display ndmpd options)
Reading and Writing Files (Deduplication)
rdfile path/file (Reads a file)
wrfile path/file (Writes to a file. Warning this method overwrites the file. Mak
e sure you copy out original contents if you wish to keep it. If you havent used
this before try on the simulator.)
wrfile -a path/file (Writes to a file by appending the changes)
Logging
/etc/messages (All logging is for the system is stored here)
VIF
vif status (Displays the status of VIF interfaces)
vif create lacp vif0 ip e0a,e0b,e0c,e0d (Create a vif interface named VIF0 using
lacp and a load balancing method of IP, bundled with interface e0a, e0b, e0c, e
0d)
vif add vif0 e0a (Adds a down interface into an existing VIF)
vif destroy vif0 (deletes a VIF interface)
Network
vlan create vif0 10 (create a vlan on interface vif0. The interface will be vifo
-10)
vlan delete vif0 10 (deletes the vlan interface vif0-10)
ifconfig vif0-10 x.x.x.x netmask x.x.x.x partner vif0-10 (Sets IP information on