Pages

Saturday, May 18, 2013

Useful Celerra commands


Command:1 Create file system

/nas/bin/nas_fs -name fs1 -type uxfs -create size=<initial size> pool=<from pool> -auto_extend yes -max_size <max size> -vp yes -option slice=y,mover=server_2

Command:2 Create Mount Point

/nas/bin/server_mountpoint server_2 -create /fs1

Command:3 Mount File System

/nas/bin/server_mount server_2 fs1 /fs1

Command:4 Enable Unicode for CIFS Compatibility

/nas/sbin/uc_config -on -mover server_2



Command:5 Start CIFS protocol

/nas/bin/server_setup server_2 -Protocol cifs -option start

Command:6 Create CIFS IP Interface

/nas/bin/server_ifconfig server_2 -create -Device <network device> -name CIFS -protocol IP <cifs interface ip> <netmask> <broadcast ip>

Command:7 Start CIFS IP Interface

/nas/bin/server_ifconfig server_2 CIFS up

Command:8 Add CIFS Server to serve UNC paths

/nas/bin/server_cifs server_2 -add compname=<hostname>,domain=<domain name>,netbios=<hostname>,interface=CIFS,local_users

Command:9 Export CIFS shares for usage

/nas/bin/server_export server_2 -name fs1 -option netbios=<hostname> /fs1

Command:10 Create Mount point for NFS

/nas/bin/server_mountpoint server_2 -c /fs1

Command:11 Export NFS Share

/nas/bin/server_export server_2 -Protocol nfs -option root=<ip network accessing export> /fs1

Command:12 Create replication interface -Source

/nas/bin/server_ifconfig server_2 -create -Device <network device> -name REPL -protocol IP <ip of replication interface> <netmask of replication interface> <broadcast address of replication interface>

Command:13 Start replication interface -Source

/nas/bin/server_ifconfig server_2 REPL up

Command:14 Create Link between control stations for replication communications -Source

/nas/bin/nas_cel -create <name of remote control station> -ip <ip of remote control station> -passphrase pass1

Command:15 Create replication interface -Destination

/nas/bin/server_ifconfig server_2 -create -Device <network device> -name REPL -protocol IP <ip of replication interface> <netmask of replication interface> <broadcast address of replication interface>

Command:16 Start replication interface -Destination

/nas/bin/server_ifconfig server_2 REPL up

Command:17 Create Link between control stations for replication communications -Destination

/nas/bin/nas_cel -create <name of remote control station> -ip <ip of remote control station> -passphrase pass1

Command:18 Create interconnect between primary and secondary control stations -Source

/nas/bin/nas_cel -interconnect -create IC_<localcsname>_<remotecsname> -source_server server_2 -destination_system <remotecsname> -destination_server server_2 -source_interfaces ip=<source replication interface ip> -destination_interfaces ip=<destination replication interface ip>

Command:19 Create interconnect between secondary and primary control stations -Destination

/nas/bin/nas_cel -interconnect -create IC_<localcsname>_<remotecsname> -source_server server_2 -destination_system <remotecsname> -destination_server server_2 -source_interfaces ip=<source replication interface ip> -destination_interfaces ip=<destination replication interface ip>

Command:20 Setup replication between control stations -Source

"/nas/bin/nas_replicate -create RP_<localcsname>_<remotecsname> -source -fs fs1 -destination -fs fs1 -interconnect IC_<localcsname>_<remotecsname> -source_interface ip=<source replication interface ip> -destination_interface ip=<destination replication interface ip> -max_time_out_of_sync 1 -background -overwrite_destination

Command:21 Show virtual interfaces (port channels) status

server_sysconfig server_2 -virtual -info trk0_fxg

Command:22 Set vlan tagging and mtu for interface

server_ifconfig server_2 <interface name> vlan=<number> mtu=<mtu>

Read more: http://bloggerknown.blogspot.com/2013/02/changing-blog-page-by-page-number.html#ixzz2TaVMS7IW