Raw device mapping ASMlib

We use ASMlib here, and I'm trying to understand what raw devices have been assigned to which ASM disks. For installation instructions, our drives must have been created using the "/etc/init.d/oracleasm createdisk/dev/sdg1 VOL1
«order mentioned on the main site of Oracle. However, orders for query records do not seem to give this link.

For example, the following command:

/etc/init.d/oracleasm querydisk/dev/sdg1

Will tell you if this device is in effect and the ASM disk, but it will not tell you that the label corresponds to the. In the same way

/etc/init.d/oracleasm querydisk VOL1

you say that the disc with this label is an ASM disk, but will not tell you what raw device is mapped. This is the reason why I wonder about it myself and administrators system is trying to map our ASM disks here back to the LUNS and raw devices. Of course, this has not been documented at the time, that the disks have been created, while I started working in my current company. We can move databases of groups of disks and disk to ASM devices groups, but we cannot leave the names of raw device that would allow us to go back on the LUN device ASM labels.

Thank you!

Me too...

#/etc/init.d/oracleasm querydisk/dev/sdc5
Disk ' / dev/sdc5 "is marked with an ASM disk with the label"VOL1 '.

I still find the name of the unit of major and minor:

#/etc/init.d/oracleasm querydisk VOL1
[Hot 'VOL1' is a valid ASM the device \[8, 37\]

#ls-l/dev / * | grep 8, | grep 37
BRW - rw - 1 root disk 8, 37 31 Jul 17:48 / dev/sdc5

Script:

#! / bin/sh

If------[$#-1------]
then

ECHO "Please check arguments."
ECHO
echo "." "[/ getasmlib \[label\].
ECHO
echo "." "/ VOL01 getasmlib.
Exit 0

FI

LABEL = $1

C='/etc/init.d/oracleasm querydisk ${LABEL} | valid grep | WC-l"

If------[${C} - eq 0------]
then
ECHO "cannot find disk ${LABEL} in ASMLIB.
Exit 0
FI

M='/etc/init.d/oracleasm querydisk ${LABEL} | AWK-f ['{print $2}' | awk ' {print $1} ']
N='/etc/init.d/oracleasm querydisk ${LABEL} | AWK - F '{print $2} ' | AWK - F] '{print $1}'

for x in ' ls-l/dev / * | $ grep {M} | $ grep {N} | "awk"{print $10} '"
do
/etc/init.d/oracleasm querydisk $x | grep ${LABEL}
fact

#. / getasmlib VOL1
Disk ' / dev/sdc5 "is marked with an ASM disk with the label"VOL1 '.

Good luck

Tags: Database

Similar Questions

  • Going from raw devices to ASMLib

    Hello, I decided to migrate from raw devices of ASMlib (Oracle 10.2.0.5, RHEL5). Seems to be that this is not a trivial task. Having 2 ocr, 3 voting and 1 data, all mapped as/dev/raw/rawX partititons.

    Thus, base of data of shutdown, and then click stop the ASM instance, after this attempt to run:

    /etc/init.d/oracleasm force-renamedisk/dev/sdb1 OCR1 (so this is a first disc OCR, which is now linked to/dev/raw/raw1), but still get an error:

    Rename the disk ' / dev/sdb1 ' to "OCR1": [FAILURE]

    Any ideas, what is the problem?


    Is NOT supported to install files Oracle Clusterware (Oracle Cluster registry) and the files on disc with right to vote in groups of disks ASM Oracle 11.1 and prerequisites.

    Is supported for install files Oracle Clusterware (Oracle Cluster registry) and voting disk files in Oracle 11.2 ASM disk groups and above.

    Just it.

    Check installation Docs from its release:

    Storage of General Considerations for Oracle Clusterware

  • Frames and Raw Device Mapping

    We used frames for some time on the storage array that we use for our 8 guests ESXi 5.5

    Of course the frames must be enabled at the end

    Array of the ports of kernel VM VMWare DVSwitch <>- <>- <>- Core Switch <>switch - Bladecenter

    If I SSH in one of our guests and to make a vmkping s 9000 to a port on the Bay, it shows that the frames are working well

    We bought another Bay of storage to be used strictly for home video of a surveillance system. I called cameras server that runs as a virtual machine. I added to it a 3 TB of this new array raw device mapping. Can I use the frames between the new table and the virtual machine that uses the RDM? I'm a little unclear on the string "end-to-end" when you use a RDM. The beginning of the part of the string is shown below. Do not know whether or not the RDM traffic crosses the DVSwitch

    Bay <>- Core Switch <>- Bladecenter switch

    When I SSH into a host that has one of the virtual machines with an attached RDM and use vmkping s 9000 to a port on the table ROW home that doesn't

    I have a vlan not routable separated for all traffic storage

    Usable for RDM frames? If yes how to do this job?

    Yes, that's why I try a ping to 8960. It seems that the frames is enabled but due to the load of package, it is a lower number. Most of the devices and or switching equipment ran to 8960-8972. Here's why.

    ICMP/Ping is not encapsulate the 28 bytes ICMP + TCP header. That is why the maximum size of the data part of package 8972 alone. Try the ping to your windows prompt to 8972 and let us know what you get.

    I hope this helps.

  • Creation of Raw Device Mapping (RDM) is not supported for local storage (1017530)

    "Often, localstorage devices do not support VPD page 0x83 and can therefore be used for Raw Device Mappings (RDMS)." The content of the page 0x83 is used as a unique identifier for the device. For more information, see creating Raw Device Mapping (RDM) is not supported for local storage (1017530). »

    Does anyone know if this is even the case for modern storage?

    We are a dell shop, wishing to take advantage of the ability to create up to 64 TB RDM.

    However, the storage of the host in question will be local SAS only.

    Prefer not to have to merge muliple 2 TB VMDK into windows to make a record of 4.5 to.

    Then projected on the presentation 1 x 4.5 CT rdm

    If you plan to use a SAS controller, you should be able to do this. Your drive will be identified as a device of the naa, and you will be able to add as an RDM to VM - only with ESXi 5 (which can support more than 2 TB LUN).

  • How to migrate VM from\TO Raw Device Mapping (RDM) (data store)

    Hi all

    I have aske on the migration of VM from\TO Raw Device Mapping (RDM) (data store)?

    Thank you all for your support

    If you are using vSphere 5, then you can SvMotion the VM attached to a RDM (physical or virtual) with no problems. This means that only RDM mapping file will be moved to another data store without any conversion of changes on the real disc of RDM.

    Note: Do not attempt to change the format of disc thin or thick, which would cause the RDM disk converter for virtual disk.

    More info here: http://blogs.vmware.com/vsphere/2012/02/migrating-rdms-and-a-question-for-rdm-users.html

    If vSphere 4.x is used, hot and then migrate the virtual machine to another store of data will not change the format of the ROW, only mapping file will be moved. This is true for virtual and physical RDM.

    However, the cold migrate the virtual machine to another Datatore will change the ROW to virtual disk format.

    HTH... Let me know if you have any questions...

  • Grey raw device mapping

    We are implementing vsphere 5. our host machine is HP DL 380 G7 and storage storage IBM DS. We are implementing SAS SAN using HBA cables. There is no iSCSI or fiber module. We want to implement file on vphere server using win Server 2008 R2 SP1. We want to access our data directly from SAN LUN and not vmware data store. Whenever we try to add disks of virtual machines, raw device mapping is gray. If we check in the adapters of storage, we can see available LUNS. I don't add it to the data store. still, it is grayed out. Why? Please help us

    Welcome to the community,

    Please read http://kb.vmware.com/kb/1017704 to find out if your storage system supports the RDM and whether it's save to disable the ROW filter. Article is not tagged for ESXi 5.0, but I guess this also applies.

    André

  • VM cloning with raw device mapped drive

    Hey people... need help.

    I have a virtual machine that lives on a 500 GB Lun. The virtual machine has a C: drive of 60 GB (OS) and a 1.5 TB Raw Device Mapped LUN.

    My problem is I'm trying to clone this machine to have a backup of it. However when I try to clone a 500 GB or even 1 TB data store it says that I don't have enough space to do. I went and removed the RDM 1.5 TB LUN in cloning options so that it would only clone the C: drive. Still the same message.

    Also I noticed that the data of 500 GB store the VM currently living has a hard 1.5 to file which I assume is the Raw Device mapped LUN. Why this creates a file if it is mapped SAN. How she even to create a file of 1.5 TB on a 500 GB data store?

    Certainly, this seems to be the reason.  Instead of a clone, use vmware converter standalone and treat the VM as a physical server.  That should allow you to continue.  If nothing else, you can 'remove' the raw device of the VM, clone and then add the raw device to the original.  Converter should work well.

    vExpert

    VMware communities moderator

    vmwise.com / @vmwise

    -KjB

  • Cannot add Raw Device Mapping as hard drive

    Hello

    We have 2 Server 2008 Virtual Machines (which are clustered) that make up a Cluster 2 node x.  The ESX servers that organize these VMs (ESX Server different on each) are connected to a San.  When I place these two VMs, I could add a hard drive "Raw Device Mapping" without problem - he could see data warehouses, I had Setup on the SAN.  However when I try to add a hard drive "Raw Device Mapping" on the 2 new virtual machines, the only options I have are:

    -Create a new virtual disk

    -Use an existing virtual disk

    Any ideas why Raw Device Mappings is greyed out?

    You add the second node RDM disk by selecting "use an existing virtual disk".  The ability to add RAW devices is only available for RAW LUN which has already been mapped to a virtual machine.

    When you add the ROW to the first node, a mapping for the RDM vmdk file was created. It's that developed from the second node.

    See http://kb.vmware.com/kb/1004617 for more details.

    André

  • The kernel cache exists for physical Raw Device Mapping?

    Hello

    I use a SAN storage disk attached to the operating system as "Physical Raw Device Mapping" and mounted at/mnt/disk1.

    I was lke take backup of/mnt/disk1 with "SAN Storage FlashCopy function", which copy entire disk in the SAN storage box, bypassing the operating system Linux and VMware kernel.

    Summary of the backup script is as follows.

    Step1: Synchronize "clear the cache of the Operatiog Linux system

    Step 2: umount/mnt/disk1

    Step 3: ExecFlashCopy ' run SAN Storage FlashCopy function

    Step 4: mount/dev/sde/mnt/disk1

    But if the VMware kernel cache for 'Physical Raw Device Mapping Device', "Empty the Cache of VMware" is necessary in step 2.5.

    You know VMware cache exists for P "effective Raw Device Mapping Device", and how do I rinse it out.

    Thank you.

    Your proposal is false. ESXi is not linux and does not cache for VMFS.

    ESXi does not cache the IO VM guest operating system receives IO acknowledgement when the disk controller to acknowledge completion of e/s.

    ESXi doesn't have any cache for RDM, what is physical or virtual.

    ---

    MCSA, MCTS Hyper-V, VCP 3/4, VMware vExpert

    http://blog.vadmin.ru

  • Virtual Raw Device Mapping

    Can someone explain to me the difference between a regular virtual disk and a virtual raw device mapping? When I create the RDM I am just creating a file pointer to the correct virtual file? If yes why anyone would use virtual raw device instead of just mapping to create a typical virtual drive? I understand the benefits and limitations of the physical RDM I just do not understand the goal of the RDMS virtual.

    Well, even if a RDM in virtual mode allows you to use the tricks and VMware snapshots is not always the same thing as VMFS datastore.   As stated previously, you can easily remove this ROW and the provision of a physical server without losing a bit of data or to copy.

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

  • Aprarece RAW DEVICE MAPPING

    Hola

    Quiero crear una nueva virtual infrastructure mi Máquina y estoy lanzando el Assistant "customized" para indicarle "raw device mapping" hacía una lun of the cabina ISCSI as tengo.

    Me appears "aprarece" in gray.

    ¿Esto porque?, put back esx ven el cabina física, asi como el iscsi datastore software iscsi as tengo con openfiler, y tengo MVs running en esos data warehouses.

    ?¿?¿¿?

    Gracias

    Hola,

    ESO are, primero lo tiene than ver el ESX como una LUn, luego el disco Crystal for the VM as RDM lun of the esa.

    Saludos

  • HP EVA4400 + ESX 3.5.0 + discs Windows 2003 Raw Device Mapping

    Hi all

    I'm testing a configuration to help:

    • HP EVA 4400

    • ESX 3.5

    • Blade HP c-class

    Verification of compatibility EVA4400 on-site HP Spock, I found this note in the section Notes General Guest OS (1): "(7) Raw Device Mapping is not supported on Windows 2003 Guest Operating System load."

    I would use snapshot EVA (BC) to a Windows 2003 Server (not R2) for backup.

    In the VMware HCL, I have not found confirmation of this note.

    1. does anyone know if the note concerned only W2K3 or same W2K3 R2?

    2. "is there anybody out there" who uses this configuration? EVA4400 is: + W2K3 in ESX 3.5 + RDM + instant. Any problem?

    Thank you very much

    Max

    The restriction was lifted (don't know why he never existed - perhaps no trial):

    Release notes for HP StorageWorks 4400 Enterprise Virtual Array (XCS 09006000)

    Reference number: 5697-7997, second edition: January 2009

    * Configuration of VMware for the raw device mapping details

    RAW Device Mapping only is not supported with Windows 2003 Machine virtual guest operating system and versions prior to version ESX 3.5.0.

  • VM 2 not clustered for a raw device mapping

    Hi, I'm new in the world of VMWare. I watch discussions related to this issue, but the only one I met was on "more than a vm in the group for access to the raw device mapping drive". In this thread, we had to change the vmfs to a shared access mode.

    My question is:

    I want to have 2 vm with the same raw disk bound, but only one of them is going to power. This virtual machine (it is power on) will work with the raw disk (data base), while the other virtual machine is turned off. In the case of the first vm failed, I disabled this virtual machine and turn on the virtual machine second. This second vm start working with the database in the raw disk. How can I do this? Is necessary how to access shared for this problem?

    I hope you understand me with my poor English.

    Thank you very much.

    What you want to do is simple, you do not need to use shared mode. Probably the best way to achieve your goal is to build your first virtual machine and get it all set up and then remove (do not remove) the RDM and the clone to the virtual machine. This will result in two virtual machines with the same host name and the same SID (assuming Windows here) - two IDENTICAL systems. Power on each virtual machine in turn (only lit at the time) and add the ROW as an existing drive. As long as one virtual machine is running at the same time, there will be no problem.

    HTH,

    KLC

    Ken Cline

    Technical Director, virtualization

    Wells Landers

    TVAR Solutions, a company of the Wells Landers group

    VMware communities user moderator

  • RAW Device Mapping Vmotion

    I have 3 ESXi hosts in a cluster connected to an EVA 8100.  I'm currnetly is about to migrate to a cluster.  Three of my guests have Raw Devices Mappings.  I get the following error when I try to Vmoiton to the new cluster: "Virtual disk"drive hard 2' is a direct access mapped LUN which is not accessible.""

    I have the RDM, presented through Command View to the new cluster.

    Check in command mode that the LUNS are presented to all hosts with Same ID LUN

    André

  • Best practices - virtual disk of Raw device mapping vs

    Hello

    A small question about the configuration. What would be described as the best practice to configure a comment server that required a large amount of disk space? What is the preferred option:

    1 - create a virtual machine with a mapping of raw device to the LUN (on a san)

    or

    2 - create a virtual machine with another large virtual disk that is in a data store on the LUN (on a san)

    Thank you

    Dave

    Kader you are limited with 2 TB in any case (except using the iSCSI software from within the guest operating system), the only arguments are:

    (1) use RDM if it is possible that you will connect to this physical machine LUN. Or you already have the unit number logic of a physical machine as a large file server.

    (2) VMFS use in all other situations - VMDK give flexibility, you can migrate the virtual machine where you want.

    ---

    MCSA, MCTS, VCP, VMware vExpert 2009

    http://blog.vadmin.ru

Maybe you are looking for