Vous êtes sur la page 1sur 3

ASM LUN creation on multiple nodes

1) Collect the following prior to execute scanning of the LUNs


# multipath l > /var/tmp/multipath.out.date

# /opt/osit/linux/bin/xpinfo -in > /var/tmp/xp.out.date

Or /opt/osit/linux/bin/evainfo -W > /var/tmp/ev.out.date

2) LUN Rescan on each node with /usr/bin/rescan-scsi-bus.sh command.

# /usr/bin/rescan-scsi-bus.sh

3) Verify the Device-Mapper (dm-XX) of multipath associated of LUN and WWN with
multipath -l on each node

# multipath -l

4) Create alias on /etc/multipath.conf with using below xspamXX nomenclature (or


already mentioned nomenclature in the system) on each node and then run
multipath v3 command. (Confirm from which storage the LUNs are assigned with
storage team)

xp7 storage xp7


xp9 storage p9500

example: xp7asmanuods1p1
xp7 storage
asm asm
anuods oracle SID
1 lun number
p1 partition number

# multipath v3

5) Create the Linux partition with fdisk /dev/mapper/xpasmXX command only on one
node!!!!

# fdisk /dev/mapper/ xpasmXX


p - print current partitions
n - create new partitions -make use of free space as per requirement.
p Make sure the partition created
w Write and save the current configuration to disk

Example:

#fdisk -l /dev/mapper/xpasm30

Disk /dev/mapper/xpasm30: 107.8 GB, 107898470400 bytes


255 heads, 63 sectors/track, 13117 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System


/dev/mapper/xpasm30p1 1 13117 105362271 83 Linux

6) Run, on each node, the command, this command create device maps from partition
tables

Example

# kpartx -a /dev/mapper/xpasm30

IMPORTANT !!

7) To verify the correct execution of activity follow the steps below:

- Verify the major number of ASM volume

ls -l /dev/mapper/xpasm30
brw-rw---- 1 root disk 253, 6 Jun 13 00:14 /dev/mapper/xpasm30

- Verify the major and minor number of ASM volume partition

ls -l /dev/mapper/xpasm30p1
brw-rw---- 1 root disk 253, 74 Jun 13 00:14 /dev/mapper/xpasm30p1

- Check if exists the dm- relative to minor number:

ls -l /dev/dm-74
brw-rw---- 1 root root 253, 74 Jun 13 00:14 /dev/dm-74

If not exists, the activity is unsuccessful, maybe that the LUN not clear and the ASM
volume is not create correctly so Contact L3 team for support.

Rollback Option:
1) Remove alias name from /etc/multuipath.conf

# multipath -f WWID
# vi /etc/multipath.conf

2) Refresh the multipath service

# service multipathd reload

3) Remove device files from the OS

# echo 1 > /sys/block/<s device>/device/delete

Vous aimerez peut-être aussi