Thursday, April 30, 2015

MAP NFS



To map NFS execute below command -

$ cd /cts/orainst/install;./mapnfs.sh -B

---------------------------------------------------------------------

sudo /creditS/orainst/install/mapnfs.sh -A -t asmdat -g DATA1 -q 2 -s /data/oracle

sudo /creditS/orainst/install/mapnfs.sh -A -t asmdat -q 2 -s /data/oracle


I wanted to created 40 LUNs in /data/oracle/SLNTR010_DATA and have these available to ASM Disk Group SLNTR010_DATA1.


grid@srv-20001085:/creditS/oracle/grid/ [+ASM1] sudo /creditS/orainst/install/mapnfs.sh
INFO: UID of running user is 0
Usage: mapnfs.sh ... options ...
  -B # (Boot) - tworzy linki.
  -I [-z LUN size] # (Install)
  -D # (Deinstall)
  -A -t dbpw|asmdat [-g dgname] [-q num] [-s SMO mount] # (Add device(S))
                    [-z LUN size] # (Add device (cont)
  -R -l devname # (Remove device)
                                                         # (Install and Add Lun Sizes)
                                                         # LUN Size: Small = 9Gb Luns
                                                         # LUN Size: Medium = 64Gb Luns
                                                         # LUN Size: Large = 256Gb Luns
                                                         # LUN Size: XLarge = 512Gb Luns
grid@srv-20001085:/creditS/oracle/grid/ [+ASM1]


sudo /creditS/orainst/install/mapnfs.sh -A -t asmdat -g STNDBY20_DATA1 -q 2 -s /data/oracle/STNDBY20_DATA -z XLarge



grid@srv-20001085:/creditS/oracle/grid/ [+ASM1] sudo /creditS/orainst/install/mapnfs.sh -A -t asmdat -g STNDBY20_DATA1 -q 1 -s /data/oracle/STNDBY20_DATA
INFO: UID of running user is 0
Small Lun Size 9216 Mb.
Looks like there is enough room in /data/oracle/STNDBY20_DATA
Creating /data/oracle/STNDBY20_DATA/asmdat_s1lnmr20_data1.0052.9216.lun ...
9216+0 records in
9216+0 records out
9663676416 bytes (9.7 GB) copied, 74.6952 seconds, 129 MB/s
grid@srv-20001085:/creditS/oracle/grid/ [+ASM1]


sudo /creditS/orainst/install/mapnfs.sh -R -l /data/oracle/STNDBY20_DATA/asmdat_s1lnmr20_data1.0052.9216.lun



grid@srv-20001085:/creditS/oracle/grid/ [+ASM1] 0_DATA1 -q 2 -s /data/oracle/STNDBY20_DATA -z XLarge <
INFO: UID of running user is 0
XLarge Lun Size 524288 Mb.
Looks like there is enough room in /data/oracle/STNDBY20_DATA
Creating /data/oracle/STNDBY20_DATA/asmdat_s1lnmr20_data1.0052.524288.lun ...
524288+0 records in
524288+0 records out
549755813888 bytes (550 GB) copied, 5990.54 seconds, 91.8 MB/s
Creating /data/oracle/STNDBY20_DATA/asmdat_s1lnmr20_data1.0053.524288.lun ...
524288+0 records in
524288+0 records out
549755813888 bytes (550 GB) copied, 4766.49 seconds, 115 MB/s


just one command
sudo /creditS/orainst/install/mapnfs.sh -A -t asmdat -g STNDBY20_DATA1 -q 1 -s /data/oracle/STNDBY20_DATA

that will -A add asmdat disks to group STNDBY20_DATA1

-q quantity =1

-s link

so after that command
sudo /creditS/orainst/install/mapnfs.sh -A -t asmdat -g STNDBY20_DATA1 -q 1 -s /data/oracle/STNDBY20_DATA

You will have to run
sudo /creditS/orainst/install/mapnfs.sh -B
and You have new candidats in asm
if You add -z You can select what would be new size of disk
okay, great ..

No comments:

Post a Comment