How To Resize An ASM Disk On Release 10.2.0.X

 

 

1) Please backup the database(s) contained inside the associated diskgroup.

2) Then shutdown the databases contained inside the associated diskgroup.

3) Dismount the associated diskgroup to verify no client database connections are accessing this specific diskgroup:

SQL> alter diskgroup <diskgroup> dismount;



4) Resize your physical disk/LUN at OS/hardware level.

5) Mount back the diskgroup:

SQL> alter diskgroup <diskgroup> mount;



6) Then resize the ASM disk as the following example:

 

SQL> ALTER DISKGROUP <diskgroup> RESIZE DISK <disk name> <size>M REBALANCE POWER <1-11>;

SQL> ALTER DISKGROUP DATA RESIZE DISK DISK_A1 SIZE 5000 M REBALANCE POWER 11;

 

 

 

 

 

From Oracle

-------------------------------------------------------------------------------------------------------

QQ:492913789

Email:ahdba@qq.com

Blog: http://www.cndba.cn/dave


DBA1 群:62697716();   DBA2 群:62697977()   DBA3 群:62697850()  

DBA 超级群:63306533();  DBA4 群: 83829929  DBA5群: 142216823   

聊天 群:40132017   聊天2群:69087192

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

Here are several common methods to expand disk space on Ubuntu 22.04: ### Using fdisk or parted for partition expansion If you have unallocated space on the same physical disk, you can use tools like `fdisk` or `parted` to expand an existing partition. For example, with `fdisk`, the basic steps are as follows: First, identify the disk you want to operate on. Then, enter the `fdisk` command for that disk. Inside the `fdisk` interface, you can use commands to manipulate partitions. For instance, to add a new partition (command `n`), and to save the changes to the partition table (command `w`). ```plaintext # Identify the disk, e.g., /dev/sda sudo fdisk /dev/sda # Inside fdisk Command (m for help): n # Add a new partition # Follow the prompts to set partition size, etc. Command (m for help): w # Write changes to disk and exit ``` The command descriptions of `fdisk` are as follows: - `m`: Input `m` to see these command introductions. - `a`: Toggle a bootable flag. - `b`: Edit bsd disklabel. - `c`: Toggle the dos compatibility flag. - `d`: Delete a partition. - `l`: List known partition types. - `m`: Print this menu. - `n`: Add a new partition. - `o`: Create a new empty DOS partition table. - `p`: Print the partition table. - `q`: Quit without saving changes. - `s`: Create a new empty Sun disklabel. - `t`: Change a partition's system id. - `u`: Change display/entry units. - `v`: Verify the partition table. - `w`: Write table to disk and exit. - `x`: Extra functionality (experts only) [^1]. After resizing the partition, you may need to resize the file system using tools like `resize2fs` for ext4 file systems. ```bash sudo resize2fs /dev/sdaX # Replace X with the actual partition number ``` ### Adding a new disk If your system has room for an additional physical disk, you can add a new disk and then format and mount it. 1. Physically install the new disk in your system. 2. Identify the new disk, for example, it may show up as `/dev/sdb`. 3. Create a partition on the new disk using `fdisk` or `parted`. 4. Format the partition. For example, to format as ext4: ```bash sudo mkfs.ext4 /dev/sdb1 ``` 5. Create a mount point and mount the new partition: ```bash sudo mkdir /mnt/newdisk sudo mount /dev/sdb1 /mnt/newdisk ``` 6. To make the mount permanent, add an entry to the `/etc/fstab` file: ```plaintext /dev/sdb1 /mnt/newdisk ext4 defaults 0 0 ``` ### Using LVM (Logical Volume Manager) If your system is using LVM, you can easily expand volumes. 1. Add a new physical disk or partition to the volume group. ```bash sudo pvcreate /dev/sdb1 # Create a physical volume sudo vgextend vg0 /dev/sdb1 # Add the physical volume to the volume group (e.g., vg0) ``` 2. Expand the logical volume. ```bash sudo lvextend -L +10G /dev/vg0/lv0 # Expand the logical volume by 10GB ``` 3. Resize the file system on the logical volume. ```bash sudo resize2fs /dev/vg0/lv0 ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值