Add asm space in AVDF server

## Below doc to be followed to identify newly added disks.

http://erman-arslan-s-oracle-forum.2340467.n4.nabble.com/Script-to-get-the-WWID-of-disks-td7134.html

[root@avdf ~]# for disk in `ls /dev/sd*`; do disk_short=`basename $disk`; wwid=`scsi_id -g -u -d /dev/$disk_short`; if [ “$wwid” != “” ]; then   echo -e “Disk:” $disk_short “\tWWID:” $wwid|grep sdy; fi; done

Disk: sda       WWID: 3600a098038304571793f4e7550393733

Disk: sda1      WWID: 3600a098038304571793f4e7550393733

Disk: sda2      WWID: 3600a098038304571793f4e7550393733

[root@avdf ~]# for disk in `ls /dev/sd*`; do disk_short=`basename $disk`; wwid=`scsi_id -g -u -d /dev/$disk_short`; if [ “$wwid” != “” ]; then   echo -e “Disk:” $disk_short “\tWWID:” $wwid|grep sdz; fi; done

Disk: sdb       WWID: 3600a098038304571793f4e7550393734

Disk: sdb1      WWID: 3600a098038304571793f4e7550393734

Disk: sdb2      WWID: 3600a098038304571793f4e7550393734

[root@auditvault1 by-id]# /sbin/parted /dev/sdy

GNU Parted 2.1

Using /dev/sdy

Welcome to GNU Parted! Type ‘help’ to view a list of commands.

(parted) print

Error: /dev/sda: unrecognised disk label

(parted) mklabel gpt

(parted) print

Model: NETAPP LUN C-Mode (scsi)

Disk /dev/sda: 645GB

Sector size (logical/physical): 512B/4096B

Partition Table: gpt

Number  Start  End  Size  File system  Name  Flags

(parted) mkpart primary ext3

Start? 0GB

End? 300GB

(parted) mkpart primary ext3

Start? 300GB

End? 600GB

(parted) print

Model: NETAPP LUN C-Mode (scsi)

Disk /dev/sda: 645GB

Sector size (logical/physical): 512B/4096B

Partition Table: gpt

Number  Start   End    Size   File system  Name     Flags

 1      1049kB  300GB  300GB               primary

 2      300GB   600GB  300GB               primary

(parted) quit

[root@auditvault1 by-id]# ls -l /dev/sda*

brw-rw—- 1 root disk 65, 128 May 13 09:08 /dev/sda

brw-rw—- 1 root disk 65, 129 May 13 09:07 /dev/sda1

brw-rw—- 1 root disk 65, 130 May 13 09:07 /dev/sda2

[root@avdf by-id]# oracleasm createdisk -v EVENTDATA1 /dev/sda1

[root@avdf by-id]# oracleasm createdisk -v EVENTDATA2 /dev/sda2

How To Add Local Disks To The Audit Vault Server ASM Instance (Doc ID 1923751.1)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s