Aix下為Oracle資料庫拓容

來源:互聯網
上載者:User

現有環境描述
作業系統:AIX
叢集軟體:HACMP
以下是現有B機的儲存使用方式

hdisk2          00c8970083c14f90                    xxora
hdisk3          00c8970083c150c6                    xxora
hdisk4          00c8970083c151d8                    xxora
hdisk5          00c897b01a96a7a4                    ggtt            active
hdisk8          00c897b01a96ed89                    ggtt            active
hdisk9          00c897b01a970362                    ggtt            active
hdisk10        00c897b01a971f55                    ggtt            active
hdisk11        00c897b01a973596                    ggtt            active
hdisk12        00c897b01a974a62                    ggtt            active
hdisk13        00c897b01a9766ae                    ggtt            active
hdisk14        00c897b01a977e22                    ggtt            active

ggtt為本地使用的邏輯卷組,xxora為HACMP需要操作的邏輯卷組。
因為是主備模式,所以現在的xxora邏輯卷組正在A機上掛載。

操作目的:資料表空間裡面沒有可用的空間,而且由於拓展槽位已經使用完,所以只能從現有的儲存空間上面想辦法,最後確定方案,縮減ggtt卷組,然後將多餘的pv添加到xxora卷組,建立裸裝置保證資料庫儲存空間。

1. 縮減目錄
如下所示為ip為10.255.10.4的檔案系統,根據需求要縮減的目錄為ggtt,縮小2個T。
# df -g
Filesystem  GB blocks      Free %Used    Iused%Iused Mounted on
/dev/hd4          4.00      3.92  2%    5157    1% /
/dev/hd2          4.00      1.88  54%    47368    10% /usr
/dev/hd9var        4.00      2.89  28%      946    1% /var
/dev/hd3          4.00      3.31  18%    1297    1%/tmp
/dev/fwdump        0.50      0.50  1%        4    1% /var/adm/ras/platform
/dev/hd1          4.00      4.00  1%      77    1% /home
/proc                -        -  -        -    - /proc
/dev/hd10opt      4.00    3.84    4%    1723    1% /opt
/dev/app          60.00    37.62  38%    7097    1% /app
/dev/lvggtt01  7550.00  4585.20  40%  380415    1% /ggtt
/dev/gtOracle  1898.00  1692.82  11%  27137    1% /app/gtoracle

注意:因為這裡SCHED POLICY是parallel而不是striped,所以當使用chfs的時候可以順利的將hdisk12與hdisk13兩個pv空餘出來。如果是striped,可能需要一些額外的操作,將pv剩餘的資料移轉到另外一個較小的pv中。

# lslv lvgtyx01
LOGICAL VOLUME:    lvgtyx01              VOLUME GROUP:  gtyx
LV IDENTIFIER:      00c897b000004c00000001291a9d3124.1PERMISSION:    read/write
VG STATE:          active/complete        LV STATE:      opened/syncd
TYPE:              jfs2                  WRITE VERIFY:  off
MAX LPs:            20000                  PP SIZE:        512 megabyte(s)
COPIES:            1                      SCHED POLICY:  parallel
LPs:                15100                  PPs:            15100
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:      minimum                RELOCATABLE:    yes
INTRA-POLICY:      middle                UPPER BOUND:    1024
MOUNT POINT:        /gtyx                  LABEL:          /gtyx
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:    NO
DEVICESUBTYPE : DS_LVZ


縮減檔案系統命令
# chfs -a size=-2100G /ggtt
Filesystem size changed to 11429478400


縮減後的檔案系統如下:
# df -g
Filesystem  GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          4.00      3.92  2%    5157    1% /
/dev/hd2          4.00      1.88  54%    47369  10% /usr
/dev/hd9var        4.00      2.88  28%      947    1% /var
/dev/hd3          4.00      3.31  18%    1307    1% /tmp
/dev/fwdump        0.50      0.50  1%        4    1% /var/adm/ras/platform
/dev/hd1          4.00      4.00  1%      77    1% /home
/proc                -        -  -        -    - /proc
/dev/hd10opt      4.00    3.84    4%    1723    1% /opt
/dev/app          60.00    37.62  38%    7097    1% /app
/dev/lvggtt01  5450.00  2485.52  55%  380415    1% /ggtt
/dev/gtoracle  1898.00  1692.32  11%  27149    1% /app/gtoracle

  • 1
  • 2
  • 3
  • 4
  • 下一頁

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.