[racattack] Re: Command "/sbin/scsi_id -g -u -d /dev/sdb" return nothing

  • From: Maaz Anjum <maazanjum@xxxxxxxxx>
  • To: "racattack@xxxxxxxxxxxxx" <racattack@xxxxxxxxxxxxx>
  • Date: Sun, 6 Apr 2014 14:18:31 -0400

If visual aids are more of your thing, then Kamram put together an amazing
video of the steps in the lab manual. We had it up and running at OOW13
during RACATtack.

Check it out.

http://kamranagayev.com/2013/09/22/step-by-step-installing-oracle-12c-rac-on-virtualbox/


On Sun, Apr 6, 2014 at 2:10 PM, Alvaro Miranda Aguilera
<kikitux@xxxxxxxxx>wrote:

> then there is no output from that command, and you can continue, I think
> the command are soem command and then start_udev
>
>
> On Mon, Apr 7, 2014 at 2:12 AM, Hanh Nguyen <hanhnguyen2100@xxxxxxxxx>wrote:
>
>> Yes, the "device rules" file was created in Step 4 of the "Configure
>> Storage Persistent naming" section, but the  RESULT=="".
>> Hanh,
>>
>> [root@collabn1 ~]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules
>> KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d
>> /dev/$parent",  RESULT=="", NAME="asm-disk1", OWNER="oracle",
>> GROUP="dba", MODE="0660"
>> KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d
>> /dev/$parent",  RESULT=="", NAME="asm-disk2", OWNER="oracle", GROUP="dba",
>> MODE="0660"
>> KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d
>> /dev/$parent",  RESULT=="", NAME="asm-disk3", OWNER="oracle", GROUP="dba",
>> MODE="0660"
>> KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d
>> /dev/$parent",  RESULT=="", NAME="asm-disk4", OWNER="oracle", GROUP="dba",
>> MODE="0660"
>> [root@collabn1 ~]#
>>
>>
>>
>> On Sun, Apr 6, 2014 at 12:05 AM, Alvaro Miranda Aguilera <
>> kikitux@xxxxxxxxx> wrote:
>>
>>> seems the comand should create /etc/udev/rules.d/99-oracle-
>>> asmdevices.rules
>>>
>>> can you do
>>>
>>> cat /etc/udev/rules.d/99-oracle-asmdevices.rules
>>>
>>>
>>>
>>>
>>> On Sun, Apr 6, 2014 at 2:08 PM, Hanh Nguyen <hanhnguyen2100@xxxxxxxxx>wrote:
>>>
>>>> Yes, I used 'Virtual Media Manager' GUI to make the 4 ASM disks
>>>> sharable. Attached is the output for 'fdisk -l' command.
>>>> By the way, when I run the command below for /dev/sdb, I entered 1 for
>>>> partition
>>>> fdisk /dev/sdb. When I run the same command for 'fdisk /dev/sdc',
>>>> should I enter '2' for this device/disk?
>>>>
>>>>
>>>> On Sat, Apr 5, 2014 at 6:54 PM, Alvaro Miranda <kikitux@xxxxxxxxx>wrote:
>>>>
>>>>> did you create the shared disk ?
>>>>>
>>>>> what you get with
>>>>>
>>>>> fdisk -l
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 6/04/2014, at 10:12 am, Hanh Nguyen <hanhnguyen2100@xxxxxxxxx>
>>>>> wrote:
>>>>>
>>>>> I'm expecting a long Hexadecimal(?) ID for this command, but it
>>>>> returned nothing. What could be missing?
>>>>> Hanh,
>>>>> I am at section "Configure Storage Persistent Naming" under Chapter
>>>>> 5: "Create Cluster" for Oracle12c, Step 4. Prepare the file
>>>>> */etc/udev/rules.d/99-oracle-asmdevices.rules* by running the
>>>>> following script:
>>>>>
>>>>>    1.
>>>>>
>>>>>    i=1
>>>>>    cmd="/sbin/scsi_id -g -u -d"
>>>>>    for disk in sdb sdc sdd sde ; do
>>>>>             cat <<EOF >> /etc/udev/rules.d/99-oracle-asmdevices.rules
>>>>>    KERNEL=="sd?1", BUS=="scsi", PROGRAM=="$cmd /dev/\$parent", \
>>>>>     RESULT=="`$cmd /dev/$disk`", NAME="asm-disk$i", OWNER="oracle", 
>>>>> GROUP="dba", MODE="0660"
>>>>>    EOF
>>>>>             i=$(($i+1))
>>>>>    done
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>


-- 
A life yet to be lived...

Other related posts: