Thursday, 27 December 2018

report service kill command

kill -9 $(ps -ef | grep [N]odeManager | awk '{print $2}')

kill -9 $(ps -ef | grep oracle | grep report | awk '{print $2}')​

Monday, 17 December 2018

NFS volume mount in solaris 11

svcs -a |grep nfs
 
On NFS server
# share -F nfs -o rw=[accesslist] /path/to/share
# share -F nfs -o rw=client1,client2 /export
# share -F nfs -o rw=@client1:/export /export
# showmount -e 
 
On NFS client
# mount -F nfs -o [options] [NFS_server]:[mountpoint]
 
  
  # mount -F nfs  10.11.1.xxx:/BARMAN /BARMAN
  # mount -F nfs -o rsize=32768,wsize=32768  10.11.1.xxx:/BARMAN /BARMAN
 
 
 
NFS volume mount in RedHat linux 7.6
 
 
For Database server:

# groupadd nfs
# usermod -a -G nfs nfsnobody
# chmod 0770 /nfs
# chgrp nfs /nfs
 
vi /etc/exports
/nfs box1(rw,sync,sec=krb5,anongid=1004) 
/u01 * (rw,sync,all_squash,anonuid=54321,anongid=54321) 

# exportfs -arv

service nfs start/stop/restart/status


local directory: /hrm/PDF

For Application:
 mount -t nfs 10.11.1.XXX:/hrm/PDF /u01/orbhrm/pdf/​
mount -t nfs -O user=oracle,pass=oracle,file_mode=0777,dir_mode=0777,uid=oracle,gid=oinstall 10.11.1.XXX:/u05/test  /u05/test

local Directory: /u01/orbhrm/pdf

entry /etc/fstab
server:/usr/local/pub    /pub   nfs    defaults 0 0

10.11.1.xxx:/hrm/PDF          /u01/orbhrm/pdf   nfs   defaults  0 0
 

Tuesday, 4 December 2018

Raid config for Sun T7-1 server

RAID Volumes:

-> set /HOST/bootmode script="setenv auto-boot? false"

 

ok show-devs
...
/pci@301/pci@2/scsi@0/disk@p0

 

ok devalias
...
scsi0                    /pci@301/pci@2/scsi@0
scsi                     /pci@301/pci@2/scsi@0
...
ok select scsi
ok show-volumes  
ok show-volumes
Volume 0 Target 389  Type RAID1 (Mirroring)
  WWID 03b2999bca4dc677
  Optimal  Enabled  Inactive 
  2 Members                    583983104 Blocks, 298 GB
  Disk 1 
    Primary  Optimal 
    Target 9      HITACHI  H103030SCSUN300G A2A8
  Disk 0 
    Secondary  Optimal 
    Target c      HITACHI  H103030SCSUN300G A2A8
ok inactive_volume activate-volume
ok 0 activate-volume
Volume 0 is now activated
ok unselect-dev
ok probe-scsi-all
/pci@301/pci@2/scsi@0
 
FCode Version 1.00.54, MPT Version 2.00, Firmware Version 5.00.17.00
 
Target a 
  Unit 0   Removable Read Only device   TEAC    DV-W28SS-R      1.0C                    
  SATA device  PhyNum 3 
Target b 
GB  Unit 0   Disk   SEAGATE  ST914603SSUN146G 0868    286739329 Blocks, 146 
  SASDeviceName 5000c50016f75e4f  SASAddress 5000c50016f75e4d  PhyNum 1 
Target 389 Volume 0 
  Unit 0   Disk   LSI      Logical Volume   3000    583983104 Blocks, 298 GB
  VolumeDeviceName 33b2999bca4dc677  VolumeWWID 03b2999bca4dc677
 
/pci@300/pci@2/usb@0/hub@3/storage@1/disk@0
  Unit 0   Removable Read Only device    AMI     Virtual CDROM   1.00
ok setenv auto-boot? true
To create a RAID volume, type:
# raidconfig create raid options -d disks
For example, to create a RAID 0 volume with a stripe size of 128 Kb and read-ahead caching enabled on controller 1, type the following command:
# raidconfig create raid --stripe-size=128 --read-cache=enabled -d c1d0,c1d1
    To delete a RAID volume, type:
# raidconfig delete raid option
For example:
  • To delete RAID volume 1 created on controller 1, type:
    # raidconfig delete raid -r c1r1
  • To delete all RAID volumes, type:
    # raidconfig delete raid --all