Popular Posts
-
To rename qtree in NetApp filers, we can follow below procedure. 1st make sure your volumes is in R/W state. If volume is snapmirrored ...
-
Usually for a new Filers we will be testing CF\VIF takeover test before getting that BOX to Production...now here let's see procedure. ...
Friday, November 22, 2013
EMC TimeFinder Clone (Symclone)
1. Creating a new session.
#symclone -f <devices file> create -copy/-precopy -sid <symm id> -nop
If you use -copy copying blocks from source to target LUNS gets copied in the background as soon as activate them. If you use –precopy, copy will start immediately and won’t wait for activate to be run. Note : This will be full copy from source to target
2. Activating a previously created session.
#symclone -f <devices file> activate -sid <symm id> -consistent -nop
As soon as session is activated block level copy starts if session is created with -copy option.
3. Query the session to find out how is copy going on. You would see status as “copy in progress” or “Copied”.
#symclone -f <devices file> query -sid <symm id> –nop
4. If copying is complete and you want to create a new session. before to that you’ve to Terminate the existing session.
#symclone -f <devices file> terminate -sid <symm id> –nop
All the above steps does are full copy from source LUN to target LUN. If you don’t want to do full copy & copy the only changed tracks. symclone has that options too.
Differential Copy :
1.Create a first session with -diff option
#symclone –f <devices file> create -copy/-precopy –diff –sid <symm id> –nop
Note : This session will be full copy too. only thing is subsequent copies can be created with recreate option & they’ll be just differential and fast.
2. Activate the session.
#symclone -f <devices file> activate -sid <symm id> -consistent -nop
3. for subsequent point in time clone creations. you don’t(shouldn’t) need to terminate the session. instead Recreate the same session using below and activate them using activate.
#symclone -f <devices file> recreate -sid <symm id> –nop
4. Activate it for start copying blocks. This should be fast.
#symclone -f <devices file> activate -sid <symm id> -consistent -nop
Restoring or Reverse Cloning :
Incase if something happens to source LUNS. if you want to restore from target. you could do using following commands. you don’t have to flip the devices. you could use same device file.
#symclone -f <devices file> restore -sid <symm id> –nop
you don’t need to activate as restore will establish in opposite directions and automatically activates them to. when you query you should see the status as “Restore in Progress”. once restore is complete you would see “Restored”.
If you want to normal clone from source to target again after restore is complete. you need to Split the existing reverse clone session by using below command.
#symclone -f <devices file> split -sid <symm id> –nop
Now. you could go-ahead with recreate and activate for normal clones.
Format of the device file :
# SRC-LUN TGT-LUN
1300 1500
Info took from - gdesaboyina.wordpress.com and EMC docs
Tuesday, October 22, 2013
EMC NAS Celerra/VNX commands
NAS Specific Commands:
nas_disk -list Lists the disk table
nas_checkup Runs a system health check.
nas_pool -size -all Lists available space on each defined storage pool
nas_replicate -info –all | grep <fs> Info about each filesystem’s replication status, grep to view just one.
nas_replicate -list A list of all current replications
nas_server -list Lists all datamovers. 1=primary,4=standby,6=rdf (remote data facility)
<watch> /nas/sbin/getreason Shows current status of each datamover. 5=up, 0=down or rebooting
nas_fs Creates, deletes, extends, modifies, and lists filesystems.
nas_config Control station configuration (requires root login)
nas_version View current nas revision
nas_ckpt_schedule Manage checkpoint schedule
nas_storage -list List the attached backend storage systems (with ID’s)
nas_storage -failback id=<x> Fail back failed over SP’s or disks
nas_server -vdm <vdm_name> -setstate loaded Loads a VDM
nas_server -vdm <vdm_name> -setstate mounted Unloads a VDM
nas_checkup Runs a system health check.
nas_pool -size -all Lists available space on each defined storage pool
nas_replicate -info –all | grep <fs> Info about each filesystem’s replication status, grep to view just one.
nas_replicate -list A list of all current replications
nas_server -list Lists all datamovers. 1=primary,4=standby,6=rdf (remote data facility)
<watch> /nas/sbin/getreason Shows current status of each datamover. 5=up, 0=down or rebooting
nas_fs Creates, deletes, extends, modifies, and lists filesystems.
nas_config Control station configuration (requires root login)
nas_version View current nas revision
nas_ckpt_schedule Manage checkpoint schedule
nas_storage -list List the attached backend storage systems (with ID’s)
nas_storage -failback id=<x> Fail back failed over SP’s or disks
nas_server -vdm <vdm_name> -setstate loaded Loads a VDM
nas_server -vdm <vdm_name> -setstate mounted Unloads a VDM
Several nas_<x> commands can be run with a database query for reporting purposes.
Server specific commands:
Server specific commands:
server_cpu server_<x> -r now Reboots a datamover
server_ping <IP> ping any IP from the control station
server_ifconfig server_2 –all View all configured interfaces
server_route server_2 {-list,flush,add,delete} Routing table commands
server_mount Mount a filesystem
server_export Export a filesystem
server_stats Provides realtime stats for a datamover, many different options.
server_sysconfig Modifies hardware config of the data movers.
server_devconfig Configures devices on the data movers.
server_sysstat Shows current Memory, CPU, and thread utilization
server_log server_2 Shows current log
vi /nas/jserver/logs/system_log Java System log
vi /var/log/messages System Messages
server_ifconfig server_2 <interface_name> up Bring up a specific interface
server_ifconfig server_2 <interface_name> down Take a specific interface down
server_date Sets system time and NTP server settings
server_date <server_X> timesvc start ntp <time_server_IP_address> Starts NTP on a data mover
server_date <server_X> timesvc stats ntp To view the status of NTP.
server_date <server_X> timesvc update ntp Forces an update of NTP
server_file FTP equivalent command
server_dns Configure DNS
server_cifssupport Support services for CIFS users
server_ping <IP> ping any IP from the control station
server_ifconfig server_2 –all View all configured interfaces
server_route server_2 {-list,flush,add,delete} Routing table commands
server_mount Mount a filesystem
server_export Export a filesystem
server_stats Provides realtime stats for a datamover, many different options.
server_sysconfig Modifies hardware config of the data movers.
server_devconfig Configures devices on the data movers.
server_sysstat Shows current Memory, CPU, and thread utilization
server_log server_2 Shows current log
vi /nas/jserver/logs/system_log Java System log
vi /var/log/messages System Messages
server_ifconfig server_2 <interface_name> up Bring up a specific interface
server_ifconfig server_2 <interface_name> down Take a specific interface down
server_date Sets system time and NTP server settings
server_date <server_X> timesvc start ntp <time_server_IP_address> Starts NTP on a data mover
server_date <server_X> timesvc stats ntp To view the status of NTP.
server_date <server_X> timesvc update ntp Forces an update of NTP
server_file FTP equivalent command
server_dns Configure DNS
server_cifssupport Support services for CIFS users
To create a single checkpoint:
nas_ckpt_schedule -create <ckpt_fs_name> -filesystem <fs_name> -recurrence once
nas_ckpt_schedule -create <ckpt_fs_name> -filesystem <fs_name> -recurrence once
To create a Read/Write copy of a single checkpoint:
fs_ckpt <ckpt_fs_name> -name <r/w_ckpt_fs_name> -Create -readonly n
fs_ckpt <ckpt_fs_name> -name <r/w_ckpt_fs_name> -Create -readonly n
To export a Read/Write checkpoint copy to a CIFS Share:
server_export [vdm] -P cifs -name [filesystem]_ckpt1 -option netbios=[cifserver] [filesystem]_ckpt1_writeable1
server_export [vdm] -P cifs -name [filesystem]_ckpt1 -option netbios=[cifserver] [filesystem]_ckpt1_writeable1
To view HBA Statistics:
.server_config server_2 -v “printstats fcp reset” Toggles the service on/off
.server_config server_2 -v “printstats fcp full” View the stats table (must wait a while for some stats to collect before viewing)
.server_config server_2 -v “printstats fcp reset” Toggles the service on/off
.server_config server_2 -v “printstats fcp full” View the stats table (must wait a while for some stats to collect before viewing)
To Join/Unjoin a CIFS Server from the domain:
server_cifs server_2 -Join compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID
server_cifs server_2 -Unjoin compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID
server_cifs server_2 -Join compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID
server_cifs server_2 -Unjoin compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID
To view the current domain controllers visible on the data mover:
.server_config server_2 -v “pdc dump”
.server_config server_2 -v “pdc dump”
To enable or disable a domain controller on the data mover:
.server_config server_2 -v “pdc enable=<ip_address>” Enable a domain controller
.server_config server_2 -v “pdc disable=<ip_address>” Disable a domain controller
.server_config server_2 -v “pdc enable=<ip_address>” Enable a domain controller
.server_config server_2 -v “pdc disable=<ip_address>” Disable a domain controller
To stop and start the CIFS service:
server_setup server_2 -P cifs -o stop Stop CIFS Service
server_setup server_2 -P cifs -o start Start CIFS Service
server_setup server_2 -P cifs -o stop Stop CIFS Service
server_setup server_2 -P cifs -o start Start CIFS Service
To stop, start or check the status of the iSCSI service:
server_iscsi server_2 -service -start Start iSCSI service
server_iscsi server_2 -service -stop Stop iSCSI service
server_iscsi server_2 -service -status Check the status of the iSCSI service
server_iscsi server_2 -service -start Start iSCSI service
server_iscsi server_2 -service -stop Stop iSCSI service
server_iscsi server_2 -service -status Check the status of the iSCSI service
To enable/disable NDMP Logging:
Turn it on:
.server_config server_x “logsys set severity NDMP=LOG_DBG2″
.server_config server_x “logsys set severity PAX=LOG_DBG2″
Turn it off:
.server_config server_x “logsys set severity NDMP=LOG_ERR”
.server_config server_x “logsys set severity PAX=LOG_ERR”
Turn it on:
.server_config server_x “logsys set severity NDMP=LOG_DBG2″
.server_config server_x “logsys set severity PAX=LOG_DBG2″
Turn it off:
.server_config server_x “logsys set severity NDMP=LOG_ERR”
.server_config server_x “logsys set severity PAX=LOG_ERR”
For gathering performance statistics:
server_netstat server_x -i Interface statistics
server_sysconfig server_x -v Lists virtual devices
server_sysconfig server_x -v -i vdevice_name Informational stats on the virtual device
server_netstat server_x -s -a tcp Retransmissions
server_nfsstat server_x NFS SRTs
server_nfsstat server_x -zero Reset NFS stats
server_netstat server_x -i Interface statistics
server_sysconfig server_x -v Lists virtual devices
server_sysconfig server_x -v -i vdevice_name Informational stats on the virtual device
server_netstat server_x -s -a tcp Retransmissions
server_nfsstat server_x NFS SRTs
server_nfsstat server_x -zero Reset NFS stats
Filesystem specific commands:
fs_ckpt Manage Checkpoints
fs_dhsm Manage File Mover
fs_group Manage filesystem groups
fs_dhsm Manage File Mover
fs_group Manage filesystem groups
Complete List of “nas_” Commands:
This is just for reference, you can easily pull up this list from a Celerra by typing nas_ and hitting the tab key.
nas_acl
nas_ckpt_schedule
nas_dbtable
nas_emailuser
nas_inventory
nas_pool
nas_slice
nas_task
nas_automountmap
nas_cmd
nas_devicegroup
nas_event
nas_license
nas_quotas
nas_stats
nas_version nas_cel
nas_copy
nas_disk
nas_fs
nas_logviewer
nas_replicate
nas_storage
nas_volume
nas_checkup
nas_cs
nas_diskmark
nas_fsck
nas_message
nas_server
nas_symm
nas_xml
nas_ckpt_schedule
nas_dbtable
nas_emailuser
nas_inventory
nas_pool
nas_slice
nas_task
nas_automountmap
nas_cmd
nas_devicegroup
nas_event
nas_license
nas_quotas
nas_stats
nas_version nas_cel
nas_copy
nas_disk
nas_fs
nas_logviewer
nas_replicate
nas_storage
nas_volume
nas_checkup
nas_cs
nas_diskmark
nas_fsck
nas_message
nas_server
nas_symm
nas_xml
Complete list of “server_” Commands:
This is just for reference, you can easily pull up this list from a Celerra by typing server_ and hitting the tab key.
server_archive
server_cifssupport
server_file
server_log
server_name
server_ping6
server_sysconfig
server_vtlu
server_arp
server_cpu
server_ftp
server_mgr
server_netstat
server_rip
server_sysstat
server_cdms
server_date
server_http
server_mount
server_nfs
server_route
server_tftp
server_cepp
server_dbms
server_ifconfig
server_mountpoint
server_nfsstat
server_security
server_umount
server_certificate
server_devconfig
server_ip
server_mpfs
server_nis
server_setup
server_uptime
server_checkup
server_df
server_iscsi
server_mpfsstat
server_param
server_snmpd
server_usermapper
server_cifs
server_dns
server_kerberos
server_mt
server_pax
server_standby
server_version
server_cifsstat
server_export
server_ldap
server_muxconfig
server_ping
server_stats
server_viruschk
server_cifssupport
server_file
server_log
server_name
server_ping6
server_sysconfig
server_vtlu
server_arp
server_cpu
server_ftp
server_mgr
server_netstat
server_rip
server_sysstat
server_cdms
server_date
server_http
server_mount
server_nfs
server_route
server_tftp
server_cepp
server_dbms
server_ifconfig
server_mountpoint
server_nfsstat
server_security
server_umount
server_certificate
server_devconfig
server_ip
server_mpfs
server_nis
server_setup
server_uptime
server_checkup
server_df
server_iscsi
server_mpfsstat
server_param
server_snmpd
server_usermapper
server_cifs
server_dns
server_kerberos
server_mt
server_pax
server_standby
server_version
server_cifsstat
server_export
server_ldap
server_muxconfig
server_ping
server_stats
server_viruschk
Complete list of “fs_” Commands:
This is just for reference, you can easily pull up this list from a Celerra by typing fs_ and hitting the tab key.
fs_ckpt
fs_dedupe
fs_dhsm
fs_group
fs_rdf
fs_timefinder
fs_dedupe
fs_dhsm
fs_group
fs_rdf
fs_timefinder
Content taken from - Google/EMC/emcsan.wordpress
Wednesday, October 2, 2013
Reasons to Upgrade Data Ontap 7 to Data Ontap 8.0.1
Reason Number 1 – 64 Bit Aggregates
64 bit aggregates allow customer to extend the size of their storage pools (or aggregates) by raising the maximum capacity from 16 TB (with Data Ontap 7.x) to 100TB. For those of you unfamiliar with NetApp technology, an Aggregate is a collection of physical disks that have been protected in RAID-DP RAID groups. The aggregate is NetApp’s means to logically separate the capacity and performance IOPs from a physical disk drive and serve it via a resource pool to a number of datasets. This model allows us to leverage the physical resources to a higher level of utilization than what one can accomplish with traditional RAID technologies.
With 64 bit aggregates and RAID-DP, customers extend their dataset size and capabilities without compromising the protection of their data.
Reason Number 2 – NetApp DataMotion for FC, FCoE, & iSCSI LUNs
NetApp DataMotion for LUNs is one of our storage tiering technologies that can non-disruptively migrate LUNs (and the containing FlexVols) from one Aggregate to another within the same controller. DataMotion includes a migration validation capability and once executed will migrate LUNs and their Snapshots along with any LUN attributes such as thin-provisioning, deduplication, and dataset relationships (such as backup, dump, restore, replica, mirroring, MetroCluster, etc.) all without disrupting I/O or access.
Reason Number 3 – 10GbE & FCoE Unified Target Adapter
Data Ontap 8.0.1 provides support (in the form of device drivers) for our Unified Connect Target Adapter (UTA). A UTA is more commonly known as a Converged Network Adapter (CNA). With our UTA customers are able to enable simultaneous SAN (FCoE & iSCSI) and NAS (NFS & SMB/CIFS) connectivity with Data Center Ethernet (aka 10gbE) via a single PCI-E card.
The UTA also enables customer to potentially expand the amount of data their existing arrays host address by freeing up a PCI-E slots currently used for SAN & Ethernet connectivity and replacing it with a storage adapter for connecting additional disk shelves. PCI-E slots can sometimes be a priority when one’s mid-tier array, like the FAS3270, can address 1.9 Petabytes of storage!
Reason Number 4 – File System Compression
In light of an ever-increasing storage footprint, customers require a means to store data in a virtualized manner, on which allows the logical capacity to greatly exceed the physical capacity of the storage media (be it disk or tape). Data compression is the latest storage efficiency offering in NetApp’s unmatched portfolio of storage savings technologies specifically targeted for production data sets such as Virtual Machines, Messaging systems, databases, etc.
While many of my posts highlight our ability to provide data deduplication at both the disk and cache layers, compression is an excellent means to compliment dedupe and increase storage savings for data sets beyond virtual machines such as home directories, engineering data, and archived data sets. Best of all, Data Compression is a free software license!
Note: Data compression can only be enabled on FlexVols residing on 64-bit Aggregates.
Reason Number 5 – Support for VMware VAAI
Data ONTAP 8.0.1 provides support for the VMware vStorage APIs for Array Integration (VAAI) features released with vSphere 4.1. These features, Full Copy, Block Zeroing, and Hardware Assisted Locking, enhance the scalability of a virtual infrastructure by offloading I/O operations to the storage array. The current set of VAAI functions support VMFS datastores, but trust me here, there more coming on the VAAI front!
Bonus Reason – Increased Performance!
With the release of Data Ontap 8.0.1 we have enhanced the dedupe logic in our array cache, which in a number of tests provides anywhere from a 10% to a 48% performance increase. This increase is on data sets that share common blocks such as deduplicated datastores or hardware accelerated VM clones provisioned with the VSC (which are powered by FlexClone).
I’d like to cite the work of Dr. Desktop, whose lab is currently booting 5,000 virtual desktops running Windows 7 in 50 minutes on 24 SAS drives! These results are a 28% increase over the results obtained from the same hardware running data Ontap 7.3.4.
Info from - google/virtualstorageguy
Tuesday, July 30, 2013
How to rename Qtree in NetApp
To rename qtree in NetApp filers, we can follow below procedure.
- 1st make sure your volumes is in R/W state. If volume is snapmirrored and is in R/O mode... execute below procedure .
- Quiesce snapmirror (snapmirror quiesce -S sourcefiler:/vol/vol1/qtree1 destfiler:/vol/vol1/qt1)
- Break snapmirror (snapmirror break destfile:/vol/vol1/qt1)
- Now you can rename qtree, but not with ADMIN mode, we can do only in ADVANCED mode.
- priv set advanced
- qtree rename old qtree path new atree path (qtree rename /vol/vol1/qt1 vol/vol1/qt2)
- Once you rename qtree, make sure you also change share names.
- Then you can resync snapmirror with source filer (snapmirror resync)
If qtrees belongs to volumes which are in specific vfilers, just add "vfiler run vfilername" before executing commands.
Tuesday, July 16, 2013
EMC SYMCLI commands.
For our convince let's assume Array SID as "000001234"
symcfg
symcfg list
- A brief description of the all connected Symmetrix boxes.symcfg -sid 1234 remove
- Remove the array 1234 from symcfg list.symcfg -sid 1234 list -lockn all
- List all the external locks held in Symmetrix array 1234.symcfg -sid 1234 -lockn 15 release -force
- Release the lock 15 held on array 1234 .symcfg -sid 1234 list -v
- Displays detailed information about the Symmetrix Array 1234.symcfg -sid 1234 -dir 4a -p 0 list -addr -avail
- List the LUN information / availability of lun ids on port 4a0 in array 1234 .symcfg -sid 1234 list -rdfg all
- List details about all the rdf groups in array.symcfg -sid 1234 list -rdfg 3
- List details about rdf group 3 .symcfg -sid 1234 list -rdfg all -dynamic
- List details about all the dynamic rdf groups in array .symcfg -sid 1234 list -rdfg all -static
- List details about all the static rdf groups in array .symcfg -sid 1234 list -ra all
- List all RA ports with details like rdfg number , remote array sid and online status.symcfg discover
- Scans all the devices in hosts looking for new symmetrix devices and rebuilds the symmetrix configuration database .
symdev
symdev -sid 1234 list
- List all devices in symmetrix 1234.symdev -sid 1234 list -noport
- List the devices which are not mapped to any ports.symdev -sid 1234 list -noport -meta
- List all unmapped meta devices .symdev -sid 1234 list -dynamic
- List all devices whose dyn_rdf attribute set .symdev -sid 1234 list -hotspare
- Checks whether hotspare invoked in the array .symdev -sid 1234 show ABC
- show the detailed information about devioce ABC.symdev -sid 1234 write_disable ABC -SA all
- Write disable the device ABC from through all directors.symdev -sid 1234 not_ready ABC -SA all
- Not ready the device ABC from through all directors.
symmaskdb
symmaskdb -sid 1234 -dev ABC list assign
- List the masking details of the dev ABC .symmaskdb -sid 1234 -wwn xxxxxxx list devs
- List the devices masked to given wwn number .symmaskdb -sid 1234 -awwn hba_alias list devs
- List the devices masked to given alias hba name .
symmask
symmask list hba
- List HBA details of the host.symmask -sid 1234 -dir 4a -p 0 list logins
- List out wwns logged through port 4a0 .symmask -sid 1234 list logins -wwn xxx
- Check whether wwn xxx logged in to any of the FAs on array 1234.symmask -sid 1234 refresh
- Refresh the VCM Data Base after a masking and unmasking operation.symmask -sid 1234 -wwn xxxx -dir 4a -p 0 add devs ABC,ABD
- Mask the devices ABC and ABD to given wwn in 1234 arrray .symmask -sid 1234 -wwn xxxx -dir 4a -p 0 remove devs ABC,ABD
- Unmask the devices ABC and ABD from given wwn in 1234 arrray .
symdg
symdg -sid 1234 list
- List device groups which include the devices from array 1234.symdg create mydg -type rdf1
- Create device group mydg of rdf1 type .symdg show mydg
- Shows members/details of mydg.symdg rename mydg yourdg
- Renames the mydg to yourdg.symdg delete mydg -force
- Delete device group mydg.
symld
symld -g mydg -sid 1234 add dev ABC DEV006
- Add the RDF device ABC to device group mydg as DEV006symld -g mydg remove DEV006
- Remove DEV006 form device group mydg.
symrdf
symrdf -sid 1234 -rdfg 3 -type rdf1 -file rdf.txt -g mydg createpair -establish
- Establish the SRDF relation between the devices given in the file rdf.txt from array 1234(R1) and remote box according to the rdf group . This command start sync between R1 and R2, and also add these devices after creating the device group mydg.symrdf -sid 1234 -rdfg 3 -file rdf.txt query
- Query the Devices by using device pair file.symrdf -g mydg set mode acp_disk
- Set synching mode to Adaptive Copy.symrdf -g mydg query
- Query device group.symrdf -g mydg split
- Split the srdf pair for devices given in mydg.symrdf -sid 1234 -rdfg 3 -file rdf.txt deletepair.txt -force
- Delete the srdf pairing between R1/R2 and return them to stanadard.
symdisk
symdisk -sid 1234 list -hotspare
- List Hotspares configured in the array.symdisk -sid 1234 list -by_diskgroup
- Displays all the disks in array by disk groups.symdisk -sid 1234 list -diskg_group 1
- Displays all the disks in disk group 1.
Subscribe to:
Posts (Atom)