September 11, 2014

Write failed: Broken pipe --------- Issue.

while we try to  ssh from one server to another and we receive above error.

newcqa@cde-app-xx.abc.com:/x01/newcqa23>ssh tomcat@172.25.72.168
Write failed: Broken pipe


first we check with the original server and there is no issue with that, and we switch to the second one..


then we find that we can't switch to the user on the 2nd server. 

 [root@exp-tomcat ~]# su - tomcat
su: cannot set user id: Resource temporarily unavailable


issue with resource limit exceed for tomcat user in the server. 

them we increased the resource limit. 


vi /etc/security/limits.conf

add below entry..
 
tomcat          soft     nproc          2047
tomcat          hard     nproc          16384
tomcat          soft     nofile         1024
tomcat          hard     nofile         65536


Then issue resolved.







 





February 5, 2014

Firmware upgrade on Oracle Sun Spark T3-2 server - step by step guide..

Firmware upgrade on Oracle Sun Spark T3-2 server -  step by step guide..

Step-1

login to Oracle Integrated Lights Out Manager
Step-2
clear FMA faults
Step-3
check the current firmware version
System informaton - summery
Step-4
 select the image file of new firmware to upload
Step-5
Make sure to tick preserve existing configuration  - other vice will have to configure ILOM again
Step-6
wait for update and completed the process.

Step-7
check and verify  firmware is upgraded..





Done.. :)









MOUNT USB HDD/USB PEN DRIVE IN SOLARIS 10



MOUNT USB HDD/USB PEN DRIVE IN SOLARIS 10

Assuming system disabled the auto mount option.
How to check auto Mount is disable or not:
Check whether  volfs is running or not..
root@PHM1SVEWBSCSDB # svcs -a|grep volfs
maintenance    11:55:11 svc:/system/filesystem/volfs:default


****************** if it is in maintenance mode*****************
cat /var/svc/log/system-filesystem-volfs:default.log 

Manual method... 

root@PHM1SVEWBSCSDB# svcadm clear volfs 
root@PHM1SVEWBSCSDB #svcs volfs 
STATE STIME FMRI offline* 22:17:30 svc:/system/filesystem/volfs:default 
root@PHM1SVEWBSCSDB # svcadm enable -s volfs 
root@PHM1SVEWBSCSDB #svcs volfs 
STATE STIME FMRI online 22:17:42 svc:/system/filesystem/volfs:default 
**********************************************************************
if it is disabled, enable it for enable auto-mounting option.
svcadm enable volfs
If the  usb flash is recognize by the system it will be mount and you  can see the
status with
root@PHM1SVEWBSCSDB # rmformat -l
Looking for devices...
     1. Logical Node: /dev/rdsk/c1t6d0s2
        Physical Node: /pci@400/pci@2/pci@0/pci@4/scsi@0/iport@40/cdrom@p6,0
        Connected Device: TEAC     DV-W28SS-R       1.0C
        Device Type: DVD Reader/Writer
     2. Logical Node: /dev/rdsk/c2t0d0s2
        Physical Node: /pci@400/pci@2/pci@0/pci@f/pci@0/usb@0,2/hub@2/hub@3/storage@2/disk@0,0
        Connected Device: AMI      Virtual CDROM    1.00
        Device Type: CD Reader
     3. Logical Node: /dev/rdsk/c9t0d0s2
        Physical Node: /pci@400/pci@2/pci@0/pci@f/pci@0/usb@0,2/hub@4/storage@1/disk@0,0
        Connected Device: WDC WD20 EZRX-00DC0B0
        Device Type: Removable
For mount USB HDD
set the default solaris partition up (pick the default prompt here)
# fdisk /dev/rdsk/[device_name]
get the number of sectors in the disk (look for the 'Sector Count' column)
# prtvtoc /dev/rdsk/[device_name]
make a ufs filesystem on the device
# newfs -v -s [sector_count] /dev/rdsk/[device_name]
make a mountpoint
# mkdir /usbdrive
mount the formatted disk (note that we no longer use the raw disk here (rdisk))
# mount /dev/dsk/[device_name] /usbdrive

 To find under what names file systems are mounted:  use the
root@PHM1SVEWBSCSDB #df -k