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新增磁碟並在上面建立檔案系統的主要步驟AI
- AIX系統擴vg操作步驟AI
- aix上用smit建立檔案系統AIMIT
- AIX 5L:第三步——在已經建立的lv上建立檔案系統AI
- AIX 系統建立邏輯卷、新增檔案系統並掛載使用AI
- aix檔案系統擴容AI
- AIX刪除檔案系統AI
- 轉-AIX檔案系統滿AI
- AIX檔案系統調整AI
- AIX巡檢步驟AI
- aix擴充套件檔案系統AI套件
- aix 擴充套件檔案系統AI套件
- Linux系統中增加Swap分割槽檔案步驟方法Linux
- win10 更改host檔案步驟_win10系統如何修改host檔案Win10
- 檔案系統(三):嵌入式、計算機系統啟動流程與步驟計算機
- AIX 修改系統檔案 /etc/security/limitsAIMIT
- 【AIX 學習】檔案系統--監視AI
- 【AIX 學習】檔案系統之 PROCAI
- AIX 檔案系統的loglvAI
- 文字檔案輸入步驟
- win10重灌系統保留個人檔案和應用操作步驟Win10
- Laravel5.5 新專案建立步驟Laravel
- AIX重新認儲存步驟AI
- AIX基本安裝步驟(轉)AI
- AIX5.3系統檔案大小的限制AI
- aix中檢視檔案系統的型別AI型別
- AIX 5.1檔案系統型別簡介AI型別
- AIX檔案系統滿的問題分析AI
- 【Solaris】Solaris檔案系統管理1 UFS檔案系統的建立
- 【Solaris】Solaris檔案系統管理3 ZFS檔案系統的建立
- Win10怎樣修復系統引導檔案_Win10修復系統引導檔案的步驟Win10
- 何在Mac系統上建立大檔案?教你在Mac系統建立大檔案的方法Mac
- Oracle檢視trace檔案步驟Oracle
- AIX作業系統下的用磁帶進行備份操作步驟AI作業系統
- HP-UNIX 建立檔案系統
- FreeBSD建立檔案系統(轉)
- mavenWeb工程建立步驟MavenWeb
- AIX日誌檔案系統(Journaled File System)管理AI