AIX目錄線上擴容
早上巡檢發現資料庫歸檔日誌目錄空間free是0,因歸檔日誌滿造成資料庫掛起,所以準備對檔案系統進行擴容。
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 5.00 4.90 3% 7024 1% /
/dev/hd2 20.00 14.77 27% 57946 2% /usr
/dev/hd9var 10.00 9.37 7% 7454 1% /var
/dev/hd3 15.00 14.41 4% 3290 1% /tmp
/dev/hd1 6.00 5.01 17% 1873 1% /home
/proc - - - - - /proc
/dev/hd10opt 15.00 14.62 3% 10242 1% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/fslv00 10.00 9.20 8% 2876 1% /sapmnt/BWP
/dev/lv_oracle 0.50 0.50 1% 47 1% /oracle
/dev/BWP_oraarch 50.00 0.0 100% 279 1% /oracle/BWP/oraarch
檢視當前活動的卷,只有兩個,經確認資料庫歸檔日誌目錄在ORAVG捲上。
# lsvg -o
oravg
rootvg
進一步詳細檢視ORAVG卷的資訊
# lsvg -l oravg
oravg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_oracle jfs2 2 2 1 open/syncd /oracle
client jfs2 2 2 1 open/syncd /oracle/client
stage_102_64 jfs2 28 28 1 open/syncd /oracle/stage/102_64
BWP jfs2 20 20 1 open/syncd /oracle/BWP
BWP_102_64 jfs2 36 36 1 open/syncd /oracle/BWP/102_64
BWP_origlogA jfs2 2 2 1 open/syncd /oracle/BWP/origlogA
BWP_origlogB jfs2 2 2 1 open/syncd /oracle/BWP/origlogB
BWP_mirrlogA jfs2 2 2 1 open/syncd /oracle/BWP/mirrlogA
BWP_mirrlogB jfs2 2 2 1 open/syncd /oracle/BWP/mirrlogB
BWP_oraarch jfs2 200 200 1 open/syncd /oracle/BWP/oraarch
發現當前目錄的PPS大小為200
3、# lsvg oravg
VOLUME GROUP: oravg VG IDENTIFIER: 00c6abcf00004c000000012d038039cb
VG STATE: active PP SIZE: 256 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 7191 (1840896 megabytes)
MAX LVs: 512 FREE PPs: 2589 (582912 megabytes)
LVs: 18 USED PPs: 4602 (1257984 megabytes)
OPEN LVs: 18 QUORUM: 5 (Enabled)
TOTAL PVs: 9 VG DESCRIPTORS: 9
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 9 AUTO ON: no
MAX PPs per VG: 130048
MAX PPs per PV: 1016 MAX PVs: 128
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
檢視oravg卷組資訊可知每個PPS大小為256M,目前oravg還剩2589個PPS,共計662784M;
4、
擴充套件檔案系統的空間
使用命令 # chfs -a size=+50G /oracle/BWP/oraarch #意思是給/oracle/BWP/oraarch增加50G的空間(注意G是大寫)
執行完再lsvg 發現free pp size 沒有增加,但是用smitty chfs 來做的時候
發現,增加的 size 在/oracle/BWP/oraarch上已經體現了。
使用smitty chfs來擴容的過程:
#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 /oracle/BWP/oraarch
NEW mount point [/oracle/BWP/oraarch]
SIZE of file system
Unit Size Megabytes +
Number of units [79872] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? no +
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 +
we will see result:
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 131072 #擴容後包含已有空間的容量
5、再檢查一下看新增上沒有
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 5.00 4.90 3% 7024 1% /
/dev/hd2 20.00 14.77 27% 57935 2% /usr
/dev/hd9var 10.00 9.37 7% 7454 1% /var
/dev/hd3 15.00 14.41 4% 3381 1% /tmp
/dev/hd1 6.00 5.01 17% 1873 1% /home
/proc - - - - - /proc
/dev/hd10opt 15.00 14.62 3% 10242 1% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/fslv00 10.00 9.20 8% 2876 1% /sapmnt/BWP
/dev/lv_oracle 0.50 0.50 1% 47 1% /oracle
/dev/BWP 5.00 4.55 10% 12348 2% /oracle/BWP
/dev/BWP_102_64 9.00 4.84 47% 22069 2% /oracle/BWP/102_64
/dev/BWP_mirrlogA 0.50 0.40 20% 6 1% /oracle/BWP/mirrlogA
/dev/BWP_mirrlogB 0.50 0.40 20% 6 1% /oracle/BWP/mirrlogB
/dev/BWP_oraarch 128.00 99.82 23% 663 1% /oracle/BWP/oraarch
好了,一切正常,擴容成功。
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 5.00 4.90 3% 7024 1% /
/dev/hd2 20.00 14.77 27% 57946 2% /usr
/dev/hd9var 10.00 9.37 7% 7454 1% /var
/dev/hd3 15.00 14.41 4% 3290 1% /tmp
/dev/hd1 6.00 5.01 17% 1873 1% /home
/proc - - - - - /proc
/dev/hd10opt 15.00 14.62 3% 10242 1% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/fslv00 10.00 9.20 8% 2876 1% /sapmnt/BWP
/dev/lv_oracle 0.50 0.50 1% 47 1% /oracle
/dev/BWP_oraarch 50.00 0.0 100% 279 1% /oracle/BWP/oraarch
檢視當前活動的卷,只有兩個,經確認資料庫歸檔日誌目錄在ORAVG捲上。
# lsvg -o
oravg
rootvg
進一步詳細檢視ORAVG卷的資訊
# lsvg -l oravg
oravg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lv_oracle jfs2 2 2 1 open/syncd /oracle
client jfs2 2 2 1 open/syncd /oracle/client
stage_102_64 jfs2 28 28 1 open/syncd /oracle/stage/102_64
BWP jfs2 20 20 1 open/syncd /oracle/BWP
BWP_102_64 jfs2 36 36 1 open/syncd /oracle/BWP/102_64
BWP_origlogA jfs2 2 2 1 open/syncd /oracle/BWP/origlogA
BWP_origlogB jfs2 2 2 1 open/syncd /oracle/BWP/origlogB
BWP_mirrlogA jfs2 2 2 1 open/syncd /oracle/BWP/mirrlogA
BWP_mirrlogB jfs2 2 2 1 open/syncd /oracle/BWP/mirrlogB
BWP_oraarch jfs2 200 200 1 open/syncd /oracle/BWP/oraarch
發現當前目錄的PPS大小為200
3、# lsvg oravg
VOLUME GROUP: oravg VG IDENTIFIER: 00c6abcf00004c000000012d038039cb
VG STATE: active PP SIZE: 256 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 7191 (1840896 megabytes)
MAX LVs: 512 FREE PPs: 2589 (582912 megabytes)
LVs: 18 USED PPs: 4602 (1257984 megabytes)
OPEN LVs: 18 QUORUM: 5 (Enabled)
TOTAL PVs: 9 VG DESCRIPTORS: 9
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 9 AUTO ON: no
MAX PPs per VG: 130048
MAX PPs per PV: 1016 MAX PVs: 128
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
檢視oravg卷組資訊可知每個PPS大小為256M,目前oravg還剩2589個PPS,共計662784M;
4、
擴充套件檔案系統的空間
使用命令 # chfs -a size=+50G /oracle/BWP/oraarch #意思是給/oracle/BWP/oraarch增加50G的空間(注意G是大寫)
執行完再lsvg 發現free pp size 沒有增加,但是用smitty chfs 來做的時候
發現,增加的 size 在/oracle/BWP/oraarch上已經體現了。
使用smitty chfs來擴容的過程:
#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 /oracle/BWP/oraarch
NEW mount point [/oracle/BWP/oraarch]
SIZE of file system
Unit Size Megabytes +
Number of units [79872] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? no +
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 +
we will see result:
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 131072 #擴容後包含已有空間的容量
5、再檢查一下看新增上沒有
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 5.00 4.90 3% 7024 1% /
/dev/hd2 20.00 14.77 27% 57935 2% /usr
/dev/hd9var 10.00 9.37 7% 7454 1% /var
/dev/hd3 15.00 14.41 4% 3381 1% /tmp
/dev/hd1 6.00 5.01 17% 1873 1% /home
/proc - - - - - /proc
/dev/hd10opt 15.00 14.62 3% 10242 1% /opt
/dev/lv00 0.25 0.24 4% 18 1% /var/adm/csd
/dev/fslv00 10.00 9.20 8% 2876 1% /sapmnt/BWP
/dev/lv_oracle 0.50 0.50 1% 47 1% /oracle
/dev/BWP 5.00 4.55 10% 12348 2% /oracle/BWP
/dev/BWP_102_64 9.00 4.84 47% 22069 2% /oracle/BWP/102_64
/dev/BWP_mirrlogA 0.50 0.40 20% 6 1% /oracle/BWP/mirrlogA
/dev/BWP_mirrlogB 0.50 0.40 20% 6 1% /oracle/BWP/mirrlogB
/dev/BWP_oraarch 128.00 99.82 23% 663 1% /oracle/BWP/oraarch
好了,一切正常,擴容成功。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28869493/viewspace-1272537/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- AIX卷組下檔案系統線上擴容AI
- lvm 線上擴充 / 目錄的大小LVM
- centerOs根目錄盤擴容筆記ROS筆記
- Linux 分割槽擴容(根分割槽擴容,SWAP 分割槽擴容,掛載新分割槽為目錄)Linux
- aix檔案系統擴容AI
- aix 中SMITTY LV 操作的詳細步驟擴充目錄空間AIMIT
- 阿里雲線上擴容磁碟阿里
- MinIO線上擴容實戰
- 雲伺服器如何擴容CentOS 7系統根目錄伺服器CentOS
- mysql 通過遷移某個庫的目錄來擴容MySql
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- Oracle資料庫 ASM磁碟線上擴容Oracle資料庫ASM
- Oracle - AIX上NFS目錄歸檔失敗OracleAINFS
- VMware虛擬機器Ubuntu根目錄磁碟空間(/dev/sda1)擴容虛擬機Ubuntudev
- windows透過samba訪問aix的共享目錄WindowsSambaAI
- linux擴充套件根目錄大小Linux套件
- Spring Cloud Eureka Server高可用之:線上擴容SpringCloudServer
- oracle 11g ASM 磁碟組線上擴容實驗:OracleASM
- LVM常規操作記錄梳理(擴容/縮容/快照等)LVM
- LVM邏輯卷線上動態擴容磁碟空間LVM
- 【目錄】JVM目錄JVM
- php遍歷指定目錄中的內容2PHP
- PHP獲取目錄中的全部內容RecursiveDirectoryIteratorPHP
- 阿里雲CentOS7.x ECS雲盤線上擴容操作阿里CentOS
- 【目錄】集合框架目錄框架
- ASM 擴容ASM
- [Redis]擴容Redis
- Vector擴容
- lakka擴容
- Centos7 中查詢檔案、目錄、內容CentOS
- ext2目錄檔案的內容驗證
- 【目錄】JUC鎖框架目錄框架
- pyqt中的目錄QFileSystemModel 內容用 QTreeView 顯示QTView
- Web網站敏感目錄/內容探測工具 – CansinaWeb網站
- 0. CMMI快樂之旅——內容簡介及目錄
- redis cluster 擴容Redis
- HashMap擴容原理HashMap
- linux 擴容Linux