This content has been marked as final. Show 5 replies
You should use a RAW partition. You only need to create a disk partition using fdisk, and then you should "mark" that disk using ASMLIB (oracleasm).
Mark using ASM
fdisk /dev/sdd Command (m for help): u Changing display/entry units to sectors Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First sector (61-1048575, default 61): 2048 Last sector or +size or +sizeM or +sizeK (2048-1048575, default 1048575): Using default value 1048575 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
List Disk using oracleasm
/usr/sbin/oracleasm createdisk ASMDATA01 /dev/sdd1
/usr/sbin/oracleasm listdisks ASMDATA01
Thanks Victor Sir for your help... I had few more questions..
1] Presently I have /u01 and /u02 mount points with me.. Should I have to unmount them first. If yes please confirm the below steps that I'll perform.
oracle@blrulvremoradb01:PRODR [dev] > cat /etc/fstab
/dev/rootvg/root / ext3 defaults 1 1
/dev/rootvg/var /var ext3 defaults 1 2
/dev/rootvg/temp /tmp ext3 defaults 1 2
/dev/rootvg/usr /usr ext3 defaults 1 2
/dev/rootvg/opt /opt ext3 defaults 1 2
#/dev/rootvg/u01 /u01 ext3 defaults 1 2
/dev/rootvg/u01 /u01 ext3 defaults 1 2
/dev/rootvg/u02 /u02 ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/rootvg/swap swap swap defaults 0 0
After completing this can I go for the steps mentioned by you.. I need to your help for sometime until I complete the steps...
I am not at familiar with the steps of partioning..Requesting you help me step by step..It would be a great help sir!!!
Well.. just a second: u01 and u02 are Logical Volumes inside a Volume Group? O.o
First step: (please post here)
The best option is to use LUNs (from your storage solution) for ASM. Why do you need ASM? Is this installation a pre-req for RAC or StandAlone GRID? What is your purpose?
df -h fdisk -l
Edited by: Victor Armbrust on 28/12/2012 14:26
The setup of raw devices as of Enterprise Linux 5 is depreciated. This is now accomplished by using IO_DIRECT. However, Linux oracleasm uses its own optimized I/O management for devices under oracleasm control.1 person found this helpful
You can use the parted utility to create a partition, for instance:
# parted -s /dev/sdc mklabel msdos mkpart primary 1 -- -1
Beware that all previous info on that disk will be destroyed!
My UNIX admin is on leave for new year and I want to do this by my own..I wonder if you actually understand the complexity of your task. There is no way you can get any useful hints based on the limited amount of information you have provided, nor will a couple of forum posts teach you what is necessary to understand. Perhaps you might want to reconsider rushing into this and causing unnecessary problems.