AIX LV操作
建立LV
1.查詢VG空間情況
# lsvg bkvg
VOLUME GROUP: bkvg VG IDENTIFIER: 0009a8ea0000d60000000132aa4ee783
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 6396 (818688 megabytes)
MAX LVs: 512 FREE PPs: 6396 (818688 megabytes)
LVs: 0 USED PPs: 0 (0 megabytes)
OPEN LVs: 0 QUORUM: 3 (Enabled)
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 4 AUTO ON: yes
MAX PPs per VG: 524288 MAX PVs: 1024
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
2.建立一個LV
# smitty mklv
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Logical volume NAME [archlv01]
* VOLUME GROUP name bkvg
* Number of LOGICAL PARTITIONS [250] #
PHYSICAL VOLUME names [hdisk10 hdisk11 hdisk12 hdisk13] +
Logical volume TYPE [jfs2] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [] #
to use for allocation
Number of COPIES of each logical 1 +
partition
Mirror Write Consistency? active +
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
RELOCATE the logical volume during yes +
reorganization?
Logical volume LABEL []
MAXIMUM NUMBER of LOGICAL PARTITIONS [512] #
Enable BAD BLOCK relocation? yes +
SCHEDULING POLICY for writing/reading parallel +
logical partition copies
Enable WRITE VERIFY? no +
File containing ALLOCATION MAP []
Stripe Size? [Not Striped] +
Serialize IO? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
archlv01
3.建立掛載的目錄
# mkdir /arch
# mkdir /backup
# chown -R oracle:dba /arch
# chown -R oracle:dba /backup
4.建立檔案系統
# smitty crfs
Add an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name archlv01 +
* MOUNT POINT [/arch]
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Block Size (bytes) 4096 +
Logical Volume for Log +
Inline Log size (MBytes) [] #
Extended Attribute Format Version 1 +
ENABLE Quota Management? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
File system created successfully.
32766796 kilobytes total disk space.
New File System size is 65536000
5.進行掛載
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.91 5% 6616 2% /
/dev/hd2 3.00 1.06 65% 42735 15% /usr
/dev/hd9var 0.88 0.34 62% 7398 9% /var
/dev/hd3 10.00 9.33 7% 3158 1% /tmp
/dev/fwdump 0.12 0.12 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.12 0.05 60% 342 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.50 0.19 62% 8437 16% /opt
/dev/fslv00 20.00 6.97 66% 21239 2% /oracle
/dev/fslv01 1070.00 87.01 92% 28409 1% /oradata
# mount /arch
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.91 5% 6616 2% /
/dev/hd2 3.00 1.06 65% 42735 15% /usr
/dev/hd9var 0.88 0.34 62% 7398 9% /var
/dev/hd3 10.00 9.33 7% 3159 1% /tmp
/dev/fwdump 0.12 0.12 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.12 0.05 60% 342 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.50 0.19 62% 8437 16% /opt
/dev/fslv00 20.00 6.97 66% 21239 2% /oracle
/dev/fslv01 1070.00 87.01 92% 28409 1% /oradata
/dev/archlv01 31.25 31.24 1% 4 1% /arch
6.擴LV大小
# smitty extendlv
Increase the Size of a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name archlv01
* Number of ADDITIONAL logical partitions [2000] #
PHYSICAL VOLUME names [hdisk10 hdisk11 hdisk12 hdisk13] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [1024] #
to use for allocation
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
File containing ALLOCATION MAP []
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: no stderr: no
Before command completion, additional instructions may appear below.
COMMAND STATUS
Command: OK stdout: no stderr: no
Before command completion, additional instructions may appear below.
7.修改檔案大小
# smitty chfs
Change / Show Characteristics of an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
File system name /arch
NEW mount point [/arch]
SIZE of file system
Unit Size Gigabytes +
Number of units [280] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Block Size (bytes) 4096
Inline Log? no
Inline Log size (MBytes) [0] #
Extended Attribute Format [v1]
ENABLE Quota Management? no +
Allow Small Inode Extents? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 587202560
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 587202560[@more@]
1.查詢VG空間情況
# lsvg bkvg
VOLUME GROUP: bkvg VG IDENTIFIER: 0009a8ea0000d60000000132aa4ee783
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 6396 (818688 megabytes)
MAX LVs: 512 FREE PPs: 6396 (818688 megabytes)
LVs: 0 USED PPs: 0 (0 megabytes)
OPEN LVs: 0 QUORUM: 3 (Enabled)
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 4 AUTO ON: yes
MAX PPs per VG: 524288 MAX PVs: 1024
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
2.建立一個LV
# smitty mklv
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Logical volume NAME [archlv01]
* VOLUME GROUP name bkvg
* Number of LOGICAL PARTITIONS [250] #
PHYSICAL VOLUME names [hdisk10 hdisk11 hdisk12 hdisk13] +
Logical volume TYPE [jfs2] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [] #
to use for allocation
Number of COPIES of each logical 1 +
partition
Mirror Write Consistency? active +
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
RELOCATE the logical volume during yes +
reorganization?
Logical volume LABEL []
MAXIMUM NUMBER of LOGICAL PARTITIONS [512] #
Enable BAD BLOCK relocation? yes +
SCHEDULING POLICY for writing/reading parallel +
logical partition copies
Enable WRITE VERIFY? no +
File containing ALLOCATION MAP []
Stripe Size? [Not Striped] +
Serialize IO? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
archlv01
3.建立掛載的目錄
# mkdir /arch
# mkdir /backup
# chown -R oracle:dba /arch
# chown -R oracle:dba /backup
4.建立檔案系統
# smitty crfs
Add an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name archlv01 +
* MOUNT POINT [/arch]
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Block Size (bytes) 4096 +
Logical Volume for Log +
Inline Log size (MBytes) [] #
Extended Attribute Format Version 1 +
ENABLE Quota Management? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
File system created successfully.
32766796 kilobytes total disk space.
New File System size is 65536000
5.進行掛載
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.91 5% 6616 2% /
/dev/hd2 3.00 1.06 65% 42735 15% /usr
/dev/hd9var 0.88 0.34 62% 7398 9% /var
/dev/hd3 10.00 9.33 7% 3158 1% /tmp
/dev/fwdump 0.12 0.12 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.12 0.05 60% 342 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.50 0.19 62% 8437 16% /opt
/dev/fslv00 20.00 6.97 66% 21239 2% /oracle
/dev/fslv01 1070.00 87.01 92% 28409 1% /oradata
# mount /arch
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.91 5% 6616 2% /
/dev/hd2 3.00 1.06 65% 42735 15% /usr
/dev/hd9var 0.88 0.34 62% 7398 9% /var
/dev/hd3 10.00 9.33 7% 3159 1% /tmp
/dev/fwdump 0.12 0.12 1% 4 1% /var/adm/ras/platform
/dev/hd1 0.12 0.05 60% 342 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.50 0.19 62% 8437 16% /opt
/dev/fslv00 20.00 6.97 66% 21239 2% /oracle
/dev/fslv01 1070.00 87.01 92% 28409 1% /oradata
/dev/archlv01 31.25 31.24 1% 4 1% /arch
6.擴LV大小
# smitty extendlv
Increase the Size of a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* LOGICAL VOLUME name archlv01
* Number of ADDITIONAL logical partitions [2000] #
PHYSICAL VOLUME names [hdisk10 hdisk11 hdisk12 hdisk13] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [1024] #
to use for allocation
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
File containing ALLOCATION MAP []
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: no stderr: no
Before command completion, additional instructions may appear below.
COMMAND STATUS
Command: OK stdout: no stderr: no
Before command completion, additional instructions may appear below.
7.修改檔案大小
# smitty chfs
Change / Show Characteristics of an Enhanced Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
File system name /arch
NEW mount point [/arch]
SIZE of file system
Unit Size Gigabytes +
Number of units [280] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Block Size (bytes) 4096
Inline Log? no
Inline Log size (MBytes) [0] #
Extended Attribute Format [v1]
ENABLE Quota Management? no +
Allow Small Inode Extents? no +
F1=Help lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkF4=List
Esc+5=Reset x Running command... xEsc+8=Image
Esc+9=Shell mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
COMMAND STATUS
Command: running stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 587202560
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 587202560[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21605631/viewspace-1056130/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AIX中PV,VG,LV及FS常用相關命令AI
- AIX系統擴vg操作步驟AI
- AIX操作相關常用命令整理AI
- 【伺服器資料恢復】AIX系統環境下LV被破壞如何恢復資料?伺服器資料恢復AI
- 【AIX】AIX程式監控工具AI
- AIX VGDAAI
- LV中的Facade
- 【AIX-PS】AIX系統ps命令詳解AI
- Install python on AIX 7PythonAI
- AIX掛載NFSAINFS
- AIX_EXT_VGAI
- aix lvm big vgAILVM
- 【AIX】記憶體AI記憶體
- aix升級opensshAI
- 擴充和縮小LV
- IBM AIX儲存層結構分析+aix常用命令IBMAI
- 【AIX】AIX7.1 C編譯環境部署指導說明AI編譯
- AIX的yum安裝AI
- AIX系統日誌AI
- AIX相關管理命令AI
- 10g RAC on AIXAI
- AIX基礎教程(zt)AI
- oracle xtts遷移 AIX to LinuxOracleTTSAILinux
- AIX中的裸裝置AI
- lv高仿包包一千多貴嗎
- 高仿lv包在哪裡可以買
- aix安裝oracle客戶端AIOracle客戶端
- aix檔案系統擴容AI
- AIX作業系統安全加固AI作業系統
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- IBM /AIX 環境快速部署MySQLIBMAIMySql
- 揭祕高仿包包Lv哪裡可以買
- ORACLE for aix 11.2.0.1 DATAPUMP expdp之BUG 9470768OracleAI
- 安裝c, c++編譯器 on AIXC++編譯AI
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- AIX6.1下安裝及配置VNCAIVNC
- 通用數字鐳射感測器LV-NEO系列
- linux系統lvm中lv使用空間的調整LinuxLVM
- oracle aix平臺19c rac互信不通案例OracleAI