Add disk to ASM (solaris 10 x84_64)

1. Öncelikle format komutu ile ilgili diskimi buluyorum.

root@OBT-MRXDB2 # format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
 0. c0t0d0 <HP -LOGICAL VOLUME -3.22 cyl 17841 alt 2 hd 255 sec 63>
 /pci@0,0/pci8086,3c06@2,2/pci103c,3354@0/sd@0,0
 1. c6t50002AC2AC8E2171d0 <3PARdat-VV -3123 cyl 1532 alt 2 hd 128 sec 32> OV03
 /scsi_vhci/disk@g50002ac2ac8e2171
 2. c6t50002AC48CF32171d0 <3PARdat-VV -3123 cyl 2044 alt 2 hd 128 sec 32> OV04
 /scsi_vhci/disk@g50002ac48cf32171
 3. c6t50002AC81D7A2171d0 <3PARdat-VV -3123 cyl 13051 alt 2 hd 255 sec 63> FRA01
 /scsi_vhci/disk@g50002ac81d7a2171
 4. c6t50002AC81D752171d0 <3PARdat-VV -3123 cyl 6524 alt 2 hd 255 sec 63> DATA01
 /scsi_vhci/disk@g50002ac81d752171
 5. c6t50002AC81D762171d0 <3PARdat-VV -3123 cyl 6524 alt 2 hd 255 sec 63> DATA02
 /scsi_vhci/disk@g50002ac81d762171
 6. c6t50002AC81D772171d0 <3PARdat-VV -3123 cyl 6524 alt 2 hd 255 sec 63> DATA03
 /scsi_vhci/disk@g50002ac81d772171
 7. c6t50002AC90E102171d0 <3PARdat-VV -3123 cyl 32632 alt 2 hd 255 sec 63> DATA10
 /scsi_vhci/disk@g50002ac90e102171
 8. c6t50002AC182C72171d0 <3PARdat-VV -3123 cyl 6524 alt 2 hd 255 sec 63> DATA04
 /scsi_vhci/disk@g50002ac182c72171
 9. c6t50002AC182C82171d0 <3PARdat-VV -3123 cyl 6524 alt 2 hd 255 sec 63> DATA05
 /scsi_vhci/disk@g50002ac182c82171
 10. c6t50002AC182C92171d0 <3PARdat-VV -3123 cyl 6524 alt 2 hd 255 sec 63> DATA06
 /scsi_vhci/disk@g50002ac182c92171
 11. c6t50002AC182CA2171d0 <3PARdat-VV -3123 cyl 6524 alt 2 hd 255 sec 63> DATA07
 /scsi_vhci/disk@g50002ac182ca2171
 12. c6t50002AC182D62171d0 <3PARdat-VV -3123 cyl 13051 alt 2 hd 255 sec 63> DATA08
 /scsi_vhci/disk@g50002ac182d62171
 13. c6t50002AC182D72171d0 <3PARdat-VV -3123 cyl 13051 alt 2 hd 255 sec 63> DATA09
 /scsi_vhci/disk@g50002ac182d72171
 14. c6t50002AC785A92171d0 <3PARdata-VV-3123-150.00GB> u02
 /scsi_vhci/disk@g50002ac785a92171
 15. c6t50002AC183102171d0 <3PARdat-VV -3123 cyl 1532 alt 2 hd 128 sec 32> OV01
 /scsi_vhci/disk@g50002ac183102171
 16. c6t50002AC183112171d0 <3PARdat-VV -3123 cyl 1532 alt 2 hd 128 sec 32> OV02
 /scsi_vhci/disk@g50002ac183112171

2. Diski formatlıyorum ve label’lıyorum.

disk

3. diskin ismini format çıktısından alıp (c6t50002AC90E102171d0) gerekli yetkileri veriyorum.

root@OBT-MRXDB2 # ls -l /dev/rdsk/c6t50002AC90E102171d0s0
lrwxrwxrwx 1 root root 52 Apr 21 11:32 /dev/rdsk/c6t50002AC90E102171d0s0 -> ../../devices/scsi_vhci/disk@g50002ac90e102171:a,raw
root@OBT-MRXDB2 # cd /dev/oracle
root@OBT-MRXDB2 # ln -s ../../devices/scsi_vhci/disk@g50002ac90e102171:a,raw ASMDISK15
root@OBT-MRXDB2 # chown -h grid:asmadmin ASMDISK15
root@OBT-MRXDB2 # ls -l
total 15
lrwxrwxrwx 1 grid asmadmin 52 Feb 27 2013 ASMDISK01 -> ../../devices/scsi_vhci/disk@g50002ac81d7a2171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Feb 27 2013 ASMDISK02 -> ../../devices/scsi_vhci/disk@g50002ac81d752171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Feb 27 2013 ASMDISK03 -> ../../devices/scsi_vhci/disk@g50002ac81d762171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Feb 27 2013 ASMDISK04 -> ../../devices/scsi_vhci/disk@g50002ac81d772171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 11 2013 ASMDISK05 -> ../../devices/scsi_vhci/disk@g50002ac182c72171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 11 2013 ASMDISK06 -> ../../devices/scsi_vhci/disk@g50002ac182c82171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 11 2013 ASMDISK07 -> ../../devices/scsi_vhci/disk@g50002ac182c92171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 11 2013 ASMDISK08 -> ../../devices/scsi_vhci/disk@g50002ac182ca2171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 11 2013 ASMDISK09 -> ../../devices/scsi_vhci/disk@g50002ac182d62171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 11 2013 ASMDISK10 -> ../../devices/scsi_vhci/disk@g50002ac182d72171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 11 2013 ASMDISK11 -> ../../devices/scsi_vhci/disk@g50002ac183102171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 11 2013 ASMDISK12 -> ../../devices/scsi_vhci/disk@g50002ac183112171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 25 2013 ASMDISK13 -> ../../devices/scsi_vhci/disk@g50002ac2ac8e2171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Jul 25 2013 ASMDISK14 -> ../../devices/scsi_vhci/disk@g50002ac48cf32171:a,raw
lrwxrwxrwx 1 grid asmadmin 52 Apr 21 15:59 ASMDISK15 -> ../../devices/scsi_vhci/disk@g50002ac90e102171:a,raw
root@OBT-MRXDB2 # chown -h grid:asmadmin ../../devices/scsi_vhci/disk@g50002ac90e102171:a,raw
root@OBT-MRXDB2 # chmod 660 ../../devices/scsi_vhci/disk@g50002ac90e102171:a,raw

root@OBT-MRXDB2 # ls -l ../../devices/scsi_vhci/disk@g50002ac90e102171:a,raw
crw-rw---- 1 grid asmadmin 30, 1408 Apr 21 16:00 ../../devices/scsi_vhci/disk@g50002ac90e102171:a,raw

4. Son olarak sqlplus ile ASM’e bağlanıp disk’i ekliyorum.

grid-OBT-MRXDB1 $ sql
SQL*Plus: Release 11.2.0.2.0 Production on Tue Apr 21 15:51:52 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options

SQL> alter diskgroup DATA add disk '/dev/oracle/ASMDISK15';
Diskgroup altered.

Kolay gelsin.

Bir Cevap Yazın

Aşağıya bilgilerinizi girin veya oturum açmak için bir simgeye tıklayın:

WordPress.com Logosu

WordPress.com hesabınızı kullanarak yorum yapıyorsunuz. Log Out / Değiştir )

Twitter resmi

Twitter hesabınızı kullanarak yorum yapıyorsunuz. Log Out / Değiştir )

Facebook fotoğrafı

Facebook hesabınızı kullanarak yorum yapıyorsunuz. Log Out / Değiştir )

Google+ fotoğrafı

Google+ hesabınızı kullanarak yorum yapıyorsunuz. Log Out / Değiştir )

Connecting to %s