当前位置:文档之家› PowerPath Best Practice for AIX v7.5

PowerPath Best Practice for AIX v7.5

PowerPath Best Practice for AIX v7.5
PowerPath Best Practice for AIX v7.5

PowerPath Best Practice for AIX

2008年8月

EMC Global Service TIS

版本记录

版权说明

本文件中出现的任何文字叙述、文档格式、插图、照片、方法、过程等内容,除另有特别注明,版权均属美国EMC 公司所有,受到有关产权及版权法保护。任何个人、机构未经美国EMC公司的书面授权许可,不得复制、引用或传播本文件的任何片断,无论通过电子形式或非电子形式。

目录

1AIX HOST CONNECTIVITY (6)

1.1D OWNLOADING LATEST AIX ODM FROM EMC WEBSITE: (6)

1.2AIX FIX LEVEL INFORMATION: (6)

1.3FC ADAPTER USEFUL COMMANDS: (8)

1.4U SEFUL S ETTING AND P ARAMETERS: (12)

1.4.1FSCSI device Fast_Fail & Dyntrk (12)

1.4.2Set HAC MP “break reserves in parallel =true” (Recommended) (12)

1.5USEFUL SMALL SCRIPTS: (12)

1.5.1删除所有hdiskpower设备: (12)

1.5.2删除从hdiskpower0到hdiskpower100的设备: (13)

1.5.3删除所有hdisk设备: (13)

1.5.4删除某块光纤卡的hdisk设备 (13)

2HACMP (14)

2.1HACMP切换非常慢,每个EMC设备的切换时间是2-3分钟。 (14)

2.2EMC 69100:HACMP手工的TAKEOVER切换成功,但是当一台主机宕机时,EMC硬盘的切换

失败,HACMP无法清除硬盘的SCSI R ESERVATION状态。 (17)

2.3EMC建议在HACMP5.4中继续使用EMCPOWERRESET (27)

2.4T OPAS 或IOSTAT 显示EMC硬盘100%忙,但是实际的I/O却非常小或者没有。 (29)

2.5即使重启也无法删除HDISKPOWER设备,系统始终显示设备BUSY (29)

2.6E MC143075,“SET_SCSI_ID” HAS BEEN REPLACED BY “CFGSCSI_ID” WITH CLAR II ON L UNS IN HACMP/PP ENVIRONMENT (29)

2.7C LARIION LUN在AIX操作系统上的识别顺序总结----A UTHOR:D ANNY L I (33)

2.8AIX CHDEV COMMAND CAUSE DISK OPERATION ERROR ON C LARIION P ASSIVE(STANDBY)P ATH ---

A UTHOR :D ANNY L I (34)

2.9关于Q UEUE D EPTH 参数---A UTHOR:D ANNY L I (37)

2.10AIX JFS2 MOUNT OPTION "CIO" CAUSE VERY LOW PERFORMANCE FOR CP AND DD COMMAND---

A UTHOR:D ANNY L I (38)

2.11EMC PROCEDURES WHEN REPLACING HBA CARD ON AIX---B Y D ANNY L I (39)

2.12S TEPS FOR TF/S NAP IMPLEMENTATION -----B Y D ANNY L I (39)

2.13如何修改VCMDB使不同操作系统共享FA PORTS: (40)

2.14COOKBOOK FOR T IMEFINDER I NCREMENTAL C LONE AND C LONE R ESTORE (40)

2.15AIX433环境下的技术问题 (40)

3POWERPATH (40)

3.1F AST I/O F AILURE AND D YNAMIC T RACKING (41)

3.2EMC145919:P OWER P ATH 4.5.X:AIX LVM I/O ERRORS DUE TO MISSING DEVICE RESERVATIONS." (45)

3.3SUGGEST NOT TO CHANGE “FC_ERR_RECOV” DEFAULT VALUE (47)

3.4EMC108127:M ETHOD E RROR /ETC/METHODS/CFGPOWER -L POWERPATH00514-040E RROR INITIALIZING A DEVICE INTO THE KERNEL IN AIX WITH MINOR NUMBER MISMATCH (47)

3.5EMC111635:H OW TO REMOVE LUNZ DEVICES ON AN AIX HOST (50)

3.6USE P OWER P ATH INSTEAD OF AIX MPIO (52)

3.7EMC116729:FSCSI_ERR10C ONFIGURATION M ISMATCH E RRORS IN ERRPT AFTER TURNING ON

D YNAMIC T RACKING (53)

3.8EMC155602:AIX HOST WITH P OWER P ATH DOESN'T UPDATE DKSTAT CORRECTLY THUS IOSTAT SUMMARY APPEARS INCORRECT (55)

3.9EMC163961:AIX H OST L OST ACCESS TO STORAGE DURING POWERMT RESTORE( SAME AS POWERMT COINFIG / SYMINQ / SYMRDF / SYMSNAP) (55)

3.10关于S YMMETRIX锁的相关案例 (56)

3.11通过S OLUTION E NABLER 清除存储的SCSI R ESERVATION L OCK (58)

1 AIX Host Connectivity

1.1 Downloading latest AIX ODM from EMC website:

ftp://https://www.doczj.com/doc/a04864099.html,/pub/elab/aix/ODM_DEFINITIONS/

1.2 AIX FIX level information:

PowerPath5.0 AIX Maintenance Level requiremnt:

AIX 6.1 service pack:

Name Type Prereqs Date 6100-00-04-0815 Service Pack ?? 2008 6100-00-03-0808 Service Pack ?? 2008 6100-00-02-0750 Service Pack ??? 2007 6100-00-01-0748 Service Pack ??? 2007

AIX 5.3 service pack:

Name Type Prereqs Date

5300-07-03-0811 Service Pack 5300-07-00-0747 ?? 2008 5300-07-02-0806 Service Pack 5300-07-00-0747 ?? 2008 5300-07-01-0748 Service Pack 5300-07-00-0747 ??? 2007 5300-07-00-0747 Technology Level ??? 2007 5300-06-06-0811 Service Pack 5300-06 ?? 2008 5300-06-05-0806 Service Pack 5300-06 ?? 2008

5300-06-04-0748 Service Pack 5300-06 ??? 2007 5300-06-03-0732 Service Pack 5300-06 ?? 2007 5300-06-02-0727 Service Pack 5300-06 ?? 2007 5300-06-01-0722 Service Pack 5300-06 ?? 2007 5300-06 Technology Level ?? 2007 5300-05-CSP Concluding Service Pack 5300-05 ?? 2007 5300-05-06 Service Pack 5300-05 ?? 2007 5300-05-05 Service Pack 5300-05 ?? 2007 5300-05-04 Service Pack 5300-05 ??? 2006 5300-05-03 Service Pack 5300-05 ??? 2006 5300-05-02 Service Pack 5300-05 ?? 2006 5300-05-01 Service Pack 5300-05 ?? 2006 5300-05 Technology Level ?? 2006 5300-04-CSP Concluding Service Pack 5300-04 ?? 2006 5300-04-03 Service Pack 5300-04 ?? 2006 5300-04-02 Service Pack 5300-04 ?? 2006 5300-04-01 Service Pack 5300-04 ?? 2006 5300-04 Technology Level ?? 2006 5300-03 Maintenance Level ?? 2005 5300-02 Maintenance Level ?? 2005 5300-01 Maintenance Level ?? 2005

AIX5.2 service pack:

Technology Levels and Service Packs

Name Type Prereqs Date 5200-10-04-0750Service Pack TL 5200-10 December 2007 5200-10-03-0744Service Pack TL 5200-10October 2007 5200-10-02-0730Service Pack TL 5200-10July 2007

5200-10-01-0722Service Pack TL 5200-10June 2007

5200-10Technology Level June 2007

5200-09-CSP Concluding Service Pack TL 5200-09June 2007 5200-09-06Service Pack TL 5200-09March 2007 5200-09-05Service Pack TL 5200-09February 2007 5200-09-04Service Pack TL 5200-09January 2007 5200-09-03Service Pack TL 5200-09November 2006 5200-09-02Service Pack TL 5200-09October 2006 5200-09-01Service Pack TL 5200-09September 2006 5200-09Technology Level August 2006 5200-08-CSP Concluding Service Pack TL 5200-08August 2006 5200-08-02Service Pack TL 5200-08April 2006

5200-08-01Service Pack TL 5200-08February 2006 5200-08Technology Level February 2006 5200-07-CSP Concluding Service Pack5200-07March 2006

Maintenance Level packages (legacy)

Name Type Prereqs Date

5200-07Maintenance Level September 2005

5200-06Maintenance Level May 2005

5200-05Maintenance Level January 2005

5200-04Maintenance Level December 2004

5200-03Maintenance Level May 2004

5200-02Maintenance Level October 2003

5200-01Maintenance Level May 2003

AIX 5.1 service pack:

ML 5100-09September, 2005 SW fixes

ML 5100-08May, 2005 SW fixes

ML 5100-07October, 2004 SW fixes

1.3 FC adapter useful commands:

#lsdev -Cc adapter|grep fcs 查找系统所安装的光纤卡

fcs0 Available 20-58 FC Adapter

fcs1 Available 20-60 FC Adapter

#lscfg -vl fcsX查看光纤卡硬件信息,例如:卡的类型, WWN, 微码版本

Where X is the number of the adapter returned by the previous lsdev command.

4GB single port Fiber channel card:

FC5758 ( 卡上标签为280D,1905 )

fcs3 P1-I1/Q1 FC Adapter

Part Number.................03N5014

EC Level....................A

Serial Number...............1E313BB001

Feature Code/Marketing ID...280D Manufacturer................001E

FRU Number.................. 03N5014

Device Specific.(ZM) (3)

Network Address.............10000000C9488F4C(FC card WWN)

ROS Level and ID............02C82135

Device Specific.(Z0)........1036406D

Device Specific.(Z1) (00000000)

Device Specific.(Z2) (00000000)

Device Specific.(Z3) (03000909)

Device Specific.(Z4)........FFC01158

Device Specific.(Z5)........02C82135

Device Specific.(Z6)........06C32135

Device Specific.(Z7)........07C32135

Device Specific.(Z8)........20000000C9488F4C

Device Specific.(Z9)........BS2.10X8 <===========微码版本:2.10X8 Device Specific.(ZA)........B1D2.10X8

Device Specific.(ZB)........B2D2.10X8

Device Specific.(YL)........P1-I1/Q1

4GB dual port Fiber channel card:

FC5759 ( 卡上标签为5759,1910 )

fcs7 P1-I2/Q1 FC Adapter

Part Number.................03N5029

EC Level....................A

Serial Number...............1F5310C048

Manufacturer................001F

Feature Code/Marketing ID (5759)

FRU Number.................. 03N5029

Device Specific.(ZM) (3)

Network Address.............10000000C94ABA08(FC card WWN) ROS Level and ID............02C82132

Device Specific.(Z0)........1036406D

Device Specific.(Z1) (00000000)

Device Specific.(Z2) (00000000)

Device Specific.(Z3) (03000909)

Device Specific.(Z4)........FFC01155

Device Specific.(Z5)........02C82132

Device Specific.(Z6)........06C12132

Device Specific.(Z7)........07C12132

Device Specific.(Z8)........20000000C94ABA08

Device Specific.(Z9)........BS2.10X8 <=== firmware level Device Specific.(ZA)........B1F2.10X2

Device Specific.(ZB)........B2F2.10X2

Device Specific.(YL)........P1-I2/Q1

2GB single port Fiber card:

FC5716 ( 卡上标签为280B,197E,1957 )常用于P5系列主机上:

fcs1 P1-C1-T1 FC Adapter

Part Number.................80P4543

EC Level....................A

Serial Number...............1A31600450

Manufacturer................001A

Feature Code................280B 或197E 或1957

FRU Number.................. 80P4544

Device Specific.(ZM) (3)

Network Address.............10000000C9332A79 (FC card WWN)

ROS Level and ID (02881914)

Device Specific.(Z0)........1001206D

Device Specific.(Z1) (00000000)

Device Specific.(Z2) (00000000)

Device Specific.(Z3) (03000909)

Device Specific.(Z4)........FF801315

Device Specific.(Z5) (02881914)

Device Specific.(Z6) (06831914)

Device Specific.(Z7) (07831914)

Device Specific.(Z8)........20000000C940F419

Device Specific.(Z9)........TS1.90A4 <=== firmware level

Device Specific.(ZA)........T1D1.90A4

Device Specific.(ZB)........T2D1.90A4

Device Specific.(YL)........U7879.001.DQD0JHD-P1-C1-T1

2GB single port Fiber card:

FC6239(卡上标签为5704)常用于P6XX系列主机上:

fvs0 3F-08 FC Adapter

Part Number.................80P6415

EC Level....................A

Serial Number...............1D51406697

Manufacturer................001D

Feature Code/Marketing ID (5704)

FRU Number.................. 80P6416

Device Specific.(ZM) (3)

Network Address.............10000000C9492EF6

ROS Level and ID............02E01971

Device Specific.(Z0)........2003806D

Device Specific.(Z1) (00000000)

Device Specific.(Z2) (00000000)

Device Specific.(Z3) (03000909)

Device Specific.(Z4)........FF601410

Device Specific.(Z5)........02E01971

Device Specific.(Z6) (06631971)

Device Specific.(Z7) (07631971)

Device Specific.(Z8)........20000000C9492EF6

Device Specific.(Z9)........HS1.91X1 <============== firmware level

Device Specific.(ZA)........H1D1.91X1

Device Specific.(ZB)........H2D1.91X1

Device Specific.(YL)........P1-I5/Q1

FC6228 比较老型号的光纤卡,2GB速率:

fcs0 00-04 IBM Gigabit Fiber Channel PCI Adapter for 64 bit bus Part Number.................00P4494

EC Level....................A

Serial Number...............1A25001206

Manufacturer................001A

FRU Number.................. 00P4495

Network Address.............10000000C930D02B

ROS Level and ID............02C03951

Device Specific.(Z0)........2002606D

Device Specific.(Z1) (00000000)

Device Specific.(Z2) (00000000)

Device Specific.(Z3) (03000909)

Device Specific.(Z4)........FF401210

Device Specific.(Z5)........02C03951

Device Specific.(Z6) (06433951)

Device Specific.(Z7) (07433951)

Device Specific.(Z8)........20000000C930D02B

Device Specific.(Z9)........CS3.91X4

Device Specific.(ZA)........C1D3.91X4

Device Specific.(ZB)........C2D3.91X4

FC6227老型号光纤卡,1GB速率:

fcs0 00-04 IBM Gigabit Fiber Channel PCI Adapter

ROS Level and ID (02903291)

Device Specific (Z9).......SS3.22A1

Part Number....................09P4038, 09P1162, 03N4167, 24L0023

Serial Number (00000000)

Device Specific.(YL).......P2-I5

#lsattr -El fscsi0查看fscsi设备的连接状态和fastfail, dyntrk等参数设置

scsi_id 0x10300 Adapter SCSI ID False

attach switch How this adapter is CONNECTED False

sw_fc_class 3 FC Class for Fabric True

fc_err_recov delayed_fail FC Fabric Event Error RECOVERY Policy True

#rmdev -dl fscsi0 删除光纤协议设备,不建议删除fcs0设备。

#rmdev -dl fscsi0 -R 删除光纤卡及其所连接设备,例如hdiskpower, hdisk, FC tape

#cfgmgr -vl fcs0配置某光纤卡连接设备#cfgmgr -v配置所有设备

#/usr/lpp/EMC/Symmetrix/bin/emc_cfgmgr 配置EMC Hdisk设备, 尤其是BCV设备

如果某台主机只访问BCV设备,需要在/etc/inittab文件结尾增加一行命令:$/mkbcv -a。这样当该主机重启时,BCV设备会自动变为Available 状态。

1.4 Useful Setting and Parameters:

1.4.1 FSCSI device Fast_Fail & Dyntrk

相关说明参见2.1& 4.3:

chdev -l fscsi0 -a fc_err_recov=fast_fail -P

chdev -l fscsi0 -a dyntrk=yes -P

Note: Only enable it in “multipath software”(such as PowerPath) environment. Only enable it in Switch environment.

1.4.2 Set HACMP “break reserves in parallel =true” (Recommended)

相关说明参见4.1 :

smitty hacmp -> extended configuration -> extended resource configuration -> HACMP Extended resources configuration -> configure custom disk methods -> change/show Custom disk methods ->select "disk/pseudo/power" then scroll down to "break reserves in parallel" and change the value to true.

1.5 useful small scripts:

1.5.1 删除所有hdiskpower设备:

#for i in `lsdev -Cc disk|grep hdiskpower|cut -c 1-13`

>do

>rmdev -dl $i

>done

1.5.2 删除从hdiskpower0到hdiskpower100的设备:# i=0

# while [ i -le 100 ]

>do

>rmdev -dl hdiskpower$i

>let i=i+1

>done

1.5.3 删除所有hdisk设备:

# for i in `lsdev -Cc disk|grep EMC|cut -c 1-8`

>do

>rmdev -dl $i

>done

1.5.4 删除某块光纤卡的hdisk设备

# lsdev -Cc adapter|grep fcs0

fcs0 Available 20-58 FC Adapter

# for i in `lsdev -Cc disk|grep 20-58|cut -c 1-8`

>do

>rmdev -dl $i

>done

2 HACMP

2.1 HACMP切换非常慢,每个EMC设备的切换时间是2-3分钟。

Answer 1: set break reserves in parallel = true

ID: emc122557

Domain: EMC1

Solution Class: 3.X Compatibility

Goal How do I set up break reserves in parallel on AIX HACMP?

Fact OS: IBM AIX 5.x

Fact Application SW: HACMP 5.X

Fact break reserves in parallel = false

Symptom HACMP Cluster failover is slow

Fix set break reserves in parallel = true

Note To change this setting enter: smitty hacmp -> extended configuration -> extended resource configuration -> HACMP Extended resources configuration -> configure custom disk methods -> change/show Custom disk methods

select "disk/pseudo/power" then scroll down to "break reserves in parallel" and change the value to true. Repeat this on all nodes in the cluster, then resync the cluster.

Note: This will break reserves for all disks in each volume group in parallel. Thus a cluster with a large number of disks in each volume group will see substantially better improvement than a cluster where each volume group contains a small number of disks.

Note If disk/pseudo/power is not defined as a custom disk method on your cluster and you have PowerPath installed, please see EMC69100

Answer 2: “set_scsi_id” is not installed in CLARiiON environment

ID: emc97234

Domain: EMC1

Solution Class: 3.X Compatibility

Goal New " set_scsi_id " script is now required with CLARiiON LUNs in an HACMP / PP environment.

Goal How to set up HACMP on AIX with CLARiiON LUNs under PowerPath control.

Goal Example of the script " set_scsi_id.sh " needed with the PowerPath emcpowerreset utility. Fact Powerpath implemented with HACMP and emcpowerreset.

Fact EMC SW: PowerPath 4.3 and above

Fact Application SW: HACMP

Fact emcpowerreset utility used

Fact Product: CLARiiON Storage Array

Symptom HACMP Cluster failover is slow

Symptom emcpowerreset gets called on cluster initial start with no devices reserved.

Symptom emcpowerreset gets called during node failure event for devices with no disk reservations

Symptom emcpowerreset takes a longer period of time to execute.

Cause

The scdiskutil binary uses the PowerPath pseudo device·s scsi_id ODM attribute but sends ioctl(s) directly to the adapter/HBA interface instead of using the PowerPath interface. In some cases this scsi_id ODM attribute will correspond to the CLARiiON ·passive not ready?path rather then the ·Active?path to the device required.

When HACMP tries to access a LUN down the ·passive not ready?path, the following problems can be encountered:

1) In a Cascading HACMP env, the HACMP failover time will increase for each device accessed down the passive path.

2) In a Concurrent Access env, the ·emcpowerreset?utility might get run on some devices down the passive path resulting in a Permanent SCSI Reservation on LUNs which should never have SCSI Reservation. See Primus case emc104555 for more details on this issue.

Fix

Fixed in PP 4.6 (ETA Q3/2006). In the mean time Customer can get the fix from EMC·s PowerLink web site.

All of the above problems have been fixed with a new version on the ·set_scsi_id?script. To address a number of backward and forward compatibility issues, this new script now combines the original "set_scsi_id.sh" script with part of the existing "rc.emcpower".

Also note:

1.This new ·set_scsi_id?script is now required for ALL CLARiiON attach devices to an AIX node with

HACMP and PP.

2.This new ·set_scsi_id?script will replace the existing versions of

the ·set_scsi_id.sh?and ·rc.emcpower?scripts.

3.With this new ·set_scsi_id?script the old "rc.emcpower" utility is no longer required.

4.This new ·set_scsi_id?script is backward compatible with PP 4.3 and higher.

5.The name of the file has changed from ·set_scsi_id.sh?to ·set_scsi_id?

6.The default location that the file will be installed in when added via a PP install CD has changed. It

was placed in ?usr/lpp/EMC/CLARiiON/bin? it will now be put in /etc.

Customers adding this new ·set_scsi_id?script to an AIX node for the first time should follow the steps below to acquire the file from EMC·s PowerLink website and then use the "cl add custom" command, as shown in the procedure below, to add the ·set_scsi_id?script into their HACMP environment.

Customers who already have the previous version of the ·set_scsi_id.sh?script configured in their HACMP env will need to delete the old ·set_scsi_id.sh?script and modify their HACMP env to point to the new file in the new location. This can be done a number of ways. EMC recommends following the exact same steps in the procedure below except, in Step 3, replace ·claddcustom?

with ·cl ch custom ?to change the current HACMP configuration to point to the new file name in the new location.

1. Copy the ·set_scsi_id.zip?file from EMC·s PowerLink web site to a windows based system with WinZip.

set_scsi_id.zip or https://www.doczj.com/doc/a04864099.html, Select Support -> Downloads and Patches -> Downloads D-R -> PowerPath for UNIX. Then select the file ·set_scsi_id.zip?and follow the pop up to save the file to disk.

2. Uncompress the file ·set_scsi_id.zip?using unzip.

3. Copy the script ·set_scsi_id?to the /etc directory of all AIX node needing it and make it executable.

chmod +x /etc/set_scsi_id

4. Add the custom cluster event to your configuration. This event is the name given to the script that will be added later to select pre-defined HACMP events. Note that is is one long command.

/usr/es/sbin/cluster/utilities/claddcustom -t event -n'set_scsi_id' -I'Set correct scsi id on EMC CLARiiON pseudo devices.'-v'/etc/set_scsi_id'

5. Verify your custom cluster event was added.

(0)odmget HACMPcustom

HACMPcustom:

name = "set_scsi_id"

type = "event"

description = "Set correct scsi id on EMC CLARiiON pseudo devices."

value = "/etc/set_scsi_id'"

relation = ""

status = 0

6. Modify the pre-defined HACMP event by giving the event command your custom cluster event as

a pre-event command.

/usr/es/sbin/cluster/utilities/clchevent -O'node_up' -s'/usr/es/sbin/cluster/events/node_up' -b

'set_scsi_id' -c '0'

/usr/es/sbin/cluster/utilities/clchevent -O'node_down' -s'/usr/es/sbin/cluster/events/node_down' -b

'set_scsi_id' -c '0'

7. Verify the events were properly modified.

(0)odmget -q name=node_up HACMPevent

HACMPevent:

name = "node_up"

desc = "Script run when a node is attempting to join the cluster."

setno = 101

msgno = 7

catalog = "events.cat"

cmd = "/usr/es/sbin/cluster/events/node_up"

notify = ""

pre = "set_scsi_id"

post = ""

recv = ""

count = 0

event_duration = 0

odmget -q name=node_down HACMPevent

HACMPevent:

name = "node_down"

desc = "Script run when a node is attempting to leave the cluster."

setno = 101

msgno = 8

catalog = "events.cat"

cmd = "/usr/es/sbin/cluster/events/node_down"

notify = ""

pre = "set_scsi_id"

post = ""

recv = ""

count = 0

event_duration = 0

8. Synchronize your cluster and ensure there are no errors resulting from the addition of the pre-event scripts.

Notes: The modified script must reside in the same location on all nodes in the cluster. The script must be made executable on all nodes. Synchronization for the cluster will fail if it is not.

2.2 emc 69100: HACMP 手工的takeover切换成功,但是当一台主机宕机时,

EMC硬盘的切换失败,HACMP无法清除硬盘的SCSI Reservation状态。Question: ETA emc69100: How to prevent an AIX HACMP or RVSD cluster from failing during a node failover event.

Question: How to set up PSSP/VSD on AIX 5.x to enable LUN reset on PowerPath devices. Question: How to set up HACMP on AIX 5.x to enable LUN reset on PowerPath devices (emcpowerreset).

Question: How to confirm emcpowerreset is installed and configured correctly.

Environment: EMC Technical Advisory

Environment: Product: Symmetrix

Environment: Product: CLARiiON

Environment: OS: IBM AIX 5.x

Environment: IBM HACMP 4.5

Environment: IBM HACMP 5.1

Environment: IBM HACMP 5.2

Environment: IBM HACMP 5.3

Environment: EMC SW: PowerPath 3.0.3 and above

Environment: Application SW: Current ESM Supported versions of HACMP or RVSD for AIX Environment: The problem does not affect HACMP or RVSD on AIX 4.3.3 with PowerPath 3.x. Environment: The problem does not affect HACMP or RVSD when using PowerPath versions below 3.0.3.

Environment: Starting with HACMP 5.4 IBM HACMP native cl_fscsilunreset utility correctly clears disk reservations. For more information see entry for HACMP 5.4 in fix statement below. EMC and IBM continue to recommend that emcpowerreset be used to clear reserves for EMC arrays as this has been shown to provide 70% faster fail-over times in the event of a node outage.

Problem: In a non-cooperative node failover, the takeover node cannot always clear the SCSI device reservation held by the primary node.

Problem: The problem occurs when the takeover node cannot always clear the SCSI device reservation held by the primary node.

If the words "invalid argument" appear in the hacmp.out or vsd.log file in response to an SCIOLSTART, you may have encountered this issue.

For example, the hacmp.out log file will contain the following:

cl_disk_available[187] cl_fscsilunreset fscsi0 hdiskpower1 false

cl_fscsilunreset[124]: openx(/dev/hdiskpower1, O_RDWR, 0, SC_NO_RESERVE): Device busy

cl_fscsilunreset[400]: ioctl SCIOLSTART id=0X11000 lun=0X1000000000000 : Invalid argument

Problem: Failure to Restablish SCSI-2 reservations following a Fibre link event.

Problem: Installed the PowerPath utility emcpowerreset.

Fix: Install and configure the EMC PowerPath utility "emcpowerreset" into the HACMP environment. This binary can be obtained with any recent version of the EMC ODM package (Version 5.1.0.2 and hgher) from the EMC ftp server location:

ftp://https://www.doczj.com/doc/a04864099.html,/pub/elab/aix/ODM_DEFINITIONS

Once the EMC ODM package is downloaded and installed, the emcpowerreset utility can be found in the following directories:

/usr/lpp/EMC/Symmetrix/bin

/usr/lpp/EMC/CLARiiON/bin

The binary is also available for download from Powerlink using the following process.

https://www.doczj.com/doc/a04864099.html, Click on Support -> Software Downloads -> PowerPath for UNIX -> “EMCPowerReset Patch Version 2.0”.

For the Powerlink download there is 1 binary in the tar file called "emcpowerreset" as well as a README file with instructions. EMC Powerreset Version 2.0, supports PowerPath version 3.0.3 and higher. EMC Powerreset Version 1.2, supports PowerPath versions 3.0.3, 3.0.4.

EMC has developed a binary called "emcpowerreset" for removing disk reservations, held by PowerPath devices, in the event that a node crashes. This binary is required for any HACMP installations on AIX 5.1, and higher when running PowerPath version 3.0.3 and higher.

To determine the different emcpowerreset versions, run the following command:

"cksum emcpowerreset"

Version 1 = 1108394902 7867 emcpowerreset

Version 2 = 1955156125 10311 emcpowerreset

The emcpowerreset binary takes as options two parameters, and . These two parameters are automatically passed to the binary whenever it is invoked within the HACMP script logic.

AIX OPERATING SYSTEM REQUIREMENTS:

-------------------------------------------------------------

AIX 5.1, and higher

* Not required for AIX version 4.3.3.

POWERPATH REQUIREMENTS:

---------------------------------------------

PowerPath version 3.0.3 and higher.

SYMMETRIX REQUIREMENTS:

--------------------------------------------

Symmetrix 3000, 5000, 8000, DMX800, DMX1000, DMX2000, DMX3000

CLARiiON REQUIREMENTS:

----------------------------------------

CLARIION FC4700, FC4700-2, CX-Series

DEVICE RESET BEHAVIOR:

---------------------------------------

The "emcpowerreset" binary will perform a device LUN reset depending on the Symmetrix microcode version. If the Symmetrix Array is running minimum 5x67.18.13S, then LUN reset is supported. Device LUN reset will be performed on CLARiiON arrays.

INSTALLATION:

-----------------------

a) Create the directory below to contain the binary obtained from EMC. NOTE: Symmetrix customers, running the EMC ODM package, should already have this directory.

mkdir -p /usr/lpp/EMC/Symmetrix/bin

or

mkdir -p /usr/lpp/EMC/CLARiiON/bin

b) Copy the emcpowerreset binary into the /usr/lpp/EMC/Symmetrix/bin or

/usr/lpp/EMC/CLARiiON/bin subdirectory.

c) Make sure the "emcpowerreset" binary is root executable.

d) The steps used to configure the new "emcpowerreset" utility into HACMP will vary depending on the version of HACMP used. Follow the steps in the applicable section below to complete the installation process.

I) For HACMP 5.1 and higher (SMIT):

1. Enter into the SMIT fastpath for HACMP "smitty hacmp".

2. Select Extended Configuration.

3. Select Extended Resource Configuration.

4. Select HACMP Extended Resources Configuration.

5. Select Configure Custom Disk Methods.

6. Select Add Custom Disk Methods.

7. The following fields are available, enter as follows:

For IBM Fibre Channel configurations with PowerPath 3.0.3 and higher:

Disk Type (PdDvLn field from CuDv) = disk/pseudo/power

Method to identify ghost disks = SCSI3

Method to determine if a reserve is held = SCSI_TUR

Method to break a reserve = /usr/lpp/EMC/Symmetrix/bin/emcpowerreset

or

/usr/lpp/EMC/CLARiiON/bin/emcpowerreset

Break reserves in parallel = true

Method to make the disk available = MKDEV

For IBM SCSI configurations with PowerPath 3.0.3, 3.0.4:

Disk Type (PdDvLn field from CuDv) = disk/pseudo/power

Method to identify ghost disks = SCSI2

Method to determine if a reserve is held = SCSI_TUR

Method to break a reserve = /usr/lpp/EMC/CLARiiON/bin/emcpowerreset

Break reserves in parallel = true

Method to make the disk available = MKDEV

8. Configure the same custom disk processing method on each node in the cluster and synchronize the cluster resources. The cluster verification process ensures that the method that you configured exists and is executable on all nodes. The synchronization process ensures that the ODM entries are the same on all nodes, but will not synchronize the methods named in the ODM entries.

II) For HACMP 4.5 Classic and ES (SMIT):

1. Enter into the SMIT fastpath for HACMP "smitty hacmp".

2. Select Cluster Configuration.

3. Select Cluster Custom Modification.

4. Select Work with Custom Disk Methods.

5. Select Add Custom Disk Methods.

6. The following fields are available, enter as follows:

For IBM Fibre Channel configurations with PowerPath 3.0.3 and higher:

Disk Type (PdDvLn field from CuDv) = disk/pseudo/power

Method to identify ghost disks = SCSI3

Method to determine if a reserve is held = SCSI_TUR

Method to break a reserve = /usr/lpp/EMC/Symmetrix/bin/emcpowerreset

or

/usr/lpp/EMC/CLARiiON/bin/emcpowerreset

Break reserves in parallel = true

Method to make the disk available = MKDEV

For IBM SCSI configurations with PowerPath 3.0.3, 3.0.4:

Disk Type (PdDvLn field from CuDv) = disk/pseudo/power

Method to identify ghost disks = SCSI2

Method to determine if a reserve is held = SCSI_TUR

Method to break a reserve = /usr/lpp/EMC/CLARiiON/bin/emcpowerreset

Break reserves in parallel = true

Method to make the disk available = MKDEV

AIX做和取消mirror

AIX做系统镜像 1、用lspv查看系统中可用的物理硬盘 确定要做镜像盘的卷组,例如系统装在hdisk0物理盘上,把hdisk1做成系统盘的rootvg卷组的镜像。 2、#smittyextendvg “Force the creation of a volume group?”选择“yes”,强制加入卷组 “VOLUME GROUP name”选择“rootvg” “PHYSICAL VOLUME names”填入“hdisk1”,回车确认即可 3、将rootvg做镜像,使用命令: #smittymirrorvg

选择rootvg “Mirror sync mode”选择“Background”,使同步过程在 后台进行 “PHYSICAL VOLUME names”选择“hdisk1” 其他默认,回车即可。 4、将hdisk1加入启动快,使用命令 #bosboot–ad /dev/hdisk1 改变启动列表,使操作系统的启动顺序为hdisk0,hdisk1,使用命令: #bootlisk–m normal hdisk0 hdisk1 查看当前启动列表

#bootlisk–m normal –o AIX取消系统镜像 1、把rootvg的mirror去掉,要制定哪个物理盘: #unmirrorvgrootvg hdisk1 去掉hdisk1的引导信息 #chpv–c hdisk1 2、从rootvg中删除hdisk1 #reducevgrootvg hdisk1 把系统中的硬盘删掉 #rmdev–dl hdisk1 3、更改启动列表 #bootlisk–m normal hdisk0

AIX常用命令大全

AIX常用命令大全 查看交换区信息: lsps -a 显示交换区的分布信息 lsps -s 显示交换区的使用信息 slibclean 清除处理程序遗留的旧分页信息 smit mkps 建立交换区空间信息 swapon -a 启动所有的分页空间 /etc/swapspaces 存放分页空间表格信息 ------------------------------------------------- 显示卷信息: lsvg 显示卷的名称 lsvg -l rootvg 显示rootvg卷的详细信息 ------------------------------------------------- mount卷的方法: varyonvg datavg 加载datavg卷 mount /dev/data1 加载datavg下的一个data1卷 裸设备类型:raw,jfs jfs可以转变成文件系统,而raw则不行 ------------------------------------------------- 在裸设备上安装oracle系统: 修改裸设备的权限,如裸设备名为system01,安装数据库用户为oracle chown oracle:dba /dev/system01 chown oracle:dba /dev/rsystem01 在使用文件时必须用rsystem01 ------------------------------------------------- smit快速路径名称:(smit:图形方式,smitty:字符方式) dev 设备管理 diag 诊断 jfs 定期档案管理系统 lvm 逻辑卷册系统管理员管理 nfs NFS管理 sinstallp 软件安装及维护 spooler 列印队列管理 system 系统管理

SVN服务端安装和配置

所有资料来源于 https://www.doczj.com/doc/a04864099.html, 我用Subversion - SVN|TortoiseSVN下载安装配置使用技术交流社区 SVN 服务端安装和配置 1.Windows环境下基于 Apache 的SVN 服务器安装及配置 1.1安装 1.1.1安装Apache (1)下载Apache 地址https://www.doczj.com/doc/a04864099.html,/download.cgi 注意:Apache低于2.0.54的Windows版本的存在编译问题,低于2.0.54的版本不能与Subversion 1.2一起工作。2.2.X目前不能很好支持SVN 1.4.3。当前建议下载Apache 2.0.59 (2) 安装 下载完成后运行apache_2.0.59-win32-x86-no_ssl.msi,根据提示进行操作。遇到系统要求输入SERVER的URL时,如果你的服务器没有DNS名称,请直接输入IP地址。 注意:如果你已经有了IIS或其他监听80段口的程序,安装会失败,如果发生这种情况,直接到程序的安装目录\Apache Group\Apache2\conf,打开httpd.conf。编辑文件的Listen 80为其他可用的端口,例如Listen 81,然后重新启动-这样就不会那个问题了。 (3)检查 安装完成后浏览http://localhost/若成功,可看到apache页面。 1.1.2安装Subversion (1)下载 Subversion 地址:https://www.doczj.com/doc/a04864099.html,/servlets/ProjectDocumentList?folderID=91(2)安装 运行svn-1.4.3-setup.exe 安装程序,并根据指导安装,如果Subversion认识到你安装了Apache,你就几乎完成了工作,如果它没有找到Apache服务器,你还有额外的步骤。 (3)后续 步骤1 从C:\Program Files\Subversion\bin 中将 mod_authz_svn.so mod_dav_svn.so复制到 C:\Program Files\Apache Group\Apache2\modules下 intl3_svn.dll libdb*.dll C:\Program Files\Apache Group\Apache2\bin下 步骤2 找到C:\Program Files\Apache Group\Apache2\conf\httpd.conf文件去掉如下几行的注释(删除 '#'标记):

AIX根盘镜像更换hdisk

AIX根盘镜像更换hdisk(dump device问题) AIX如果paging swap和dump device不同,系统不会mirror dump device(The system dump devices " primary /dev/hd6 and secondary /dev/sysdumpnull" should not be mirrored.),下面是系统正常情况下的dump device的信息: # lsvg -l rootvg rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 2 2 closed/syncd N/A hd6 paging 244 488 2 open/syncd N/A hd8 jfs2log 1 2 2 open/syncd N/A hd4 jfs2 8 16 2 open/syncd / hd2 jfs2 40 80 2 open/syncd /usr hd9var jfs2 40 80 2 open/syncd /var hd3 jfs2 16 32 2 open/syncd /tmp hd1 jfs2 40 80 2 open/syncd /home hd10opt jfs2 80 160 2 open/syncd /opt lg_dumplv sysdump 16 16 1 open/syncd N/A # sysdumpdev -l primary /dev/lg_dumplv secondary /dev/sysdumpnull copy directory /var/adm/ras forced copy flag TRUE always allow dump FALSE dump compression ON

AIX命令手册

系统的配置 PV(physical volume)物理卷:普通的直接访问的存储设备,有固定的和可移动的之分,代表性的就是硬盘。 VG(volume group)卷组:AIX中最大的存储单位,一个卷组由一组物理硬盘组成,也就是由一个或多个物理卷组成。 PP(physical partition)物理分区:是把物理卷划分成连续的大小相等的存储单位,一个卷组中的物理分区大小都相等。 LP(logical partition)逻辑分区:适映射物理分区的逻辑单位,一个逻辑分区可以对应一个也可以对应多个物理分区。 LV(logical volume)逻辑卷:是指卷组中由多个逻辑分区组成的集合,逻辑卷中的逻辑分区是连续的,但是对应的物理分区是不连续的,可以在一个磁盘上,也可以在不同的磁盘上。 FS(file system)文件系统:是指在AIX系统中面向用户的存储空间。一个逻辑卷只能创建一个文件系统,也就是说一个文件系统对应一个逻辑卷,如果删除逻辑卷也将删除文件系统。

配置hd6 #smitty chps#lsvg rootvg(PP)#lsps –a(size)(特定的值—size)/pp=128—当前所用的值 修改时区时间#smitty chtz_date 关机重启#shutdown -Fr重启#shutdown -F关机 修改网关#smitty route 编辑limits #vi /etc/security/limits 编辑hosts #vi /etc/hosts 切换用户#su tianhao 修改TCP/IP #smitty tcpip 安装软件#smitty installp 安装数据库软件包PerfTools 补丁bos.adt, bos.data,https://www.doczj.com/doc/a04864099.html,,https://www.doczj.com/doc/a04864099.html,pat,bos.cifs_fs, rsct.basic,bos.dosu (https://www.doczj.com/doc/a04864099.html,pat.basic,https://www.doczj.com/doc/a04864099.html,pat.clients,rsct.opt.storagem,bos.clvm)为HA补丁查看系统版本#Oslevel –r #oslevel –s 图形界面#smit easy_install 安装文件X11 DT 安装包CDE 启动图形界面#cd /etc #./rc.dt 安装HACMP(doc ha ha nfs不安装)#lslpp -l |grep cluster版本修改系统最大进程数#smitty chgsys 语言环境#smit mlang 安装文件zh_cn gb18030中文 添加文件系统#smitty jfs2 修改文件系统#chfs –a size=10G /usr df –g chfs –a size=2G / (/home /usr /var /tmp /dev /etc /其他)文件系统lsvg rootvg 活动空间free 配置AIO #smit chgaio available 数据库

(2020)(环境管理)WindowsApacheMysqlPHP环境的安装与配置图文教程经典整合版

(环境管理)WindowsApacheMysql PHP环境的安装与配置图文教程经典整合版

Windows+Apache2.2+Mysql5+ PHP5环境的配置整合版 所需文件: mysql-essential-5.1.48-win32.msi httpd-2.2.15-win32-x86-openssl-0.9.8m-r2.MSI php-5.2.6-Win32.zip PECL5.2.6 Win32 binaries.ZIP 配置要求: 1、将Apache+PHP+Mysql安装在E:\。 2、将网页文档文件改为:E:\Web。 Apache的安装: 1、运行httpd-2.2.15-win32-x86-openssl-0.9.8m-r2.MSI,界面如下:

单击“I accept the terms in the license agreement”之后再单击“Next”。

服务器信息可以按照默认配置,如果服务器的80端口没被其他服务器程序占据。可选“for All Users,on Port 80, as a Service—Recommended.”如果仅为当前用户使用,使用8080端口,手动启动,选择“only for the Current User, on Port 8080, when started Manually.”。单击“Next”。

“Typical”为默认安装,“Custom”为用户自定义安装。选择“Custom”,单击“Next”。 单击“Build Headers and libraries”,选择“This feature will be installed on local dirive.”

数据迁移服务V200R100C00----AIX下使用LVM镜像的数据迁移方案

数据迁移服务V200R100C00交付材料AIX下使用LVM镜像的数据迁移方案 华为技术有限公司 版权所有侵权必究

AIX下使用LVM镜像的数据迁移方案文档密级:内部公开修订记录

AIX下使用LVM镜像的数据迁移方案文档密级:内部公开 目录 第1章数据迁移前必读 (1) 1.1概述 (1) 1.2读者对象 (1) 1.3适用场景 (1) 1.4注意事项 (2) 第2章数据迁移流程 (3) 第3章数据迁移前准备 (4) 3.1迁移环境准备 (4) 3.1.1 准备参考文档 (4) 3.1.2 查询系统信息 (4) 3.1.3 获取所需的软件和工具 (5) 3.1.4 检查系统及设备运行状态 (5) 3.2 配置目标存储 (6) 3.2.1 配置热备盘 (6) 3.2.2 创建RAID组及划分LUN (6) 3.3 数据备份 (7) 第4章数据迁移方案 (8) 4.1添加目标存储映射 (9) 4.1.1 更改设备物理连接 (10) 4.1.2 映射目标存储LUN给主机 (11) 4.1.3 在服务器上配置虚拟磁盘 (11) 4.2迁移数据 (12) 4.3迁移完成后移除源存储 (13) 4.4同步备机 (15) 4.5添加目标存储多路径 (16) 4.6 调测业务系统 (17) 第5章回退方案 (18) 5.1 回退场景 (18) 5.1.1 数据备份与恢复; (18) 5.1.2 割接失败导回方案 (18) 5.2 回退步骤 (19)

AIX下使用LVM镜像的数据迁移方案文档密级:内部公开第6章 FAQ (20) 第7章如何获取帮助..................................................................................... 错误!未定义书签。第8章缩略语.. (21)

AIX系统常用的命令

AIX系统常用的命令 1、系统性能 (1)看CPU个数#lsdev -C|grepproc#几条记录就是几个CPU (注意考虑AIX 5.3的SMP) (2)看每个CPU的大小#lsattr -El proc0 (3)看内存条数#lsdev -C|grepmem (4)看内存大小#lsattr -El mem0 (5)看硬盘#lsdev -Cc disk (6)查看系统性能#top 或 #topas 2、系统重启:#shutdowm -Fr 3、配网址和路由 (1)配置网址 #smittytcpip #ifconfig en0 netmask 255.255.255.0 up (2)配置路由: #route add 0 200.3.0.254 4、如何确定一个文件系统是大文件系统? #lsfs -q /home注意如果输出:bf:true证明此文件系统为大文件系统。

5、/etc/inittab中的环境变量只引用/etc/enviormant文件中的设置,其余的如/etc/profile,/.profile中的不引用。 6、磁带机的相关操作: tctlfsf 1 tctlbsf 1 dd if=/temp1 pf=/dev/rmt1 tctl -f /dev/rmt1 rewind tctl -f /dev/rmt1 offline tapeutil -f /dev/rmt1 unmount 2 tapeutil -d /dev/rmt1 mount 2 7、查看硬盘的大小 lspv hdisk4 or lspv -p hdisk3 8、查看操作系统的版本 oslevel -r可以查看AIX当前版本和ML(维护层次), 也可以使用# instfix |grep ML 9、查看Os的bit 1 local364or bootinfo -y

Linux下Apache服务器的安装和配置

【实验8】Apache服务器的安装和配置 一、实验目的: 1.掌握Apache Web服务器的安装和配置。 2.使用虚拟主机在同一台服务器上架设多个网站。 二、【实验环境】 1.虚拟机软件VM Ware 6.0,Redhat Enterprise Linux虚拟机或光盘镜像文 件。 2.2台以上机器组成的局域网。 三、【实验原理】 (一)Apache服务简介 Apache是世界使用排名第一的Web服务器软件。它可以运行在几乎所有广泛使用的计算机平台上。 Apache源于NCSAhttpd服务器,经过多次修改,成为世界上最流行的Web 服务器软件之一。Apache取自“a patchy server”的读音,意思是充满补丁的服务器,因为它是自由软件,所以不断有人来为它开发新的功能、新的特性、修改原来的缺陷。Apache的特点是简单、速度快、性能稳定,并可做代理服务器来使用。 (二)虚拟主机 所谓虚拟主机,也叫“网站空间”就是把一台运行在互联网上的服务器划分成 多个“虚拟”的服务器,每一个虚拟主机都具有独立的域名和完整的Internet服务 器(支持WWW、FTP、E-mail等)功能。一台服务器上的不同虚拟主机是各自 独立的,并由用户自行管理。 虚拟主机技术是互联网服务器采用的节省服务器硬体成本的技术,虚拟主机 技术主要应用于HTTP服务,将一台服务器的某项或者全部服务内容逻辑划分 为多个服务单位,对外表现为多个服务器,从而充分利用服务器硬体资源。如果 划分是系统级别的,则称为虚拟服务器。

(三)Linux中虚拟主机的分类 1、基于IP地址的虚拟主机 如果某公司有多个独立的IP地址可用,那么可以用不同的IP地址来配置虚拟主机。 2、基于端口的虚拟主机 如果只有一个IP地址,但是要架设多个站点,可以使用端口来区分,每个端口对应一个站点。这样配置的话,用户在访问的时候必须在 URL中指明端口号才能访问相应的网站。 3、基于名称的虚拟主机 使用基于IP地址或者端口的虚拟主机,能够配置的站点数目有限,而使用基于名称的虚拟主机,可以配置任意数目的虚拟主机,而不需要 额外的IP地址,也不需要修改端口号。 四、实验步骤 本实验请勿使用【系统】→【管理】→【服务器设置】中的【HTTPD】工具来配置,否则后果自负! (一)Apache服务器的启动 1、测试是否已安装Apache服务器: [root@localhost ~]#rpm –qa httpd 2、启动Apache服务器: [root@localhost ~]#service httpd start (二)基于端口的虚拟主机的配置 1、在/etc/httpd目录中,建立一个名为vhostconf.d的子目录,用来存放虚拟 主机的配置文件。 2、在/var/www目录中,建立一个名为websites的子目录,用于存放网站源 文件;在website目录下再建立ipvhost1和ipvhost2文件夹,用于区分各 个站点。

AIX rootvg换故障盘reducevg报错的解决办法

AIX rootvg换盘时reducevg报错的处理办法 神州数码--沈飞龙 2017-8 作为AIX系统管理员,rootvg的磁盘坏了一个,需要换盘,这是大家经常遇到的事情。正常情况下,unmirrorvgreducevg换盘extendvgmirrorvg这些都不会遇到什么问题。但总是有特殊情况,就是我在unmirrorvg成功之后,reducevg总是报错,需要unmount rootvg上的文件系统,生产环境,哪能说停就停呢? 1 lsvg–p rootvg检查成员磁盘,确定哪个是救命稻草,哪个盘是坏了的。 从上图中看出,hdisk114磁盘损坏,需要更换。 按照正常步骤,1 unmirrorvgrootvg hdisk114;2 reducevg–d rootvg hdisk114;rmdev–dl hdisk114 –R ;4 hot plug;5 extendvgrootvghdiskXXX(新盘号);6 mirrorvgrootvg;7 bosboot–ad hdiskXXX (新盘号);8 bootlist–M normal –o 检查和设置启动盘。 但是,一切都那么顺利,我就不需要写这个文章了,在第2部,reducevg的时候,先是lg-dumplv 占用,解决以后,有要下umount /oracle 等其他好多个文件系统,我就意识到,这是一个非正常的系统,又是数据库,哪能随便停了让我换系统盘呢,想想办法吧。 首先,你得知道目前系统有点问题,所以操作要小心。 经过尝试多次失败,reducevg报错,于是,reducevg的运行思路,将此任务拆解,使用smit lv 来一个一个的lv进行拆除镜像 Step 1 Step 2

AIX关机重启命令整理

关机 #shutdown #shutdown –F 重启计算机 #shutdown –Fr Aliase,修改重启命令,如shutdown = shutdown –Fr 问题描述: AIX系统的关机命令有shutdown、halt;重启命令有shutdown -Fr和reboot,但是对于这几个命令的正确使用却存在一些误区。 解答: 用shutdown命令停止操作系统是一个最安全最彻底的方法。使用不带参数的shutdown 命令,在停止系统运行之前,他将通过wall命令吧系统即将关闭的信息告诉已登录的所有用户,并且留给1分钟(默认时间,可以更改)时间来完成剩余工作,1分钟后,系统开始调用killall命令杀死人在系统中运行的进程,用sync命令将内存中的缓冲数据保存到硬盘上,再卸载已经安装的文件系统,最后是用halt命令停止系统。 使用halt命令来关闭系统,该命令只能有root用户执行,halt一般是在单用户模式下使用,执行它时,先将数据保存到磁盘上,然后就停止处理器的运行,halt命令不做任何提示,而是直接杀死进程。如果有其他用户已经登录到系统中,就不要执行halt命令。只有除root用户之外的其他所有用户都退出系统之后,才可以执行halt命令,否则会导致用户数据丢失。实际上halt命令也是调用fasthalt命令来停止系统的。当halt命令执行时,它会调用syslogd进程在/var/adm/wtmp文件中写一条关闭系统的记录,同时也记录一条状态为关闭的错误日志信息。做hacmp切换测试时,常使用halt -q命令。 reboot命令可以重新启动系统,但是执行reboot命令之前,必须确保所有的用户已经退出系统,reboot命令一般在单用户模式下使用。虽然使用reboot可以快速重启计算机,但是使用reboot命令比较危险,在多用户模式下很容易使文件系统受损,导致数据丢失,严重时会导致系统无法启动。 有客户在多用户环境下使用reboot做hacmp切换测试,会发现系统无法重启,其实这是合理现象,毕竟reboot不支持多用户模式下的使用。shutdown是一个graceful的关机动作,因而不会引起hacmp的切换。所以在做hacmp切换的测试中需要将其他用户退出后使用halt命令进去测试。 可以使用下面的命令进入单用户模式,也就是维护模式下:#init s 使用shutdown -m命令也可以将系统运行级别从多用户模式下改变到单用户模式,实际上它还是会调用了#init -s命令来完成的。

Apache服务器的安装与配置

Apache服务器的安装与配置 一、安装Apache 双击可执行文件apache_1.3.33-win32-x86-no_src.exe,将Apache服务器软件安装至C:\Apache目录下。 二、设置C:\apache\conf\httpd.donf文件 修改Apache的核心配置文件c:\apache\conf\httpd.conf(说明一点:“#”为Apache的注释符号)。修改方法如下: 1、寻找到ServerName。这里定义你的域名。这样,当Apache Server运行时,你可以在浏览器中访问自己的站点。如果前面有#,记得删除它。 2、寻找到ServerAdmin。这里输入你的E-Mail地址。 (以上两条在安装时应该已经配置好了,所以不必改动,这里介绍一下,主要是为了日后的修改) 3、寻找到。向下有一句Options,去掉后面所有的参数,加一个All(注意区分大小写!A 大写,两个l小写。下同。);接着还有一句Allow Override,也同样去掉后面所有的参数,加一个All。 AllowOverride All Options All Order allow,deny Allow from all 4、寻找到DocumentRoot。这个语句指定你的网站路径,也就是你主页放置的目录。你可以使用默认的,也可以自己指定一个,但记住,这句末尾不要加“/”。此外注意,路径的分隔符在Apache Server里写成“/”。(将DocumentRoot "C:/apache/htdocs"改为DocumentRoot "C:/try") 5、寻找到DirectoryIndex。这就是你站点第一个显示的主页,在index.html的后面加入index.htm index.php index.php3 index.cgi index.pl。注意,每种类型之间都要留一空格!这里添加好了,以后就不用再麻烦了。 6、port(端口号),如果没安装IIS的话,就保持80不要变,否则,就要改一下(因为IIS的WEB服务占据了80),可以改成81等等。 三、Apache的手动启动和停止 Net start apache启动apache服务,Net stop apache停止apache服务。

AIX磁盘更换

情景 1 如果要替换的磁盘已做了镜像,推荐如下步骤: 1. 删除该磁盘上所有逻辑卷的复件,使用 rmlvcopy 命令或 unmirrorvg 命令。 2. 从卷组中删除该磁盘,使用 reducevg 命令。 3. 使用 rmdev 命令删除该磁盘定义。 4. 物理移除该磁盘。如果磁盘不是可热交换的(hot-swappable),可能要求重启系统。 5. 使备用的磁盘可用。如果磁盘是可热交换的(hot-swappble),可运行 cfgmgr;否则,需要重启系统。 6. 把新加的磁盘放入卷组,使用 extendvg 命令。 7. 重建并同步所有逻辑卷的复件,使用 mklvcopy 命令或 mirrorvg 命令。rootvg 由hdisk0和hdisk1做成mirror,hdisk0报故障 #unmirrorvg rootvg hdisk0 #reducevg rootvg hdisk0 #rmdev -l hdisk0 -d 换故障硬盘 #cfgmgr -v 确认新换硬盘物理卷名为hdiskx #lspv #chdev -l hdiskx -a pv=yes #extendvg rootvg hdiskx #mirrorvg rootvg #bosboot -ad /dev/hdiskx #bootlist -m normal hdisk1 hdiskx 重启,系统从hdisk1启动 datavg由hdisk5和hdisk6做成mirror,hdisk6报故障 #unmirrorvg datavg hdisk6 #reducevg datavg hdisk6 #rmdev -l hdisk6 -d 换故障硬盘 #cfgmgr -v 确认新换硬盘物理卷名为hdiskx #lspv #chdev -l hdiskx -a pv=yes #extendvg datavg hdiskx #mirrorvg datavg 情景 2 如果要替换的磁盘没有镜像,但仍在起作用,推荐按以下步骤: 1. 使备用磁盘可用。如果磁盘是可热交换的(hot-swappable),可运行 cfgmgr;否则,需要重启系统。 2. 把新加的磁盘放入卷组,使用 extendvg 命令。

AIX系统常用命令

AIX常用命令 一.目录和文件操作 1.ls命令列出指定目录下的文件,缺省目录为当前目录 #ls -a 列出所有文件,包括隐藏文件 #ls –l 显示文件详细信息 2.pwd显示出当前的工作目录 3.cd改变当前的工作目录 #cd /tmp 进入/tmp 目录 #cd .. 进入上级目录 4.mkdir 建立目录 #mkdir tmp 在当前目录下建立子目录tmp #mkdir -p /tmp/a/b/c 建立目录/tmp/a/b/c ,若不存在目录/tmp/a 及/tmp/a/b 则建立 5.rm 删除文件或目录 - f 删除文件时不作提示 - r 删除目录及其所有子目录 [例子]: #rm file1 删除文件file1 #rm -r /mytmp 删除目录/mytmp 6.cp 拷贝文件 [语法]: cp [ -p ] [ -r ] 文件1 [ 文件2 ...] 目标 文件1(文件2 ...)拷贝到目标上,目标不能与文件同名。 [参数]:

- p 不仅拷贝文件内容,还有修改时间,存取模式,存取控制表 - r 若文件名为目录,则拷贝目录下所有文件及子目录和它们的文件 [例子]: #cp file1 file2 将文件file1 拷贝到文件file2 #cp file1 file2 /tmp 将文件file1 和文件file2 拷贝到目录/tmp 下 #cp -r /tmp /mytmp 将目录/tmp 下所有文件及其子目录拷贝至目录/mytmp 7.mv 移动文件 将文件移动至目标,若目标是文件名,则相当于文件改名 #mv file1 file2 将文件file1 改名为file2 #mv file1 file2 /tmp 将文件file1 和文件file2 移动到目录/tmp 下 8.chmod 文件权限设置 [语法]: chmod [-R] 模式文件. #chmod 777 file1将文件file1存取权限置为所有用户可读可写可执行 #chmod 755 file1 文件的属主对文件file1有可读可写可执行的权限,文件所归属的用户组有可读可执行的权限,其它用户有可读可执行的权限。 9.Chown 文件属性设置 [语法]: chown [-R] 文件属主文件... [参数]: -R 改变所有子目录下所有文件的存取模式 [例子]: chown tom file1 将文件file1 的文件属主改为用户tom chown –R oracle /oracle 将/oracle属主改为用户oracle 10.vi 文本编辑 vi是unix上最常用的文本编辑工具 vi filename :打开或新建文件,并将光标置于第一行首 插入命令:i 从光标所在位置前面开始插入资料

Apache 安装图解

Apache安装图解

一、安装Apache,配置成功一个普通网站服务器 运行下载好的“apache_2.0.55-win32-x86”,出现如下界面: 出现Apache HTTP Server 2.0.55的安装向导界面,点“Next”继续

确认同意软件安装使用许可条例,选择“I accept the terms in the license agreement”,点“Next”继续

将Apache安装到Windows上的使用须知,请阅读完毕后,按“Next”继续 设置系统信息,在Network Domain下填入您的域名(比如:https://www.doczj.com/doc/a04864099.html,),在Server Name下填入您的服务器名称(比如:https://www.doczj.com/doc/a04864099.html,,也就是主机名加上域名),在Administrator's Email Address下填入系统管理员的联系电子邮件地址(比如:yinpeng@https://www.doczj.com/doc/a04864099.html,),上述三条信息仅供参考,其中联系电子邮件地址会在当系统故障时提供给访问者,三条信息均可任意填写,无效的也行。下面有两个选择,图片上选择的是为系统所有用户安装,使用默认的80端口,并作为系统服务自动启动;另外一个是仅为当前用户安装,使用端口8080,手动启动。一般选择如图所示。按“Next”继续。]

选择安装类型,Typical为默认安装,Custom为用户自定义安装,我们这里选择Custom,有更多可选项。按“Next”继续 出现选择安装选项界面,如图所示,左键点选“Apache HTTP Server

2.0.55”,选择“This feature, and all subfeatures, will be installed on local hard drive.”,即“此部分,及下属子部分内容,全部安装在本地硬盘上”。点选“Change...”,手动指定安装目录。 我这里选择安装在“D:\”,各位自行选取了,一般建议不要安装在操作系统所在盘,免得操作系统坏了之后,还原操作把Apache配置文件也清除了。选“OK”继续。

AIX做rootvg软镜像和取消镜像

AIX做rootvg软镜像和取消镜像 # lspv hdisk0 000a1ddc7f36a2f0 rootvg active hdisk1 none None #chdev -l hdisk1 -a pv=clear # chdev -l hdisk1 -a pv=yes hdisk1 changed # lspv hdisk0 000a1ddc7f36a2f0 rootvg active hdisk1 000a1ddcd9e3cc9e None # extendvg rootvg hdisk1 //如果hdisk1内有数据在做extend的时侯,hdisk1里面的东西就没了 #extendvg -f rootvg hdisk1 强制把hdisk1加入到rootvg中 # lspv hdisk0 000a1ddc7f36a2f0 rootvg active hdisk1 000a1ddcd9e3cc9e rootvg active #mirrorvg rootvg hdisk1 # mirrorvg rootvg 0516-1124 mirrorvg: Quorum requirement turned off, reboot system for this to take effect for rootvg. 0516-1126 mirrorvg: rootvg successfully mirrored, user should perform bosboot of system to initialize boot records. Then, user must modify bootlist to include: hdisk0 hdisk1. 查看mirror是否完成了 # lsvg -l rootvg # lsvg -l rootvg //如何查看硬盘是否做过mirror? rootvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT hd5 boot 1 2 2 closed/syncd N/A hd6 paging 2 4 2 open/syncd N/A

AIX最常用命令(中文注释)

AIX常用命令 目录操作 命令名功能描述使用举例 mkdir 创建一个目录mkdir dirname "mkdir yaohc/test" rmdir 删除一个目录rmdir dirname "rmdir yaohc/test" mvdir 移动或重命名一个目录mvdir dir1 dir2 "mvdir test testcopy" cd 改变当前目录cd dirname pwd 显示当前目录的路径名pwd ls 显示当前目录的内容ls -la dircmp 比较两个目录的内容dircmp dir1 dir2 文件操作 命令名功能描述使用举例 cat 显示或连接文件cat filename pg 分页格式化显示文件内容pg filename more 分屏显示文件内容more filename od 显示非文本文件的内容od -c filename cp 复制文件或目录cp file1 file2 rm 删除文件或目录rm filename "rm -r test" mv 改变文件名或所在目录mv file1 file2 "mv copytest copy" ln 联接文件ln -s file1 file2 find 使用匹配表达式查找文件find . -name "*.c" -print

file 显示文件类型file filename 选择操作 命令名功能描述使用举例 head 显示文件的最初几行head -20 filename tail 显示文件的最后几行tail -15 filename cut 显示文件每行中的某些域cut -f1,7 -d: /etc/passwd colrm 从标准输入中删除若干列colrm 8 20 file2 paste 横向连接文件paste file1 file2 diff 比较并显示两个文件的差异diff file1 file2 sed 非交互方式流编辑器sed "s/red/green/g" filename grep 在文件中按模式查找grep "^[a-zA-Z]" filename awk 在文件中查找并处理模式awk '{print $1 $1}' filename sort 排序或归并文件sort -d -f -u file1 uniq 去掉文件中的重复行uniq file1 file2 wc 统计文件的字符数、词数和行数wc filename nl 给文件加上行号nl file1 >file2 安全操作 命令名功能描述使用举例 passwd 修改用户密码passwd chmod 改变文件或目录的权限chmod ug+x filename

AIX操作系统安装

1. AIX操作系统安装 1.1. 安装介质与方式 AIX操作系统的安装方式(Installation Method)有以下四种: 完全覆盖安装:操作系统被安装在rootvg的第一块硬盘上,这将覆盖原系统中所有的系统保留目录。 保留安装:这种安装方式可以保留操作系统的版本不变,同时保留 rootvg上的用户数据,但将覆盖/usr 、/tmp、/var 和/ 目录。用户还可以利用/etc/preserve.list 指定系统安装时需要保留的文件系统。默认的需保留的文件系统为/etc/filesystem 中所列。 升级安装:这种安装方式用于操作系统的升级,这将覆盖/tmp目录。这是系统默认的安装方式。 备份带安装:恢复用mksysb命令生成的安装带中/image.data中指定的文件系统,这种安装方式用于系统(rootvg)的复制。 1.2. BOS(Base Operating System)安装 打开主机电源; 连接好系统终端,把第一张安装介质(磁带、光碟)插入驱动器; 在开机后按<1>(图形终端)进入系统安装画面; 当终端显示如下信息时; ☆☆☆☆☆☆Please define the system console☆☆☆☆☆☆ Type a 1 and press enter to use this terminal as the system console. Type een 1 en druk op enter om deze terminal als de systeemconsole to gebruiken. Skrive tallet 1 og trykk paa enter for aa bruke denne terminalen som systemkonsoll. Pour definir ce terminal comme console systeme, appuyez sur 1puis sur entree. Taste 1 and ansch1iessend die eingabetaste druecken,um diese datenstation als systemkonsole zu verwenden. Prenier I1 tasto 1 ed invio per usare questo terminal como consolo. Escriba 1 y pulse intro para utilizer esta terminal como consola del sistema. a)Tryck paa 1 och sedan paa enter om dy vill att haer terminalen ska vara systemkonsol

AIX&UNIX基本命令

UNIX UNIX(此名称源于以前的多路信息与计算服务——Multiplexed Information and Computing Service,Multics——操作系统)于1969 年由AT&T Bell Labs 发明,是一种健壮、灵活且对开发人员友好的计算环境。UNIX 最初是为PDP 微型计算机的Digital Equipment Corporation(DEC)系列编写的,目前它是最受欢迎的多用户通用操作系统,并在所有计算领域——甚至包括曾被大型机垄断的领域——占据主导地位。 AIX 于1986 年1 月推出,是IBM 的UNIX 操作系统实现。AIX 5L基于标准的开放操作系统,符合The Open Group 的Single UNIX Specification Version 3的要求。它为以各种可伸缩性并发运行的32 位和64 位应用程序提供完全集成支持。AIX 5L 支持IBM eServer p5、IBM eServer pSeries、IBM eServer i5 和IBM RS/6000 服务器产品系列,以及IntelliStation POWER 和RS/6000 工作站。 目录布局 您已经了解了如何在目录中移动并获取清单,现在可以开始研究典型的UNIX 分发版中的目录布局了。您可以通过几种不同的方式来组织UNIX 文件系统。本教程讨论了一些在大多数类UNIX 分发版中常见的根级目录。当然还有其他一些重要的根级目录,但下面这些是最常见的: /home (or /users) /etc /bin /sbin /usr /car /tmp /home 用来存放用户目录。例如,tuser用户位于/home/tuser。 /etc 是用来存储系统范围设置的目录,包括启动脚本和网络配置文件。该目录中的大多数文件都需要使用root 用户进行编辑。 /bin 和/sbin 是用来存储系统可执行文件(比如在本教程中学习的命令)的目录。/sbin 用于存放系统命令,如shutdown,而/bin 用于存放用户命令。 应用程序通常安装在/usr 中。/usr/local/ 中的子目录通常用来包含一些安装的应用程序,而这些应用程序并不属于基本分发版中的一部分。 /var 是用来存放类似日志文件这样的内容的目录,需要不断地对其进行更新和存储。 临时文件存储在/tmp 中。系统中所有的用户都可以对该目录进行写入,并且在一些系统中,会周期性地删除其中的旧文件。 文件 既然您已经知道了如何使用命令行在文件系统中移动,那么现在可以开始对文件进行处理了。本部分内容将介绍如何创建示例文件、复制文件、删除文件,以及查看和更改基本的文件权限。在像UNIX 这样的多用户操作系统中,必须了解所有权和权限的概念。 touch 首先,创建一个空文件,您将在本教程中使用到该文件。touch命令可以用来创建一个空文件(对文件使用touch命令,通常用来更新文件的修改日期和访问日期)。 返回到用户home 目录中的TUTORIAL 目录,并输入下面的命令创建一个文件:

相关主题
相关文档 最新文档