Raars's Blog

July 2, 2020

File system still full after deleting big files

Filed under: UNIX & Linux — raars @ 1:14 am

What happened : Linux Redhat server – toot file system was almost full.Removed unneeded files ,but file system still is full.du command shows very small amount of space are used.

Reason is that ,some processes still were using those user files ,even users said they don’t need them.

Solution: run lsof | grep delete

Check second and fourth columns

cd /proc/<second column from output>/fd

echo > <number portion from fourth row>

Repeat that for each ,specially for large files and you will see right file system size from df command

April 24, 2020

RedHat 7 xhost gives cannot open display

Filed under: UNIX & Linux — raars @ 2:09 am

Trick was adding

X11Forwarding yes

AddressFamily inet

Lines to /etc/ssh/sshd_config and restart sshd daemon

February 28, 2020

NTP mode 6 – security vulnerabilities

Filed under: UNIX & Linux — raars @ 10:32 pm

Getting security warnings for NTP daemon

Solution is to restrict NTP mode 6

Add below lines to ntp.conf and restart service

restrict default noquery

restrict localhost

February 21, 2018

NFS Client issue

Filed under: UNIX & Linux — raars @ 10:44 pm

Linux NFS client Redhat EL 5.11

df ,lsof ,fuser ,even simple ls commands all hang

Umount <mount point>

fails with “busy” output.

ps does not show any process is using that problem NFS file system

Magical -l option for umount command did the trick

umount -l <mount point>

October 12, 2015

RedHat Linux subscription-manager error

Filed under: UNIX & Linux — raars @ 11:20 pm

System : VMWare client – Red Hat Enterprise Linux Client release 5.11 (Tikanga)

error message :
subscription-manager list
output – No installed products to list

Solution :

copied file Client-Workstation-x86_64-863725dc49ba-71.pem from /usr/share/rhsm/product/RHEL-5/ to /etc/pki/product

and it fixed an issue

November 11, 2014

Solaris 9 does not see new EMC LUN

Filed under: UNIX & Linux — raars @ 6:40 am

We presented new LUN to Solaris 9 server.
Tried devfsadm , reboot with reconfiguration – did not help.
Could not see new disks.

here what needs to be done :

#cfgadm -al

check output for unconfigured devices

then run
cfgadm -f -c configure

After check with
cfgadm -al see if it is configured now.

run command format and check if you see new disks

May 28, 2014

Samba – symlink problems

Filed under: UNIX & Linux — raars @ 9:32 pm

Problem :
Symbolic links does not work after user maps share from UNIX to his Windows machine:
Error message :NT_STATUS_ACCESS_DENIED

Solution :

added :
allow insecure wide links = Yes
wide links = Yes

to global section in smb.conf and restart smb daemon

May 31, 2013

Solaris 11 – how to add printer using CUPS

Filed under: UNIX & Linux — raars @ 8:31 pm

 1. pkg install print/cups/system-config-printer
 
  2.  Open a browser – firefox

  3. http://localhost:631

  4. Click on “Adding printers and Classes”
 
  5. Click on “Add Printer”

  6. Choose “AppSocket/HP JetDirect” , then “continue”

  7. In “Connection ” window type :

    socket://<IP address of network printer>

  8. type printer name ,description and location , then “continue”

  9. Next window will give you option to choose your printer type , then model or you can  upload  PPD file downloaded from manufacture’s  web site

  10. After you added printer you can  choose some optional options .

  11. You can use lp command to check if you can print

May 17, 2013

mt status says “/dev/rmt/1: write protected or reserved.”

Filed under: UNIX & Linux — raars @ 11:39 pm

After replacing SAN switch for NetBackup server one tape device was giving error message :

avrd[583]: [ID 213018 daemon.notice] Reservation Conflict status from drive4 (device 5)

Device was /dev/rmt/1cbn
from OS when we run command :

mt -f /dev/rmt/1cbn status

we got an error :
/dev/rmt/1cbn: write protected or reserved

Rebooting machine , removing links , createing again using devfsadm (or drvconfig ;tapes;devlinks) did not help .
Executing simple command :

mt -f /dev/rmt/1cbn forcereserve
helped to solve problem

April 15, 2013

Oracle T4-1 server iLOM configuration

Filed under: UNIX & Linux — raars @ 3:27 am

i could not make hyper terminal work with my laptop .
But fortunetly there is command you can do from OS :

ilomconfig enable interconnect –ipaddress=169.254.175.72(it has to be 169.254.x.x – i guess how internal switch is configured )
That command assigns IP 169.254.175.72 to SP and additionally assigns 169.254.175.73 address to host .So , you can ping 169.254.175.72 from OS itself and you can ssh
default user id is root
password changeme

second step is to ssh to SP (169.254.175.72) and configure iLO .

set /SP/network pendingipdiscovery=static
set /SP/network pendingipaddress=xxx.xxx.xxx.xxx
set /SP/network pendingipgateway=xxx.xxx.xxx.1
(or whatever )

set /SP/network pendingipnetmask=255.255.255.0 (or whatever )
set /SP/network commitpending=true
and that is it .

You can ssh to iLo (xxx.xxx.xxx.xxx ) and better , you have web interface :
http://xxx.xxx.xxx.xxx

Next Page »

Create a free website or blog at WordPress.com.