Home » RDBMS Server » Server Administration » How can use the LV to create a ASM disk (10.2.0.1)
How can use the LV to create a ASM disk [message #562063] Fri, 27 July 2012 11:10 Go to next message
andy huang
Messages: 498
Registered: July 2011
Senior Member
Dear all,
How can use the LV to create a ASM disk in Red Hat Linux As 5

#lvcreate -n lv01 -L 200g myvg
Re: How can use the LV to create a ASM disk [message #562064 is a reply to message #562063] Fri, 27 July 2012 11:20 Go to previous messageGo to next message
BlackSwan
Messages: 22525
Registered: January 2009
Senior Member
# lvcreate -L size -n lv_name vg_name
In this example:

size is the size of the logical volume, for example 500M
lv_name is the name of the logical volume, for example orcl_system_raw_500m
vg_name is the name of the volume group, for example oracle_vg


Re: How can use the LV to create a ASM disk [message #562065 is a reply to message #562064] Fri, 27 July 2012 11:25 Go to previous messageGo to next message
andy huang
Messages: 498
Registered: July 2011
Senior Member
Thanks,
BlackSwan,i have created the Lv,but i can not using it to create the ASM disk.

[oracle@hxl ~]$ ls -al /dev/mapper/myvg-lv01
brw-rw---- 1 oracle oinstall 253, 0 Jul 27 23:50 /dev/mapper/myvg-lv01
[oracle@hxl ~]$ /etc/init.d/oracleasm createdisk VOL5 /dev/mapper/myvg-lv01
Marking disk "VOL5" as an ASM disk: /etc/init.d/oracleasm: line 242: /var/log/oracleasm: Permission denied
                                                           [FAILED]

Re: How can use the LV to create a ASM disk [message #562091 is a reply to message #562065] Fri, 27 July 2012 20:42 Go to previous message
andy huang
Messages: 498
Registered: July 2011
Senior Member
hi,
I have created the VOL5,but i can not find it in v$asm_disk,why?
#/etc/init.d/oracleasm createdisk VOL5 /dev/mapper/myvg-lv01
[oracle@hxl ~]$ /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
VOL5


Select Name,Path From  v$asm_disk;
---------------------------------
NAME	PATH
VOL1	ORCL:VOL1
VOL2	ORCL:VOL2
VOL3	ORCL:VOL3
Previous Topic: dbstart/dbstop named listener
Next Topic: Negative Values of Library Cache Hit Ratio in AWR Report
Goto Forum:
  


Current Time: Tue Jul 29 18:09:44 CDT 2014

Total time taken to generate the page: 0.09386 seconds