Sie sind auf Seite 1von 8

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

iscsiadm modify discovery --isns enable iscsiadm List target -vS Target: iqn.1986-03.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.ucs.indiana.edu,rw=teak.uwsg.indiana.edu /reports ~ export (share) /reports read only to sun.ucs.indiana.edu, read,write to teak.uwsg.indiana.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, automatically mounted at /spoon/fs. ~List pools ~ Disk partitioning and maintenance program ~ Device Listing

prtvtoc metadevadm metainit metastat metaset newfs -v

~ Disk Label ~ Checks device ID configuration. ~ Configures volumes. ~ Displays the status of volumes or hot spare pools. ~ Administers disk sets. ~ 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, with Fibre Channel and iSCSI data channels. PowerPath 5.3 Windows is version of PowerPath that should be used for Microsoft Hyper-V. PowerPath provide dynamic multipath load balancing. PowerPath distributes I/O requests to a logical device across all available paths, 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. PowerPath/VE is known as PowerPath in Virtual Environment (Supported VMWare vSphere and Microsoft Hyper-V). Separate license is required to use PowerPath in a Hyper-V environment. (PowerPath-VE for Microsoft Hyper-V) There are additional benefits aside from the obvious performance improvements of loadbalancing. y Clustered environments supported. y Streamline and Automate I/O performance y Simplified, single management of physical and virtual environments. y Automated failover. y Auto detect on problem paths and restore of problem paths QUICK REFEREN 1 (508) 435-5374

PowerPath CLI Commands powermt Command Command Description powermt Manages a PowerPath environment. powercf Configures PowerPath devices. emcpreg Manages PowerPath license registration. emcpminor Checks for free minor numbers. emcpupgrade Converts PowerPath configuration files. Command Description powermt check Checks for, and optionally removes, dead paths. powermt check_ registration Checks the state of the PowerPath license. powermt config Configures logical devices as PowerPath devices. powermt display powermt watch Displays the state of HBAs configured for PowerPath. powermt watch is deprecated. powermt display options Displays the periodic autorestore setting. powermt load Loads a PowerPath configuration. powermt remove Removes a path from the PowerPath configuration. powermt restore Tests and restores paths. powermt save Saves a custom PowerPath configuration. powermt set mode Sets paths to active or standby mode. powermt set periodic_ autorestore Enables or disables periodic autorestore. powermt set policy Changes the load balancing and failover policy. 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]

[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. This command is deprecated. powermt set write_throttle Enables or disables I/O write throttling to a logical device. powermt set write_ throttle_queue Sets the write throttling queue depth for a storage system. powermt version Returns the number of the PowerPath version for which powermt was created. Command Description 5 powercf Command powercf Command Syntax powercf -q|-Z -q updates the PowerPath driver configuration file.

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

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 wont 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 youve 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 dont 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 & theyll 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 dont(shouldnt) 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 dont have to flip the devices. you could use same device file. #symclone -f <devices file> restore -sid <symm id> nop you dont 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

Das könnte Ihnen auch gefallen