Solaris

File System shows 100% occupied but du tells different and still has Unused Spaces.

We have faced an issue as below mentioned – found /oracle mount-point showing 100% as Used. But getting different size values for folders under /oracle mount-point, when we executed du -gs . bash-4.4# df -gFilesystem GB blocks Free %Used Iused %Iused Mounted on/dev/hd4 4.00 1.39 66% 20686 6% //dev/hd2 4.00 1.02 75% 45679 16% /usr/dev/hd9var …

File System shows 100% occupied but du tells different and still has Unused Spaces. Read More »

sed to play with data or parsing your text

To select all the lines starting from STARTING_PATTERN up to  blank line ^$ and then delete those lines. # sed ‘/STARTING_PATTERN/,/^$/d’ filename To edit files in place, use -i option. # sed -i ‘/STARTING_PATTER/,/^$/d’ filename Insert multiple lines into a file after specified pattern. # sed ‘/cdef/r add.txt’ input.txt # sed ‘/cdef/r add.txt’ input.txt input.txt:abcdaccdcdeflineweb …

sed to play with data or parsing your text Read More »

What process is listening on a certain port on Solaris? / How to find out which process listens on certain port on Solaris?

Scenario: I’m looking for PID for which PORT 2817 is using here in Solaris 11. -bash-3.2# netstat -an | grep 2817 *.2817 *.* 0 0 49152 0 LISTEN 10.0.50.81.2817 10.0.50.81.37374 49152 0 49152 0 CLOSE_WAIT 10.0.50.81.2817 10.0.50.81.35510 49152 0 49152 0 CLOSE_WAIT 10.0.50.81.2817 10.0.50.81.34478 49152 0 49152 0 CLOSE_WAIT Here is a script, I found …

What process is listening on a certain port on Solaris? / How to find out which process listens on certain port on Solaris? Read More »

How to Rescan new LUN’s added in Linux, HP-UX, Aix, Solaris ?

HP-UX 1. Rescan the devices: ioscan -fnC <disk|tape> 2. Generate device files:  insf -e 3. Verify the new devices:  ioscan -funC <disk|tape> AIX 1. Rescan the devices ):  cfgmgr -vl fcsx Where x is FC adapter number 2. Verify the new devices:  lsdev -Cc <disk|tape> Linux The rescan in Linux is HBA-specific. For QLogic: echo …

How to Rescan new LUN’s added in Linux, HP-UX, Aix, Solaris ? Read More »

Configuring X-Server Display For Oracle Solaris 11

What is X Window ? The X Window System, commonly referred to as X, is a network-based graphical window system. The X Window System uses a client-server architecture. It enables multiple programs to share and access a common set of hardware. This hardware includes both input and display devices such as mouse, keyboards, video adapters, …

Configuring X-Server Display For Oracle Solaris 11 Read More »

System Panic During Boot Logging the Error “NOTICE: zfs_parse_bootfs: error 19”

Today while migrating SAN i face this issue, hope it will help others too… The system panic during boot logging the error: {0} ok boot 56024-disk Boot device: /virtual-devices@100/channel-devices@200/disk@1 File and args: SunOS Release 5.10 Version Generic_147440-01 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. NOTICE: zfs_parse_bootfs: error 19 Cannot mount …

System Panic During Boot Logging the Error “NOTICE: zfs_parse_bootfs: error 19” Read More »

How to configure Proxy Settings for the Unix / Linux Console

You can use the following methods to configure your console to use a proxy server so that console based programs like wget could get connect to the internet through the proxy. 1 – Set the environment variable # export http_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/ # export ftp_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/ In the above configuration you can ommit the DOMAIN\USERNAME:PASSWORD@ part if you …

How to configure Proxy Settings for the Unix / Linux Console Read More »

How to Unzip Multiple Files from Linux / Unix single Command Line

  bash-3.2# ls *.zip 118666-47.zip  120830-06.zip  138852-01.zip  142394-01.zip  147217-02.zip 118777-16.zip  120849-04.zip  139520-02.zip  142933-05.zip  148027-03.zip 119081-25.zip  124204-04.zip  142240-01.zip  143506-06.zip 119963-24.zip  126425-01.zip  142251-02.zip  146470-08.zip bash-3.2# bash-3.2# Problem : bash-3.2# unzip *.zip Archive:  118666-47.zip caution: filename not matched:  118777-16.zip caution: filename not matched:  119081-25.zip caution: filename not matched:  119963-24.zip caution: filename not matched:  120830-06.zip caution: filename not matched:  …

How to Unzip Multiple Files from Linux / Unix single Command Line Read More »

Scroll to Top