AIX 建立檔案系統步驟
建立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 crfs包含沒有提前建立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.修改檔案大小
# 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
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 crfs包含沒有提前建立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.修改檔案大小
# 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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21605631/viewspace-710292/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AIX系統擴vg操作步驟AI
- aix檔案系統擴容AI
- win10 更改host檔案步驟_win10系統如何修改host檔案Win10
- 檔案系統(三):嵌入式、計算機系統啟動流程與步驟計算機
- 何在Mac系統上建立大檔案?教你在Mac系統建立大檔案的方法Mac
- Laravel5.5 新專案建立步驟Laravel
- Win10怎樣修復系統引導檔案_Win10修復系統引導檔案的步驟Win10
- HP-UNIX 建立檔案系統
- 『學了就忘』Linux檔案系統管理 — 64、磁碟配額的配置步驟Linux
- win10怎麼顯示隱藏檔案_Win10系統顯示隱藏檔案步驟Win10
- win7系統下怎麼開啟PHP檔案 win7開啟PHP檔案的步驟Win7PHP
- java中呼叫dll檔案的步驟Java
- 搭建CRM系統的步驟
- Linux作業系統邏輯盤卷管理LVM建立步驟(轉)Linux作業系統LVM
- win10重灌系統保留個人檔案和應用操作步驟Win10
- win10怎麼隱藏最近使用的檔案_win10系統隱藏最近常用檔案步驟Win10
- win10隔離檔案恢復步驟_w10系統怎樣恢復隔離的檔案Win10
- AIX系統日誌AI
- win10系統.lrc格式怎麼開啟_win10系統.lrc檔案開啟操作步驟Win10
- win10系統中檔案拒絕訪問怎麼回事 win10系統檔案拒絕訪問的解決步驟Win10
- 【AIX-PS】AIX系統ps命令詳解AI
- Linux系統中建立檔案常用的方法!Linux
- git 查詢大檔案、刪除大檔案詳細步驟Git
- VisualEffectGraph基礎操作 --建立VEG專案步驟講解
- 專案步驟
- win10怎樣強制刪除dll檔案 win10系統強制刪除dll檔案的步驟Win10
- Win10系統怎樣關閉Windows檔案保護 win10關閉windows檔案保護的步驟Win10Windows
- 電腦window10怎麼清理垃圾 win10系統清理垃圾檔案的步驟Win10
- 關於檔案系統在建立目錄檔案和普通檔案時的區別
- LVM建立的詳細步驟LVM
- github中建立倉庫步驟Github
- Linux系統下編譯Openssl 步驟:Linux編譯
- Linux系統篇-檔案系統&虛擬檔案系統Linux
- 在Linux中,如何建立檔案系統的備份?Linux
- 檔案和檔案系統
- win10系統中登錄檔如何開啟 win10系統開啟登錄檔的步驟Win10
- AIX作業系統安全加固AI作業系統
- ArgoWorkflow教程(七)---高效的步驟間檔案共享策略Go
- 用SQL建立索引的方法步驟SQL索引