AIX 5L:第一步——建立VG
最近在AIX 5L上安裝ORACLE 10G,需要先劃空間,下文將講述使用smit建立vg的過程
shell>smitty mkvg:
Move cursor to desired item and press Enter.
Add an Original Volume Group
Add a Big Volume Group
Add a Scalable Volume Group
選擇第一項即可,第2和第3項都是在增加了vg容量作出了調整,但是本文是測試,不需要多大的空間,也沒有那麼多的pv供選擇。
預設情況下是第一項,加車即可
回車後
Add an Original Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
VOLUME GROUP name [oradata]
Physical partition SIZE in megabytes 8 +
* PHYSICAL VOLUME names [hdisk2] +
Force the creation of a volume group? no +
Activate volume group AUTOMATICALLY yes +
at system restart?
Volume Group MAJOR NUMBER [] +#
Create VG Concurrent Capable? no +
按兩次回車確認
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
0516-1208 /usr/sbin/mkvg: Warning, The Physical Partition Size of 8 requires the
creation of 35762 partitions for hdisk4. The system limitation is 16256
physical partitions per disk at a factor value of 16. Specify a larger
Physical Partition Size or a larger factor value in order create a
volume group on this disk.
0516-862 /usr/sbin/mkvg: Unable to create volume group.
暈,提示要加大pp的大小,用F3退回
因為普通vg要求 多隻能含有16256個pp,因為目前的磁碟空間是35762*8/1024約為280G
從pv上看大小,大致也可以驗證這一點:
[tydic91:root:/]#i=$((35762*8))
[tydic91:root:/]#echo $i
286096
[tydic91:root:/]#lspv hdisk4
PHYSICAL VOLUME: hdisk4 VOLUME GROUP: oradata
PV IDENTIFIER: 005f555d8f66431e VG IDENTIFIER 005f555d00004c000000012ebf74ac0f
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 512 megabyte(s) LOGICAL VOLUMES: 0
TOTAL PPs: 558 (285696 megabytes) VG DESCRIPTORS: 2
FREE PPs: 558 (285696 megabytes) HOT SPARE: no
USED PPs: 0 (0 megabytes) MAX REQUEST: 256 kilobytes
FREE DISTRIBUTION: 112..112..111..111..112
USED DISTRIBUTION: 00..00..00..00..00
hdisk4為280G左右
16<285696/16256=17<32
因此,其最小大小應該為32M
測試下:
1)刪除VG組
[tydic91:root:/]#lspv
hdisk0 005f555d8ece14ea rootvg active
hdisk1 005f555d7afe4fe8 rootvg active
hdisk2 005f555d8f6640f8 None
hdisk3 005f555d8f66420a None
hdisk4 005f555d8f66431e oradata active
[tydic91:root:/]#varyoffvg oradata
[tydic91:root:/]#lspv
hdisk0 005f555d8ece14ea rootvg active
hdisk1 005f555d7afe4fe8 rootvg active
hdisk2 005f555d8f6640f8 None
hdisk3 005f555d8f66420a None
hdisk4 005f555d8f66431e oradata
[tydic91:root:/]#exportvg oradata
[tydic91:root:/]#lspv
hdisk0 005f555d8ece14ea rootvg active
hdisk1 005f555d7afe4fe8 rootvg active
hdisk2 005f555d8f6640f8 None
hdisk3 005f555d8f66420a None
hdisk4 005f555d8f66431e None
2)以32M建立VG
再以32M建立
VOLUME GROUP name [oradata]
Physical partition SIZE in megabytes 32 +
* PHYSICAL VOLUME names [hdisk2] +
Force the creation of a volume group? no +
Activate volume group AUTOMATICALLY yes +
at system restart?
Volume Group MAJOR NUMBER [] +#
Create VG Concurrent Capable? no +
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
oradata
果然,32M不存在這個問題
3)最後重複第2步,將卷組名設定為oradatavg,PP大小為64M
VOLUME GROUP name [oradata]
Physical partition SIZE in megabytes 64 +
* PHYSICAL VOLUME names [hdisk2] +
Force the creation of a volume group? yes +
Activate volume group AUTOMATICALLY yes +
at system restart?
Volume Group MAJOR NUMBER [] +#
Create VG Concurrent Capable? no +
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
oradatavg
[tydic91:root:/]#lspv
hdisk0 005f555d8ece14ea rootvg active
hdisk1 005f555d7afe4fe8 rootvg active
hdisk2 005f555d8f6640f8 oradatavg active
hdisk3 005f555d8f66420a None
hdisk4 005f555d8f66431e None
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12350275/viewspace-689880/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AIX_EXT_VGAI
- aix lvm big vgAILVM
- AIX系統擴vg操作步驟AI
- AIX中PV,VG,LV及FS常用相關命令AI
- 元件化第一步,建立私有Pod元件化
- 【AIX】AIX程式監控工具AI
- AIX VGDAAI
- 【AIX-PS】AIX系統ps命令詳解AI
- 職場暢行:第一步 建立職場思考模型模型
- 使用CocoaPods建立自己的私有庫-iOS元件化第一步iOS元件化
- Install python on AIX 7PythonAI
- AIX掛載NFSAINFS
- 【AIX】記憶體AI記憶體
- aix升級opensshAI
- IBM AIX儲存層結構分析+aix常用命令IBMAI
- 【AIX】AIX7.1 C編譯環境部署指導說明AI編譯
- Linux作業系統中分割槽格式轉換LVM格式及多磁碟建立PV、VG、LVLinux作業系統LVM
- AIX的yum安裝AI
- AIX系統日誌AI
- AIX相關管理命令AI
- 10g RAC on AIXAI
- AIX基礎教程(zt)AI
- PyCharm入門第一步:建立並執行第一個Python專案PyCharmPython
- oracle xtts遷移 AIX to LinuxOracleTTSAILinux
- AIX中的裸裝置AI
- PyCharm入門第一步(四):建立和執行第一個Django專案PyCharmDjango
- aix安裝oracle客戶端AIOracle客戶端
- aix檔案系統擴容AI
- AIX作業系統安全加固AI作業系統
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- IBM /AIX 環境快速部署MySQLIBMAIMySql
- Linux下共享VG改變活動狀態Linux
- ORACLE for aix 11.2.0.1 DATAPUMP expdp之BUG 9470768OracleAI
- 【手把手帶你擼一個腳手架】第一步, 建立第一個命令
- Newbe.Claptrap 框架入門,第一步 —— 建立專案,實現簡易購物車APT框架
- 教你吧GV發簡訊充分VG不回你即可
- 爬取第一步
- 安裝c, c++編譯器 on AIXC++編譯AI
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI