溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

aix文件系統(tǒng)怎么實(shí)現(xiàn)在線擴(kuò)容

發(fā)布時(shí)間:2021-12-30 17:06:13 來源:億速云 閱讀:152 作者:柒染 欄目:云計(jì)算

aix文件系統(tǒng)怎么實(shí)現(xiàn)在線擴(kuò)容,很多新手對此不是很清楚,為了幫助大家解決這個(gè)難題,下面小編將為大家詳細(xì)講解,有這方面需求的人可以來學(xué)習(xí)下,希望你能有所收獲。

aix的文件系統(tǒng)擴(kuò)容是非常靈活的,如果不涉及加硬盤的硬件操作,只要通過aix里面的命令或者smitty菜單就行了,當(dāng)然做好數(shù)據(jù)備份在任何情況下都是必要的。

1、因?yàn)閿?shù)據(jù)庫歸檔日志目錄空間較小,而日志增長又比較快,因歸檔日志滿很容易造成數(shù)據(jù)庫掛起,所以準(zhǔn)備對文件系統(tǒng)進(jìn)行擴(kuò)容。
# 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           5.00      4.55    9%    12334     2% /oracle/BWP
/dev/BWP_102_64      9.00      4.84   47%    22062     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     50.00     38.82    93%      279     1% /oracle/BWP/oraarch
/dev/BWP_origlogA      0.50      0.36   29%        9     1% /oracle/BWP/origlogA

2、查看當(dāng)前活動(dòng)的卷,只有兩個(gè),經(jīng)與工程師確認(rèn)數(shù)據(jù)庫歸檔日志目錄在ORAVG卷上。
# lsvg -o
oravg
rootvg
進(jìn)一步詳細(xì)查看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
發(fā)現(xiàn)當(dāng)前目錄的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卷組信息可知每個(gè)PPS大小為256M,目前oravg還剩2589個(gè)PPS,共計(jì)662784M;

4、
擴(kuò)展文件系統(tǒng)的空間
 
使用命令 # chfs -a size=+78G /oracle/BWP/oraarch #意思是給/oracle/BWP/oraarch增加78G的空間(注意G是大寫)
執(zhí)行完再lsvg 發(fā)現(xiàn)free pp size 沒有增加,但是用smitty chfs 來做的時(shí)候
發(fā)現(xiàn),增加的 size 在/oracle/BWP/oraarch上已經(jīng)體現(xiàn)了。

使用smitty chfs來擴(kuò)容的過程:

#smitty chfs回車后選擇這一項(xiàng)Change/Show Characteristics of an Enhanced Journaled File System,然后在目錄列表里找到需要擴(kuò)容的目錄按回車。

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   #擴(kuò)容后包含已有空間的容量

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

好了,一切正常,擴(kuò)容成功。

看完上述內(nèi)容是否對您有幫助呢?如果還想對相關(guān)知識(shí)有進(jìn)一步的了解或閱讀更多相關(guān)文章,請關(guān)注億速云行業(yè)資訊頻道,感謝您對億速云的支持。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

aix
AI