Provision LUNs on Solaris from NetApp Storage for Oracle DataGuard using ASM Technology

| 0 Comments | 0 TrackBacks

Create a 500g volume with space guaranteed for the volume.

vol create new_vol -s volume aggr0 500g

Resize the volume if needed
vol size new_vol 600g

Offline and destroy volume if a mistake was made
vol offline new_vol
vol destroy new_vol

Create the qtree
qtree create /vol/new_vol/new_qtree

Create the 50g LUNs for Solaris
lun create -s 50g -t solaris /vol/new_vol/new_qtree/new101_lun
lun create -s 50g -t solaris /vol/new_vol/new_qtree/new102_lun
lun create -s 50g -t solaris /vol/new_vol/new_qtree/new103_lun
lun create -s 50g -t solaris /vol/new_vol/new_qtree/new104_lun

Map the LUNs
lun map /vol/new_vol/new_qtree/new101_lun SYSTEM01 101
lun map /vol/new_vol/new_qtree/new102_lun SYSTEM01 102
lun map /vol/new_vol/new_qtree/new103_lun SYSTEM01 103
lun map /vol/new_vol/new_qtree/new103_lun SYSTEM01 104

vtoc
cat > /tmp/vtoc50g << EOF
       0      0    00      16384 104808448 104824831
       2      5    01          0 104824832 104824831
EOF

Label disks and apply layout
fmthard -s /tmp/vtoc50g /dev/rdsk/c10t600xxxxxxd101s2
fmthard -s /tmp/vtoc50g /dev/rdsk/c10t600xxxxxxd102s2
fmthard -s /tmp/vtoc50g /dev/rdsk/c10t600xxxxxxd103s2
fmthard -s /tmp/vtoc50g /dev/rdsk/c10t600xxxxxxd104s2

Update permissions
chown oracle:dba /dev/rdsk/c10t600*d10*
chown oracle:dba /dev/dsk/c10t600*d10*

The DBA can now go ahead with adding the disks underl ASM control.

No TrackBacks

TrackBack URL: http://baldwinsung.com/cgi-bin/mt-tb.cgi/129

Leave a comment

Recent Entries

Oracle Table & User Permissions
Example of Oracle Table & User Permissions: CREATE TABLESPACE MYDATABASE_ts DATAFILE '/db/MYDATABASE/MYDATAVASE.dbf' SIZE 10M AUTOEXTEND ON NEXT 10M DEFAULT STORAGE…
Configuring NTP on Linux CentOS & RHEL
yum install ntp -y mv /etc/ntp.conf /etc/ntp.conf.orig cat > /etc/ntp.conf << EOF restrict default kod nomodify notrap nopeer noquery…
Sun Disk Mirroring using Software RAID DiskSuite/ODS/Volume Manager
Duplicate Disk Layout prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2 Configure replicas on both disks metadb -afc 3 c1t0d0s7…