Skip to main content

ASM Device creation on Physical/Vertual Machine RHEL 5 - 6










Step 1:
Scan the new Luns. Check how many Scsi hosts are available
# ls –l /sys/class/scsi_host/
# echo “- – -” > /sys/class/scsi_host/host1/scan
# echo “- – -” > /sys/class/scsi_host/host2/scan
# echo “- – -” > /sys/class/scsi_host/host3/scan
# echo “- – -” > /sys/class/scsi_host/host4/scan
For fibre channel you have to scan like below.
# echo “1” >/sys/class/fc_host/host0/issue_lip
# echo “1” >/sys/class/fc_host/host1/issue_lip
Step 2:
Verify the new Lun with the LDEV number provided by Storage side.
# multipath –ll | grep –I
# /opt/osit/linux/bin/xpinfo -il | grep -i
Step 3:
Provide the new lun details to Requestor/Database Team
Step 4:
Add the Alias name for the new lun which they have provided..
Example:
Before change:
# vi /var/lib/multipath/bindings
mpatha 3600508b1001034323720202020200000 mpathd 350002ac92e6c1340 mpathe 350002ac92ec31340 mpathf 350002ac92ec81340
After Change:
# vi /var/lib/multipath/bindings
mpatha 3600508b1001034323720202020200000
IVR_DATA_14 350002ac92e6c1340 IVR_DATA_15 350002ac92ec31340 IVR_DATA_16 350002ac92ec81340
Step 5:
Reload the multipath daemon
# service multiapthd reload
Step 6:
#create Partition or relabeled it.
/dev/mapper/asm001p1
#cd /dev/asmdevices
ls -lrt asm001p1 you can see the partition here.

But for Vm servers Need to follow some the below process.

step-1
Need to identify the newly assigned disk on the server,
you can check the new disk by lsblk
guest-pbnnfz@test:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop1    7:1    0 226.5M  1 loop /snap/pycharm-community/79
loop8    7:8    0  86.9M  1 loop /snap/core/4917
loop6    7:6    0    87M  1 loop /snap/core/5145
loop4    7:4    0 217.6M  1 loop /snap/pycharm-educational/7
sr0     11:0    1  1024M  0 rom 
loop2    7:2    0 218.2M  1 loop /snap/pycharm-educational/9
loop0    7:0    0 226.5M  1 loop /snap/pycharm-community/83
sda      8:0    0 465.8G  0 disk
├─sda2   8:2    0 457.4G  0 part /
├─sda3   8:3    0   7.9G  0 part [SWAP]
└─sda1   8:1    0   512M  0 part /boot/efi
loop7    7:7    0  87.9M  1 loop /snap/core/5328
loop5    7:5    0 217.7M  1 loop /snap/pycharm-educational/8
loop3    7:3    0 226.5M  1 loop /snap/pycharm-community/85


once you identify the disk check the wwn of the particular disk from the below path

guest-pbnnfz@test:/dev/disk/by-id$ ls -lrt
total 0
lrwxrwxrwx 1 root root  9 Sep 25 10:49 wwn-0x50000395a3d05690 -> ../../sda
lrwxrwxrwx 1 root root  9 Sep 25 10:49 ata-TOSHIBA_MQ01ABF050_74ELCD29T -> ../../sda
lrwxrwxrwx 1 root root  9 Sep 25 10:49 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root  9 Sep 25 10:49 ata-HL-DT-ST_DVD+_-RW_GU90N_KMJZ7842202 -> ../../sr0
lrwxrwxrwx 1 root root 10 Sep 25 10:49 wwn-0x50000395a3d05690-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 25 10:49 ata-TOSHIBA_MQ01ABF050_74ELCD29T-part3 -> ../../sda3



Step-2
modify the file
/etc/sysconfig/asmdevices
add the wwn no of the disk and ASM alias name
exp:
vi /etc/sysconfig/asmdevices
50000395a3d05690  ASM001


Step-3
Trigger the ASM udev rules.
#udevadm trigger.


Step-4
Verify the newly assigned disk at ask level.



Thanks



Comments

Popular posts from this blog

HP SMART ARRAY CLI COMMANDS

Show configuration : /opt/hp/hpssacli/bin/hpssacli ctrl all show config Controller status /opt/hp/hpssacli/bin/hpssacli ctrl all show status Show detailed controller information for all controllers /opt/hp/hpssacli/bin/hpssacli ctrl all show detail Show detailed controller information for controller in slot 0 /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail Rescan for New Devices /opt/hp/hpssacli/bin/hpssacli rescan Physical disk status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show status Show detailed physical disk information /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 pd all show detail Logical disk status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld all show status View Detailed Logical Drive Status /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 ld 2 show Create New RAID 0 Logical Drive /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0 Create New RAID 1 Logical Drive /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 create type=ld dri...

Monthly Mksys OS backup AIX

Step-1 Estimate Backup: ================================================================= df -tk `lsvgfs rootvg` | awk ‘{total+=$3}\ END {printf “Estimated mksysb size: %d bytes, %.2f GB\n”, total*1024, total/1024/1024}’ It will give you the estimated time of backup, Step-2 Backup Command: backupios -file /home/padmin/28August2013_TESTVIOI_mksysb ===============> VIO Backup Command mksysb -e -i -X /mksysb/10Nov2013_server-1_mksysb============================>AIX server Backup command Step-3 ================= Pre -checks: => check NFS FS size(Backup file) and root vg FS sizes . Note : if any FS Full Zip old logs => To check performance of the server => To check root VG FS => To check /etc/exclude ========================== Step-4 ================================ server-1 mksysb -e -i -X /mksysb/02March2014_server-1_mksysb server-2 mksysb -e -i -X /mksysb/02March2014_sever-2_mksysb Post checkups: ==> check the process running o...

HP proliant SERVER hardware commands

to check the failed disk, adapter, any physical component on hp prolient server use the below important command. # hpacucli controller all show config———-to See the failed disk in HP proliant server  Smart Array P410i in Slot 0 (Embedded) (sn: 500143802590F6C0) logicaldrive 1 (558.9 GB, RAID 1, Interim Recovery Mode) array A (SAS, Unused Space: 0 MB) physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 600 GB, OK) physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 600 GB, Failed)====>indicating the faild drive SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 500143802590F6CF) [root@TEST:/root]# hpacucli ctrl slot=0 show Smart Array P410i in Slot 0 (Embedded) Bus Interface: PCI Slot: 0 Serial Number: 500143802590F6C0 Cache Serial Number: PBCDH0CRH1Z6R3 RAID 6 (ADG) Status: Disabled Controller Status: OK Hardware Revision: C Firmware Version: 6.60 Rebuild Priority: Medium Expand Priority: Medium Surface Scan Delay: 3 secs Surface Scan Mode: Idle Queue Depth: Autom...