導航:首頁 > 程序命令 > 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命令相關的資料

熱點內容
python中刪除csv 瀏覽:591
oracle創建表空間命令 瀏覽:14
十塊錢五分鍾的解壓人偶 瀏覽:934
學android看什麼書 瀏覽:376
網路加密了手機上怎樣顯示 瀏覽:805
文章被以什麼形式存放在伺服器中 瀏覽:708
炮兵命令 瀏覽:116
網商園app怎麼樣啊 瀏覽:325
app字體大小怎麼設置在哪 瀏覽:432
華為app選擇網路模式哪裡找 瀏覽:321
策劃優化伺服器是什麼 瀏覽:238
聯想的組織伺服器怎麼連接 瀏覽:218
程序員千里貴州頭條 瀏覽:672
阿里雲伺服器199一年 瀏覽:688
支點app裡面有幣怎麼辦 瀏覽:65
程序員ps 瀏覽:720
滴滴app順風車怎麼更換車輛信息 瀏覽:22
胡萊三國怎麼更換伺服器 瀏覽:816
木解壓神器中的鋼琴彈出兒童歌曲 瀏覽:530
買單吧app付款怎麼退款 瀏覽:648