Delete a disk from the data disk group (two disks exist in the asmexternaldata disk group)

Source: Internet
Author: User

Delete a disk from the data disk group (two disks exist in the asmexternaldata disk group)

Delete a disk. Note: if data is stored on the remaining disk after the disk is deleted, check whether there is sufficient storage space. If there is not enough space, the deletion will not succeed. Check space is insufficient: select. GROUP_NUMBER,. DISK_NUMBER,. NAME, decode (sign (. FREE_MB-d.COLD_USED_MB/2), 1, 'y',-1, 'n', 'n') from v $ asm_diskgroup d, v $ asm_disk a where. GROUP_NUMBER = d. GROUP_NUMBER and. GROUP_NUMBER = 2; -- a self-written statement. If any problem occurs, please let me know. Thank you. 1. check disk GROUP_NUMBER GROUP_NAME name path state TOTAL_MB ------------ ---------- ---------------------- ---------------- -------- ------------ 0 DATA DATA2/dev/raw/r Aw6 NORMAL 8192 5 FRA/dev/raw/raw5 NORMAL 8192 0 DATA/dev/raw/raw4 NORMAL 8192 0 CRS CRS_0002/dev/raw/raw3 NORMAL 3072 0 CRS CRS_0001/ dev/raw/raw2 NORMAL 3072 0 CRS CRS_0000/dev/raw/raw1 NORMAL 30722. delete SQL> alter diskgroup data drop disk data2; Diskgroup altered. GROUP_NUMBER GROUP_NAME name path state TOTAL_MB ----------------------------------------------------------------------- --------- 0 DATA DATA2/dev/raw/raw6 DROPPING 8192 5 FRA/dev/raw/raw5 NORMAL 8192 0 DATA/dev/raw/raw4 NORMAL 8192 0 CRS CRS_0002/dev/ raw/raw3 NORMAL 3072 0 CRS CRS_0001/dev/raw/raw2 NORMAL 3072 0 CRS CRS_0000/dev/raw/raw1 NORMAL 30723. wait for a while. GROUP_NUMBER GROUP_NAME name path state TOTAL_MB ------------ ---------- -------------------- ---------------- -------- ------------ 5 FRA/de V/raw/raw5 NORMAL 8192 0 DATA/dev/raw/raw4 NORMAL 8192 0 CRS CRS_0002/dev/raw/raw3 NORMAL 3072 0 CRS CRS_0001/dev/raw/raw2 NORMAL 3072 0 CRS CRS_0000/dev/raw/raw1 NORMAL 3072 note: if you suddenly regret it in the dropping status, then alter diskgroup data undrop disks; if you have deleted it, add it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.