Sample Header Ad - 728x90

Is there any trick to Resize LVM online that raw by UDEV rule without filesystem?

1 vote
1 answer
475 views
Here is the Logic Volume for example: > lvcreate -L2G -n Lv_OraD1 vg_db > lvcreate -L180G -n Lv_OraD2 vg_db > > lvdisplay /dev/mapper/Lv_OraD* UDEV rule to raw the LV: > vi /etc/udev/rules.d/60-raw.rules > > ACTION=="add", ENV{MAJOR}=="253",ENV{MINOR}=="3", RUN+="/bin/raw /dev/raw/raw1 %N" > ACTION=="add", ENV{MAJOR}=="253",ENV{MINOR}=="4", RUN+="/bin/raw /dev/raw/raw2 %N" > ACTION=="add",KERNEL=="raw[1-9]",OWNER="grid",GROUP="dba",MODE="660" > > start_udev > raw -qa ASM Diskgroup maybe like this: > CREATE DISKGROUP DATA1 NORMAL REDUNDANCY > FAILGROUP Fg1 DISK '/dev/raw/raw1' SIZE 2048M ,'/dev/raw/raw2' SIZE 184320M; The effect: the size up 2G of DISKGROUP DATA1 cannot be used. so any tricks to achieve this result online? > lvreduce -L90G /dev/mapper/Lv_OraD2 > lvextend -L90G /dev/mapper/Lv_OraD1 Thanks.
Asked by Jason Smartree (33 rep)
Mar 11, 2016, 08:41 AM
Last activity: Mar 11, 2016, 09:18 PM