Thứ Hai, 19 tháng 1, 2026

Truy vấn lượng trống trong ASM Disk Group

#asmcmd lsdg command to check ASM disk group details without logging into ASM instance.

State :- State of the disk group (BROKEN, CONNECTED, DISMOUNTED, MOUNTED, QUIESCING, or UNKNOWN).

Type :- Disk group redundancy (NORMAL, HIGH, FLEX, or EXTERNAL).

Rebal :- N or Y (Y means a rebalance operation is in progress).

Sector :- Sector size in bytes.

Block :- Block size in bytes.

AU :- Allocation unit size in bytes.

Total_MB :- ASM disk group total space in MB.

Free_MB :- ASM disk group free space in MB.

Req_mir_free_MB :- Amount of space that must be available in the disk group to restore full redundancy after the most severe failure that can be tolerated by the disk group. 

Usable_file_MB :- Amount of free space, adjusted for mirroring, that is available for new files. 

Offline_disks :- Number of offline disks in the disk group.

Voting_files :- Y or N (Specifies whether the disk group contains voting files).

Name :- Disk group name.


Ví dụ:

ASMCMD> lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512   4096  1048576      5114     4899                0            4899              0             N  ARCH/
MOUNTED  EXTERN  N         512   4096  1048576     20472    18551                0           18551              0             N  DATA/
MOUNTED  NORMAL  N         512   4096  4194304     30708    21320            10236            5542              0             Y  DG_OCR/
MOUNTED  EXTERN  N         512   4096  1048576      5114     4783                0            4783              0             N  REDO1/
MOUNTED  EXTERN  N         512   4096  1048576      5114     5018                0            5018              0             N  REDO2/

Trong ví dụ trên

State :- All disk groups are in mounted state.
State  
MOUNTED
MOUNTED
MOUNTED
MOUNTED
MOUNTED

Type :- Redundancy is NORMAL for only DG_OCR disk group and for all other disk groups, it is EXTERNAL).
Type  
EXTERN
EXTERN
NORMAL
EXTERN
EXTERN

Rebal :- The value is N for all disk groups which means that rebalance operation is not running.
Rebal
N    
N    
N    
N    
N    

Sector :- Sector size is 512 bytes.
Sector
   512
   512
   512
   512
   512

Block :- Block size 4096 bytes.
Block
 4096
 4096
 4096
 4096
 4096

AU :- Allocation unit is 419304 bytes i.e. 4 MB for disk group DG_OCR and 1048576 bytes i.e. 1 MB for other disk groups .
     AU
1048576
1048576
4194304
1048576
1048576

Total_MB :-  The total size of the disk group ARCH, REDO1, and REDO2 is 5114 MB. The total size of the disk group DATA is 20472 MB. The total size of the disk group DG_OCR is 30708 MB.
Total_MB
    5114
   20472
   30708
    5114
    5114

Free_MB :- The free size of the disk group ARCH is 4899 MB, 18551 MB of disk group DATA, 21320 MB of disk group DG_OCR, 4783  MB of disk group REDO1, and 5018 MB of disk group REDO2.
Free_MB
   4899
  18551
  21320
   4783
   5018

Req_mir_free_MB :- The required mirror free space is zero for all the disk groups, except DG_OCR since these disk groups are of EXTERNAL redundancy.  The required mirror free space is 10236 of disk group DG_OCR since it is of NORMAL redundancy.
Req_mir_free_MB
              0
              0
          10236
              0
              0

Usable_file_MB :- The usable_file_mb space is same as free_mb space for all the disk groups having EXTERNAL redundancy. For the disk group DG_OCR, the usable_file_mb space is 5542 MB. 
Usable_file_MB
          4899
         18551
          5542
          4783
          5018

Offline_disks :- The value of this parameter is zero which means that none of the disks are  offline.
Offline_disks
            0
            0
            0
            0
            0

Voting_files :- The value is Y only for DG_OCR disk group where voting files are located and for others, it is N which means that voting files are not located in these disk groups.
Voting_files
           N
           N
           Y
           N
           N

Name :- The name of the disk groups is ARCH, DATA, DG_OCR, REDO1, and REDO2.
Name
ARCH/
DATA/
DG_OCR/
REDO1/
REDO2/
=============================
TƯ VẤN: Click hoặc Hotline/Zalo 090.29.12.888
=============================
Website không chứa bất kỳ quảng cáo nào, mọi đóng góp để duy trì phát triển cho website (donation) xin vui lòng gửi về STK 90.2142.8888 - Ngân hàng Vietcombank Thăng Long - TRAN VAN BINH
=============================
Nếu bạn không muốn bị AI thay thế và tiết kiệm 3-5 NĂM trên con đường trở thành DBA chuyên nghiệp hay làm chủ Database thì hãy đăng ký ngay KHOÁ HỌC ORACLE DATABASE A-Z ENTERPRISE, được Coaching trực tiếp từ tôi với toàn bộ bí kíp thực chiến, thủ tục, quy trình của gần 20 năm kinh nghiệm (mà bạn sẽ KHÔNG THỂ tìm kiếm trên Internet/Google) từ đó giúp bạn dễ dàng quản trị mọi hệ thống Core tại Việt Nam và trên thế giới, đỗ OCP.
- CÁCH ĐĂNG KÝ: Gõ (.) hoặc để lại số điện thoại hoặc inbox https://m.me/tranvanbinh.vn hoặc Hotline/Zalo 090.29.12.888
- Chi tiết tham khảo:
https://bit.ly/oaz_w
=============================
2 khóa học online qua video giúp bạn nhanh chóng có những kiến thức nền tảng về Linux, Oracle, học mọi nơi, chỉ cần có Internet/4G:
- Oracle cơ bản: https://bit.ly/admin_1200
- Linux: https://bit.ly/linux_1200
=============================
KẾT NỐI VỚI CHUYÊN GIA TRẦN VĂN BÌNH:
📧 Mail: binhoracle@gmail.com
☎️ Mobile/Zalo: 0902912888
👨 Facebook: https://www.facebook.com/BinhOracleMaster
👨 Inbox Messenger: https://m.me/101036604657441 (profile)
👨 Fanpage: https://www.facebook.com/tranvanbinh.vn
👨 Inbox Fanpage: https://m.me/tranvanbinh.vn
👨👩 Group FB: https://www.facebook.com/groups/DBAVietNam
👨 Website: https://www.tranvanbinh.vn
👨 Blogger: https://tranvanbinhmaster.blogspot.com
🎬 Youtube: https://www.youtube.com/@binhguru
👨 Tiktok: https://www.tiktok.com/@binhguru
👨 Linkin: https://www.linkedin.com/in/binhoracle
👨 Twitter: https://twitter.com/binhguru
👨 Podcast: https://www.podbean.com/pu/pbblog-eskre-5f82d6
👨 Địa chỉ: Tòa nhà Sun Square - 21 Lê Đức Thọ - Phường Mỹ Đình 1 - Quận Nam Từ Liêm - TP.Hà Nội

=============================
cơ sở dữ liệu, cơ sở dữ liệu quốc gia, database, AI, trí tuệ nhân tạo, artificial intelligence, machine learning, deep learning, LLM, ChatGPT, DeepSeek, Grok, oracle tutorial, học oracle database, Tự học Oracle, Tài liệu Oracle 12c tiếng Việt, Hướng dẫn sử dụng Oracle Database, Oracle SQL cơ bản, Oracle SQL là gì, Khóa học Oracle Hà Nội, Học chứng chỉ Oracle ở đầu, Khóa học Oracle online,sql tutorial, khóa học pl/sql tutorial, học dba, học dba ở việt nam, khóa học dba, khóa học dba sql, tài liệu học dba oracle, Khóa học Oracle online, học oracle sql, học oracle ở đâu tphcm, học oracle bắt đầu từ đâu, học oracle ở hà nội, oracle database tutorial, oracle database 12c, oracle database là gì, oracle database 11g, oracle download, oracle database 19c/21c/23c/23ai, oracle dba tutorial, oracle tunning, sql tunning , oracle 12c, oracle multitenant, Container Databases (CDB), Pluggable Databases (PDB), oracle cloud, oracle security, oracle fga, audit_trail,oracle RAC, ASM, oracle dataguard, oracle goldengate, mview, oracle exadata, oracle oca, oracle ocp, oracle ocm , oracle weblogic, postgresql tutorial, mysql tutorial, mariadb tutorial, ms sql server tutorial, nosql, mongodb tutorial, oci, cloud, middleware tutorial, docker, k8s, micro service, hoc solaris tutorial, hoc linux tutorial, hoc aix tutorial, unix tutorial, securecrt, xshell, mobaxterm, putty

ĐỌC NHIỀU

Trần Văn Bình - Oracle Database Master