Créer un vFiler avec options

De wiki.nexiat.fr
Aller à la navigation Aller à la recherche
Fiche express
Domaine Procédure vFiler
Contexte NetApp ONTAP 7-mode, licence MultiStore
Voir aussi Vfiler · Ajouter un volume à un vFiler

Procédure de création d'un vFiler avec un volume associé, incluant les options de déduplication, snapshot, SnapMirror et SnapVault.

Prérequis

license add <multistore_code>

La création d'un ipspace dédié n'est pas obligatoire :

ifconfig e0 0.0.0.0
ifconfig e0 down

ipspace create vfiler1-ipspace
ipspace assign vfiler1-ipspace e0

Création d'un nouveau vFiler

Identifier au préalable : l'ipspace utilisé, le nom du vfiler, l'IP à utiliser.

Vérification de l'ipspace

Par défaut, il n'y a pas d'ipspace à créer — on utilise l'ipspace par défaut du système :

ipspace list

Création du volume root du vFiler

La taille est toujours de 50 Mo :

vol create /vol/VFILER_NAME_root aggr0 50M

Création du vFiler

vfiler create VFILER_NAME -s default-ipspace -i [IP_CHOISIE] /vol/VFILER_NAME_root

La commande pose différentes questions lors de son exécution :

Please enter the name or IP address of the administration host: [ENTER]
Do you want to run DNS resolver? [n]: y
Please enter DNS domain name []: corp.exemple.tld
You may enter up to 3 nameservers
Please enter the IP address for first nameserver []: 10.0.x.x
Do you want another nameserver? [n]: y
Please enter the IP address for alternate nameserver []: 10.2.x.x
Do you want another nameserver? [n]:
Do you want to run NIS client? [n]:
Default password for root on vfiler VFILER_NAME is "".
New password:
Retype new password:
Do you want to setup CIFS? [y]: n

Options

vfiler run VFILER options nfs.v2.enable off
vfiler run VFILER options nfs.udp.enable off

# activer si le vfiler héberge des datastores VMware
vfiler run VFILER options nfs.vstorage.enable on

En cas d'interface réseau dédiée, il peut être nécessaire de placer une route — ne pas oublier de reporter ces commandes dans /etc/rc :

ifconfig e0 10.41.x.x up netmask 255.255.255.0 mediatype 100tx-fd
vfiler run vfiler1 route add default 10.41.x.x
# arrêt/relance du vfiler (non nécessaire dans cette procédure)
vfiler [stop|start] vfiler_name

Création d'un nouveau volume sur le vFiler

Actions à faire sur la source

Création du volume initial

vol create <volname> -l language_code aggrname size
vol create VOL_<VOLNAME> aggr0 500g

# afficher le volume et les agrégats
df -h /vol/<VOLNAME>
df -Ah

Activation de la déduplication

sis on /vol/<VOLNAME>
sis start -s /vol/<VOLNAME>

sis config -C true /vol/<VOLNAME>

sis config -s [sched] /vol/<VOLNAME>
sis config -s 23@sun-fri /vol/<VOLNAME>

sis start /vol/<volname>

sis status /vol/<VOLNAME>
df -s /vol/<VOLNAME>

sis config

Activation des snapshots

snap list VOLNAME

snap sched [-A | -V] [<vol-name> [weeks [days [hours[@<list>]]]]]
snap sched volume weekly daily hourly

snap sched VOLNAME 0 0 7@13

snap sched VFILER_root 0 2 6@8,12,16,20
snap sched VFILER_root 0 7 4@8,12,16,20

snap sched VFILER_root 0 0 7@16
snap reserve VOLNAME
snap reserve VOLNAME 20

Ajout du volume dans le vFiler

vfiler status
vfiler status -r

vfiler add vfiler_name /vol/<VOLNAME>

Actions à faire sur la destination

Vérification sur la source

# vérifier que l'accès est à ALL (*)
vfiler run VFILER_NAME options snapvault.access
# vérifier que le service est actif
vfiler run VFILER_NAME options snapvault.enable

Création de tous les volumes présents dans le vFiler source

Créer les volumes avec le même nom, taille légèrement supérieure (pas en mode restrict) :

vol create <volname> -l language_code aggrname size
vol create VOL_TEST -l en aggr0 505g

Initialisation / configuration du vFiler pour le mode DR

Toujours sur la destination — initie la synchronisation SnapMirror et sa configuration, met en place la relation vfiler / vfiler DR :

vfiler dr configure -l root:password [vfiler]@[ctrl]

En cas de refus d'accès :

VFILER: Connection refused
: Undefined error: 0
vfiler dr configure -c secure -l root:password [vfiler]@[ctrl]
Configuring SnapMirror to mirror vfiler VFILER_'s storage units from remote filer.
Upon Activation, configure vfiler IP address 10.0.x.x? [y]: y
Interface to assign this address to {c0a, c0b, e0M, ...}: VIF-20GB
Netmask to use: [255.255.255.0]:
Starting snapmirror initialize commands. It could take a very long time when
the source or destination filers are involved in many simultaneous transfers.
The console will not be available until all initialize commands are started
successfully. Please use the "snapmirror status" command on the source filer
to monitor the progress.

Volume 'VFILER_NAME_root' is now restricted.
Upon activation, do you want the DR vfiler to use a different set of DNS
servers from the production vfiler? [n]: y
You may enter up to 3 nameservers
Please enter the IP address for first nameserver []: 10.0.x.x
Do you want another nameserver? [n]:
SnapMirror transfer initiated for vfiler storage units.

Création des autorisations NFS / CIFS

Pour créer les autorisations NFS et CIFS, se reporter aux procédures dédiées :

Voir aussi