- 論壇徽章:
- 0
|
環(huán)境:p650 aix 5.2.0.6 ha 4.5
想通過ha來管理fast200盤陣上的vg ,但始終只能在一邊應(yīng)用,在另一臺機器varyon后 文件系統(tǒng)類型就變?yōu)???
不知道是否正常?
還有在ha4.5環(huán)境中,vg和lv等是否需要在ha里創(chuàng)建,以前在5.3,5,4等都沒有在ha里建
通過ha創(chuàng)建cluster vg
#smitty hacmp
HACMP
Move cursor to desired item and press Enter.
Cluster Configuration
Cluster Services
Cluster System Management
Cluster Recovery Aids
RAS Support
Cluster System Management
Move cursor to desired item and press Enter.
Cluster Users & Groups
Cluster Logical Volume Manager
Cluster Concurrent Logical Volume Manager
Cluster Physical Volume Manager
Cluster Resource Group Management
Cluster Log Management
HACMP Cluster Services
Cluster Communications Adapter Management
Cluster Applications
Display Event Summaries
Cluster Logical Volume Manager
Move cursor to desired item and press Enter.
List All Shared Volume Groups
Shared Volume Groups
Shared Logical Volumes
Shared File Systems
Synchronize Shared LVM Mirrors
Synchronize a Shared Volume Group Definition
Shared Volume Groups
Move cursor to desired item and press Enter.
Create a Shared Volume Group
Set Characteristics of a Shared Volume Group
Import a Shared Volume Group
Mirror a Shared Volume Group
Unmirror a Shared Volume Group
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Node Names x
x x
x Move cursor to desired item and press Esc+7. x
x ONE OR MORE items can be selected. x
x Press Enter AFTER making all selections. x
x x
x > ibm1 x
x > ibm2 x
x x
x F1=Help F2=Refresh F3=Cancel x
x Esc+7=Select Esc+8=Image Esc+0=Exit x
F1=Help x Enter=Do /=Find n=Find Next x=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Physical Volumes x
x x
x Move cursor to desired item and press Esc+7. x
x ONE OR MORE items can be selected. x
x Press Enter AFTER making all selections. x
x x
x 00033d1a6f27e505 x
x 00033d1a6f27e2c0 x
x > 00033d1a6f277b91 x
x > 00033d1a6f277951 x
x x
x F1=Help F2=Refresh F3=Cancel x
x Esc+7=Select Esc+8=Image Esc+0=Exit x
F1=Help x Enter=Do /=Find n=Find Next x=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Warning :
Changing the volume group major number may result
in the command being unable to execute
successfully on a node that does not have the
major number currently available. Please check
for a commonly available major number on all nodes
before changing this setting.
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
ibm1: datavg2
ibm1: ibm2: Volume group datavg2 has been updated.
ibm1: ibm1: Volume group datavg2 has been updated.
成功創(chuàng)建cluster vg
# lspv
hdisk0 00033d2a4300829f rootvg active
hdisk1 00033d2a984c5b22 rootvg active
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None
hdisk8 none None
hdisk9 none None
hdisk10 none None
hdisk11 none None
hdisk12 none None
hdisk13 none None
hdisk14 00033d1a6f26c37a datavg1
hdisk15 00033d1a6f26c5b9 datavg1
hdisk16 00033d1a6f277951 datavg2
hdisk17 00033d1a6f277b91 datavg2
hdisk18 00033d1a6f27e2c0 None
hdisk19 00033d1a6f27e505 None
一節(jié)點可以正常認到datavg2
# rsh ibm2 lspv
hdisk0 00033d1a1cb56e9f rootvg active
hdisk1 00033d1a69eef3c6 rootvg active
hdisk2 00033d1a6f26c37a datavg1 active
hdisk3 00033d1a6f26c5b9 datavg1 active
hdisk4 00033d1a6f277951 None
hdisk5 00033d1a6f277b91 None
hdisk6 00033d1a6f27e2c0 datavg3 active
hdisk7 00033d1a6f27e505 datavg3 active
hdisk8 none None
hdisk9 none None
hdisk10 none None
hdisk11 none None
hdisk12 none None
hdisk13 none None
hdisk14 none None
hdisk15 none None
hdiskpower0 00033d1ad54cacb0 emcvg1 active
hdiskpower1 none None
hdisk16 none None
hdisk17 none None
hdisk18 none None
hdisk19 none None
hdiskpower2 none None
2節(jié)點認不到datvg2
然后在一節(jié)點上創(chuàng)建文件系統(tǒng)
# smitty jfs2
Enhanced Journaled File Systems
Move cursor to desired item and press Enter.
Add an Enhanced Journaled File System
Add an Enhanced Journaled File System on a Previously Defined Logical Volume
Change / Show Characteristics of an Enhanced Journaled File System
Remove an Enhanced Journaled File System
Defragment an Enhanced Journaled File System
List Snapshots for an Enhanced Journaled File System
Create Snapshot for an Enhanced Journaled File System
Mount Snapshot for an Enhanced Journaled File System
Remove Snapshot for an Enhanced Journaled File System
Unmount Snapshot for an Enhanced Journaled File System
COMMAND STATUS
Add an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Volume group name datavg2
SIZE of file system
Unit Size Megabytes +
* Number of units [10] #
* MOUNT POINT [/test1]
Mount AUTOMATICALLY at system restart? no +
PERMISSIONS read/write +
Mount OPTIONS [] +
Block Size (bytes) 4096 +
Inline Log? no +
Inline Log size (MBytes) [] #
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
File system created successfully.
65328 kilobytes total disk space.
New File System size is 131072
創(chuàng)建可一個10m的文件系統(tǒng).
# lspv
hdisk0 00033d2a4300829f rootvg active
hdisk1 00033d2a984c5b22 rootvg active
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None
hdisk8 none None
hdisk9 none None
hdisk10 none None
hdisk11 none None
hdisk12 none None
hdisk13 none None
hdisk14 00033d1a6f26c37a datavg1
hdisk15 00033d1a6f26c5b9 datavg1
hdisk16 00033d1a6f277951 datavg2 active
hdisk17 00033d1a6f277b91 datavg2 active
hdisk18 00033d1a6f27e2c0 None
hdisk19 00033d1a6f27e505 None
# lsvg -l datavg2
datavg2:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv01 jfs2log 1 1 1 closed/syncd N/A
fslv01 jfs2 1 1 1 closed/syncd /test1
# varyoffvg datavg2
# rsh ibm2 lspv
hdisk0 00033d1a1cb56e9f rootvg active
hdisk1 00033d1a69eef3c6 rootvg active
hdisk2 00033d1a6f26c37a datavg1 active
hdisk3 00033d1a6f26c5b9 datavg1 active
hdisk4 00033d1a6f277951 None
hdisk5 00033d1a6f277b91 None
hdisk6 00033d1a6f27e2c0 datavg3 active
hdisk7 00033d1a6f27e505 datavg3 active
hdisk8 none None
hdisk9 none None
hdisk10 none None
hdisk11 none None
hdisk12 none None
hdisk13 none None
hdisk14 none None
hdisk15 none None
hdiskpower0 00033d1ad54cacb0 emcvg1 active
hdiskpower1 none None
hdisk16 none None
hdisk17 none None
hdisk18 none None
hdisk19 none None
hdiskpower2 none None
# importvg
0516-604 importvg: Physical volume name not entered.
Usage: importvg [ [ [-V MajorNumber] [-y VGname] [-f] [-c] [-x] ] | [-L VGname] ]
[-n] [-F] [-R] PVname
Imports the definition of a volume group.
# rsh importvg -V 62 -y datavg2 hdisk4
host: name importvg NOT FOUND
# rsh ibm2 importvg -V 62 -y datavg2 hdisk4
0516-530 synclvodm: Logical volume name loglv01 changed to loglv04.
0516-530 synclvodm: Logical volume name fslv01 changed to fslv02.
datavg2
成功導(dǎo)入datavg2卷組,但邏輯卷被改名,應(yīng)該是因為節(jié)點二有重名的lv
# rsh ibm2 lspv
hdisk0 00033d1a1cb56e9f rootvg active
hdisk1 00033d1a69eef3c6 rootvg active
hdisk2 00033d1a6f26c37a datavg1 active
hdisk3 00033d1a6f26c5b9 datavg1 active
hdisk4 00033d1a6f277951 datavg2 active
hdisk5 00033d1a6f277b91 datavg2 active
hdisk6 00033d1a6f27e2c0 datavg3 active
hdisk7 00033d1a6f27e505 datavg3 active
hdisk8 none None
hdisk9 none None
hdisk10 none None
hdisk11 none None
hdisk12 none None
hdisk13 none None
hdisk14 none None
hdisk15 none None
hdiskpower0 00033d1ad54cacb0 emcvg1 active
hdiskpower1 none None
hdisk16 none None
hdisk17 none None
hdisk18 none None
hdisk19 none None
hdiskpower2 none None
datavg2 在二節(jié)點激活
# rsh ibm2 lsvg -l datavg2
datavg2:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv04 jfs2log 1 1 1 closed/syncd N/A
fslv02 jfs2 1 1 1 closed/syncd /test1
# rsh ibm2 mount /test1
# rsh ibm2 df
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 1048576 884400 16% 2595 1% /
/dev/hd2 4325376 647344 86% 35638 7% /usr
/dev/hd9var 917504 536488 42% 1005 1% /var
/dev/hd3 1048576 266600 75% 327 1% /tmp
/dev/hd1 917504 888168 4% 27 1% /home
/proc - - - - - /proc
/dev/hd10opt 1310720 1097616 17% 302 1% /opt
/dev/oracle 16515072 5899216 65% 63121 4% /oracle/o9i
/dev/emcdata1 65536000 24572664 63% 30 1% /oradata1
/dev/emcdata2 40960000 28964112 30% 23 1% /oradata2
/dev/emcdata3 65536000 34104688 48% 16 1% /oradata3
/dev/fslv01 62914560 62586960 1% 8 1% /oraback
/dev/fslv00 209715200 84388768 60% 117 1% /Fast200ora2
/dev/lv01 6160384 2483880 60% 298 1% /ptf
/dev/fslv02 131072 130392 1% 4 1% /test1
也可以成功
#rsh ibm2 varyoffvg datavg2
#varyonvg datavg2
# lsvg -l datavg2
datavg2:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv04 ??? 1 1 1 closed/syncd N/A
fslv02 ??? 1 1 1 closed/syncd N/A
#
但在切換后type就變成???了。不知道是否正常? |
|