7 to C Migration Methods for SnapMirrored 7-Mode Volumes: Part 2/7


Part 2) Setting up two 7-Mode Systems

Starting from standard NetApp 8.1.2 7-Mode simulators which we upgrade to 8.1.2P4...

NAFAS1: Pre-Setup

On first boot, press any key except enter to access the boot loader (VLOADER>)

setenv SYS_SERIAL_NUM 1000000101
setenv bootarg.nvram.sysid 1000000100
setenv bootarg.vm.no_poweroff_on_halt false
boot_ontap

Press CTRL+C to get the Boot Menu

Option (4) ‘Clean configuration and initialize all disks’
Y to ‘Zero disks ...’ and Y to ‘...are you sure’

NAFAS2: Pre-Setup

On first boot, press any key except enter to access the boot loader (VLOADER>)

setenv SYS_SERIAL_NUM 1000000201
setenv bootarg.nvram.sysid 1000000100
setenv bootarg.vm.no_poweroff_on_halt false
boot_ontap

Press CTRL+C to get the Boot Menu

Option (4) ‘Clean configuration and initialize all disks’
Y to ‘Zero disks ...’ and Y to ‘...are you sure’

NAFAS1: Setup

Here I only configure:

Hostname = NAFAS1
e0a = 10.10.10.101 with mask 255.255.255.0
Gateway = 10.10.10.1
Timezone = Europe/London
DNS domain = lab.priv
Nameserver = 10.10.10.10

reboot

NAFAS2: Setup

Here I only configure:

Hostname = NAFAS2
e0a = 10.10.10.201 with mask 255.255.255.0
Gateway = 10.10.10.1
Timezone = Europe/London
DNS domain = lab.priv
Nameserver = 10.10.10.10

reboot

NAFAS1&2: Configuration over SSH (logged in as root)

options autosupport.enable off
disk assign all
aggr add aggr0 4
aggr create aggr1 -r 21 21
y
options disk.maint_center.spares_check off
snap sched -A aggr0 0 0 0
snap sched -A aggr1 0 0 0
snap delete -A -a aggr0
y
snap delete -A -a aggr1
y
vol size vol0 3375m
snap sched vol0 0 1 2

software get http://10.10.10.1/812P4_q_image.tgz
software update 812P4_q_image.tgz
reboot

(Licenses have been XXXXXXX’d out!)

license add XXXXXXX # cifs                            
license add XXXXXXX # flex_clone                      
license add XXXXXXX # nfs                                    
license add XXXXXXX # snapmirror                      
license add XXXXXXX # snaprestore                     
license add XXXXXXX # sv_ontap_pri             
license add XXXXXXX # sv_ontap_sec
                                               
options licensed_feature.multistore.enable on
options security.passwd.rules.history 0

NAFAS1: /etc/hosts and /etc/rc configuration for e0b

wrfile -a /etc/hosts 10.10.10.102 NAFAS1-e0b
wrfile -a /etc/rc ifconfig e0b `hostname`-e0b mediatype auto flowcontrol full netmask 255.255.255.0 mtusize 1500
source /etc/rc

NAFAS2: /etc/hosts and /etc/rc configuration for e0b

wrfile -a /etc/hosts 10.10.10.202 NAFAS2-e0b
wrfile -a /etc/rc ifconfig e0b `hostname`-e0b mediatype auto flowcontrol full netmask 255.255.255.0 mtusize 1500
source /etc/rc

DNS: Things to configure on your DNS Server

Create DNS A record (and PTR): NAFAS1 to 10.10.10.101
Create DNS A record (and PTR): NANAS1 to 10.10.10.102
Create DNS A record (and PTR): NAFAS2 to 10.10.10.201
Create DNS A record (and PTR): NANAS2 to 10.10.10.202
Create DNS CNAME: FS1 to NANAS1

NAFAS1: Run the command “cifs setup”

No WINS
Multiprotocol filer
CIFS server name = NANAS1
Active Directory authentication
Configure time (to PDC)
Create machine account in CN=computers
Create NANAS1\administrator
...user or group ... administer CIFS? N

NAFAS2: Run the command “cifs setup”

No WINS
Multiprotocol filer
CIFS server name = NANAS2
Active Directory authentication
Configure time (to PDC)
Create machine account in CN=computers
Create NANAS2\administrator
...user or group ... administer CIFS? N

NAFAS1&2: Creating Volumes and Shares

vol create vol1 -s none aggr1 2g
vol create vol2 -s none aggr1 2g
vol create vol3 -s none aggr1 2g
cifs shares -add share1 /vol/vol1
cifs shares -add share2 /vol/vol2
cifs shares -add share3 /vol/vol3

NAFAS1: Setting snap schedules

snap sched vol1 0 0 7
snap sched vol2 0 0 7
snap sched vol3 0 0 7

NAFAS1: SnapMirror Work

options snapmirror.access host=NAFAS2

NAFAS2: Snapmirror Work

vol restrict vol1
vol restrict vol2
vol restrict vol3
wrfile -a /etc/snapmirror.conf NAFAS1:vol1 NAFAS2:vol1 - 0,15,30,45 * * *
wrfile -a /etc/snapmirror.conf NAFAS1:vol2 NAFAS2:vol2 - 0,15,30,45 * * *
wrfile -a /etc/snapmirror.conf NAFAS1:vol3 NAFAS2:vol3 - 0,15,30,45 * * *
snapmirror initialize NAFAS2:vol1
snapmirror initialize NAFAS2:vol2
snapmirror initialize NAFAS2:vol3

Accessing Production Shares

From our admin server MSADM1, run the following commands to connect up all our shares, and we'll populate them with some random data:

net use U: \\FS1\share1 /persistent:yes
net use V: \\FS1\share2 /persistent:yes
net use W: \\FS1\share3 /persistent:yes

Comments