SUN/SOLARIS HOST COMMANDS SOLARIS Software Installation ptree -a showrev -p prtconf pkginfo pkgadd pkgrm ~ Shows all

running processes in a tree format ~ Displays currently installed Solaris patches ~ prints system configurations ~ Lists installed software packages ~ install software packages ~ removes installed software packages

Solaris Device Commands cfgadm -a ~ List all ~ configure StorEdge Leadville driver.(Search for new devices)

cfgadm -c configure c4 devfsadm -vC

~ searches for devices and also cleans up old ~ searches for devices

update_drv -f sd -d -I devinfo drvconfig reboot -- -r /etc/system

~ print device specific information about disk devices ~ generates special device files ~ reboots system to discover configuration changes, and rebuild special files ~ system files ~ Lists of available target ids and luns ~ used for persistent binding on Emulex (qla22xx.conf for Qlogic) ~ system messages

/kernel/drv/sd.conf /kernel/drc/lpfc.conf /var/adm/messages

Solaris iSCSI Commands iscsiadm add static-config iqn.1999-08.com.array:sn.01234567,192.168.1.3:3260 iscsiadm add discovery-address 192.168.1.13:3260 ~map target

rw=teak.edu /reports ~ export (share) /reports à read only to sun.indiana.indiana.edu.edu /etc/dfs/dfstab ~ file to edit to make a share permanent shareall -F nfs ~ command to excute that will read /etc/dfs/dfstab and share to the network SOLARIS Filesystem Commands *** Format and lable all devices before using zpool *** zpool create spoon c3t6d9 (no slice #) ~create & mounts storage pool named spoon and mounts it at /spoon zpool create spoon mirror emcpower3c emcpower4c at /spoon zpool destroy -f spoon zfs create spoon/fs zpool List format sysdef ~destroy a zpool ~create a RAID1 storage pool mounted ~creates ZFS file system spoon/fs.indiana. automatically mounted at /spoon/fs.indiana.uwsg.write to teak.ucs.iscsiadm modify discovery --isns enable iscsiadm List target -vS Target: iqn.edu.1986-03. ~List pools ~ Disk partitioning and maintenance program ~ Device Listing .com devfsadm -Cv -i iscsi Solaris FC SAN Commands fcinfo hba-port ~ Lists information and WWNs ~ Lists the remote-port information fcinfo remote-port -p 10000000c937694f -ls Solaris NFS Commands share -F nfs -d "Cartman dir" / share2 mount -F nfs cartman:/share2 /cartman share -F nfs -o ro=sun.uwsg. read.ucs.

prtvtoc metadevadm metainit metastat metaset newfs -v ~ Disk Label ~ Checks device ID configuration. PowerPath 5. PowerPath provide dynamic multipath load balancing. ~ Displays the status of volumes or hot spare pools. PowerPath/VE is known as PowerPath in Virtual Environment (Supported VMWare vSphere and Microsoft Hyper-V). y Streamline and Automate I/O performance y Simplified. thus improving I/O performance and reducing management time and downtime PowerPath/VE for Windows Hyper-V provides the same multipathing functionality and loadbalancing as PowerPath for Windows in non-virtual environments. single management of physical and virtual environments. y Automated failover. (PowerPath-VE for Microsoft Hyper-V) There are additional benefits aside from the obvious performance improvements of loadbalancing. Separate license is required to use PowerPath in a Hyper-V environment. ~ makes a UFS filesystem on disk drive or partition within a diskdrive Powerpath Command PowerPath is a host-based software that provides path management. EMC PowerPath operates with several SAN storage systems. on several operating systems. PowerPath distributes I/O requests to a logical device across all available paths. ~ Configures volumes. y Clustered environments supported. ~ Administers disk sets. y Auto detect on problem paths and restore of problem paths QUICK REFEREN 1 (508) 435-5374 .3 Windows is version of PowerPath that should be used for Microsoft Hyper-V. with Fibre Channel and iSCSI data channels.

PowerPath CLI Commands powermt Command Command Description powermt Manages a PowerPath environment. powermt set priority Sets the I/O priority. 44 powermt Command Syntax powermt check [class=symm|clariion|all] [force] [hba=hba#|all] [dev=path|device|all] powermt check_registration powermt config powermt display [paths|ports] [class=symm|clariion|all] [every=seconds] powermt display [ports] [dev=device|all] . powermt watch is deprecated. emcpupgrade Converts PowerPath configuration files. powermt set mode Sets paths to active or standby mode. powermt display powermt watch Displays the state of HBAs configured for PowerPath. emcpminor Checks for free minor numbers. powermt set periodic_ autorestore Enables or disables periodic autorestore. powermt display options Displays the periodic autorestore setting. powermt check_ registration Checks the state of the PowerPath license. powermt save Saves a custom PowerPath configuration. dead paths. and optionally removes. powermt remove Removes a path from the PowerPath configuration. powermt restore Tests and restores paths. powermt config Configures logical devices as PowerPath devices. emcpreg Manages PowerPath license registration. Command Description powermt check Checks for. powercf Configures PowerPath devices. powermt load Loads a PowerPath configuration. powermt set policy Changes the load balancing and failover policy.

[class=symm|clariion|all] [every=seconds] powermt display options powermt load [class=symm|clariion|all] [file=pathname] powermt remove [class=symm|clariion|all] [force] hba=hba#|all | dev=path|device|all powermt remove [class=symm|clariion|all] [force] hba=hba#|all dev=path|device|all powermt restore [class=symm|clariion|all] [force] [hba=hba#|all] [dev=path|device|all] powermt save [file=pathname] powermt set periodic_autorestore=on|off [class=symm|clariion|all] powermt set mode=active|standby [class=symm|clariion|all] [hba=hba#|all] [dev=path|device|all] powermt set policy=li|lb|rr|re [class=symm|clariion|all] [dev=device|all] powermt set policy=so|nr [dev=device|all] (Symmetrix only) powermt set policy=bf|co [dev=device|all] (CLARiiON only) powermt set priority=priority# [class=symm|clariion|all] [dev=device|all] powermt version powermt set write_throttle=on|off [class=symm|clariion|all] [dev=device|all] powermt set write_throttle_queue=queue_depth# [class=symm|clariion|all] [dev=path|device|all] powermt set transparent Enables or disables load balancing and failover. Command Description 5 powercf Command powercf Command Syntax powercf -q|-Z -q updates the PowerPath driver configuration file. powermt set write_ throttle_queue Sets the write throttling queue depth for a storage system. . powermt set write_throttle Enables or disables I/O write throttling to a logical device. This command is deprecated. powermt version Returns the number of the PowerPath version for which powermt was created.

x or 3. emcpminor get Returns the first available minor number or set of minor numbers.] emcpreg [-f pathname] -check key [key .saved filename. Command Description emcpupgrade check Compares the saved PowerPath 2...saved is not found. emcpreg Command emcpreg Command Syntax emcpreg [-f pathname] -add key [key . Command Description emcpminor check Checks whether a minor number.. is free.0 files.x or 3.] emcpreg [-f pathname] -edit emcpreg [-f pathname] -install [-noinput] emcpreg [-f pathname] -list emcpreg [-f pathname] -remove key [key .x configuration files to PowerPath 4.] emcpminor Command emcpminor Command Syntax emcpminor check minor [minor«] emcpminor get [-n N] [-b base] Command Description powercf Configures PowerPath devices.custom.custom. -c continues without prompting if powermt..-Z configures an SRDF-enabled server to be bootable from an R2 mirror of a Symmetrix-based emcpower boot disk by a remote host. Command Description emcpreg Manages PowerPath license registration. -v displays mappings of pseudo names to storage system volumes. 66 emcpupgrade Command emcpupgrade Command Syntax emcpupgrade check [-f filename] [-c] emcpupgrade convert [-f filename] [-c] emcpupgrade validate [-v] [-c] -f specifies a nondefault powermt. or set of minor numbers.. EMC TimeFinder/CLONE [ SYMCLONE ] .. emcpupgrade validate Checks the validity of the converted configuration. emcpupgrade convert Converts the saved PowerPath 2.x configuration against the system configuration.

instead Recreate the same session using below and activate them using activate. If you don¶t want to do full copy & copy the only changed tracks. copy will start immediately and won¶t wait for activate to be run. This should be fast. before to that you¶ve to Terminate the existing session. Creating a new session. #symclone -f <devices file> split -sid <symm id> ±nop . If copying is complete and you want to create a new session. when you query you should see the status as ³Restore in Progress´. once restore is complete you would see ³Restored´. #symclone -f <devices file> activate -sid <symm id> -consistent -nop Restoring or Reverse Cloning : Incase if something happens to source LUNS. you could use same device file. #symclone -f <devices file> activate -sid <symm id> -consistent -nop 3. If you want to normal clone from source to target again after restore is complete. Activate it for start copying blocks. you need to Split the existing reverse clone session by using below command. you could do using following commands. If you use ±precopy. Activating a previously created 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.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. Differential Copy : 1. for subsequent point in time clone creations.1. you don¶t have to flip the devices. Activate the session. if you want to restore from target. only thing is subsequent copies can be created with recreate option & they¶ll be just differential and fast. Note : This will be full copy from source to target 2. You would see status as ³copy in progress´ or ³Copied´. 3. #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. you don¶t(shouldn¶t) need to terminate the session. #symclone -f <devices file> query -sid <symm id> ±nop 4. #symclone -f <devices file> terminate -sid <symm id> ±nop All the above steps does are full copy from source LUN to target LUN. symclone has that options too. #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. #symclone -f <devices file> recreate -sid <symm id> ±nop 4. 2. Query the session to find out how is copy going on.

Now. you could go-ahead with recreate and activate for normal clones .

Sign up to vote on this title
UsefulNot useful