導航:首頁 > 程序命令 > aix創建vg命令

aix創建vg命令

發布時間:2025-03-03 03:59:45

1. 請教,使用外部設備如何遷移AIX的VG

你可以把新lun加入到vg,然後把lv mklv復制到新lun上,sync 數據,使用splitvg拆除鏡像,新lun會生成一個新的vg,然後你隨便exportvg importvg了

2. 怎樣在aix 創建vg

下文將講述使用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
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

3. vg是什麼意思

v卷組VolumeGroup(VG)是計算機上的術語(操作系統的VG概念),一個VG是由許多物理分區組成的(可能來自多個物理卷或硬碟)。雖然這可能容易讓你認為一個VG就是由幾個硬碟組成的(例如/dev/hda和/dev/sda),但是更確切的說,它包含由這些硬碟提供的許多PE(物理分區PhysicalExtents)。卷組=VG(VolumeGroup)IBM將一組物理卷的集合稱為卷組。
卷組的操作:磁碟空間通常在一個卷組內分配AIX中的所有可用磁碟-當作一個組來使用可以export用於與其它的AIX系統連接-高可用性的HACMP系統的第一個VG稱為rootvg
VG也是圖形軟體visualgraph的簡稱VisualGraph是一套強大的交互圖形開發平台,她能非常方便地建造基於圖形的界面、製作各種圖形元件、實現圖形管理、圖形建模、製作監控系統、表單系統、繪圖系統、流程設計、CAD軟體等。她提供功能非常強大的ActiveX核心組件,和其他流行的編程語言共同工作,極大地彌補了這些語言在圖形處理方面的不足。也可以嵌入IE瀏覽器中,實現網上圖形編輯和控制等。
VisualGraph專門處理交互圖形,與具體業務無關,她提供了十分豐富規范的交互事件和圖形控制命令,內置結構簡單開放的腳本語言,使程序員能夠專心編寫後台系統等與圖形無關的部分,體系結構十分清晰。

閱讀全文

與aix創建vg命令相關的資料

熱點內容
如何在伺服器指向域名 瀏覽:415
車床編程可以做刀嗎 瀏覽:518
ln命令源碼 瀏覽:791
用粘液做解壓手套 瀏覽:330
icloud收信伺服器地址 瀏覽:500
編程思考者 瀏覽:453
壓縮機型號用什麼氟利昂 瀏覽:553
農機空氣壓縮機 瀏覽:666
程序員下載歌曲 瀏覽:896
編譯未檢測到模擬器 瀏覽:807
壓縮機每次啟動12分鍾就停 瀏覽:732
creo復制曲面命令 瀏覽:961
程序員戀上女碩士 瀏覽:671
ansys的get命令 瀏覽:990
國外dns蘋果伺服器地址 瀏覽:433
國家職業技術資格證書程序員 瀏覽:654
奇瑞租車app是什麼 瀏覽:101
系統源碼安裝說明 瀏覽:420
命令行加殼 瀏覽:98
解壓時顯示防失效視頻已加密 瀏覽:297