
本記事の目的
OCI DBCS(DBaaS)のローカルディスク(ACFS領域)を拡張する手順を確認してみた。
DBCSのディスク構成とACFS拡張手順
データファイルを格納するASMディスク領域とは別に、DBCSのローカルディスクは1ノードあたり約200GBが割り当てられている。
この領域では足りないような大規模データの置き場としては、他のストレージサービスを利用することが可能だが、今回はデフォルトで用意されているACFS領域を利用することを想定して拡張手順を確認してみた。
検証環境
シェイプ:
DBシステム・バージョン:
現状確認
[root@dbvm01 ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 7.2G 0 7.2G 0% /dev tmpfs tmpfs 7.3G 1.1G 6.2G 15% /dev/shm tmpfs tmpfs 7.3G 49M 7.2G 1% /run tmpfs tmpfs 7.3G 0 7.3G 0% /sys/fs/cgroup /dev/mapper/VolGroupSys0-LogVolRoot ext4 35G 29G 4.0G 88% / /dev/sda2 ext4 1.4G 102M 1.2G 8% /boot /dev/sda1 vfat 486M 9.7M 476M 2% /boot/efi /dev/sdd ext4 197G 22G 166G 12% /u01 /dev/asm/commonstore-199 acfs 5.0G 319M 4.7G 7% /opt/oracle/dcs/commonstore★ACFS領域として5GBが割り当てられている tmpfs tmpfs 1.5G 0 1.5G 0% /run/user/54322 ・ACFS構成確認 [root@dbvm01 ~]# /sbin/acfsutil info storage Diskgroup Consumer Space Size With Mirroring Usable Free %Free Path DATA 256.00 256.00 247.54 96% COMMONSTORE 5.00 5.00 4.69 93% /opt/oracle/dcs/commonstore★ディスクグループDATA配下 RECO 256.00 256.00 252.44 98% ---- unit of measurement: GB ・ASMディスク利用状況 [grid@dbvm01 ~]$ asmcmd ASMCMD> lsdg State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED EXTERN N 512 512 4096 4194304 262144 253476 0 253476 0 Y DATA/ MOUNTED EXTERN N 512 512 4096 4194304 262144 258496 0 258496 0 N RECO/
ACFSサイズ拡張
・ACFS領域を100GBに拡張 [grid@dbvm01 ~]$ /sbin/acfsutil size 100G /opt/oracle/dcs/commonstore acfsutil size: Resizing file system in steps acfsutil size: Resizing file system to 0.0205 TB acfsutil size: Resizing file system to 0.0361 TB acfsutil size: Resizing file system to 0.0518 TB acfsutil size: Resizing file system to 0.0674 TB acfsutil size: Resizing file system to 0.0830 TB acfsutil size: Resizing file system to 0.0977 TB acfsutil size: new file system size: 107374182400 (102400MB)
結果確認
[grid@dbvm01 ~]$ df -hT | grep acfs /dev/asm/commonstore-199 acfs 100G 512M 100G 1% /opt/oracle/dcs/commonstore [grid@dbvm01 ~]$ [grid@dbvm01 ~]$ /sbin/acfsutil info storage Diskgroup Consumer Space Size With Mirroring Usable Free %Free Path DATA 256.00 256.00 152.54 59% ★DATAディスクグループの使用量増加 COMMONSTORE 100.00 100.00 99.50 99% /opt/oracle/dcs/commonstore★割り当てサイズ増えた RECO 256.00 256.00 252.44 98% ---- unit of measurement: GB [grid@dbvm01 ~]$ asmcmd ASMCMD> lsdg State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED EXTERN N 512 512 4096 4194304 262144 156196 0 156196 0 Y DATA/ MOUNTED EXTERN N 512 512 4096 4194304 262144 258496 0 258496 0 N RECO/
おまけ
サービスコンソールからスケールアップをしてみる
・ストレージサイズ拡張
256GB -> 512GBに拡張(手順割愛)
処理時間は30分程度。
・ACFS構成確認 [grid@dbvm01 ~]$ /sbin/acfsutil info storage Diskgroup Consumer Space Size With Mirroring Usable Free %Free Path DATA 512.00 512.00 408.54 79%★DATAディスクグループのサイズ増加 COMMONSTORE 100.00 100.00 99.50 99% /opt/oracle/dcs/commonstore★ACFS領域のサイズは変化なし RECO 256.00 256.00 252.44 98% ---- unit of measurement: GB
ACFS領域の縮小
拡張したACFS領域を縮小して元に戻してみる。
・ACFS縮小 [grid@dbvm01 ~]$ /sbin/acfsutil size 5G /opt/oracle/dcs/commonstore acfsutil size: Resizing file system in steps acfsutil size: Resizing file system to 0.0820 TB acfsutil size: Resizing file system to 0.0664 TB acfsutil size: Resizing file system to 0.0508 TB acfsutil size: Resizing file system to 0.0352 TB acfsutil size: Resizing file system to 0.0195 TB acfsutil size: Resizing file system to 0.0049 TB acfsutil size: new file system size: 5368709120 (5120MB) [opc@dbvm01 ~]$ df -hT | grep acfs /dev/asm/commonstore-199 acfs 5.0G 452M 4.6G 9% /opt/oracle/dcs/commonstore [grid@dbvm01 ~]$ /sbin/acfsutil info storage Diskgroup Consumer Space Size With Mirroring Usable Free %Free Path DATA 512.00 512.00 503.54 98% COMMONSTORE 5.00 5.00 4.56 91% /opt/oracle/dcs/commonstore RECO 256.00 256.00 252.44 98% ---- unit of measurement: GB
参考情報
・Oracle Cloud: Real Application Clusters(RAC)作成してみてみた
・Oracle Cloud(OCI) DBaaSのデフォルト・ストレージ構成
・マニュアル「管理者ガイド」Oracle ACFSコマンドライン・ユーティリティ
Leave a Reply