November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Create a temp file with random characters

tmpfile=`/bin/mktemp /var/log/rpmpkgs.XXXXXXXXX` || exit 1

System hangs during messagebus startup

System hangs during messagebus startup This problem has been experienced after rebooting a system in which ldap has been configured. Note that LDAP functions properly immeidately after it is setup on the machine, but hangs at “staring system message bus” after a reboot. To fix, reboot in single user mode or into linux rescue and […]

Resizing an Online Multipath Device

Resizing an Online Multipath Device

If you need to resize an online multipath device, use the following procedure:

1. Resize your physical device

2. Use the following command to find the paths to the LUN:

# multipath -l 3. Resize your paths. FOr SCSI devices, writing a 1 to the rescan file for the device […]

How to share ssh command line with someone via screen

Use screen to share an ssh session It’s quite easy to share an ssh session with someone remote so that they can view the ssh session. This process works well if everyone involved has root access. Read further below if this is not the case. To begin, screen must be installed to create the screen. […]

The file /boot/grub/stage1 not read correctly

The file /boot/grub/stage1 not read correctly After pxe booting a server and installing linux from a cpio archive, grub failed to load using the grub-install command. The error presented was as follows:

root@pxe:~# mkdir /target root@pxe:~# mount /dev/sda1 /target root@pxe:~# chroot /target root@pxe:~# grub-install /dev/sda The file /boot/grub/stage1 not read correctly. Since command line didn’t […]

How To Resize an iscsi LUN in Linux

Article ID: 83 by: Reese K. Posted: 07 Jan, 2013 Last updated: 13 Mar, 2014 Views: 4849

How To Resize an iscsi LUN in Linux NetApp storage systems also allow you to resize a LUN dynamically; however, the iSCSI layer in Linux is not capable of detecting the change in the LUN size. To display […]

Clear Memory Cache on Linux Server

Our Virtuozzo VPS hwnodes would hang onto large amounts of cached memory after a period of uptime and as it grew, load average of the hwnode would correspondingly increase during activities such as container restarts, create, stop, or start. After troubleshooting and applying virtuozzo tool and kernel updates, the problem persisted (though not as bad). […]

Howto Setup yum repositories to install from ISO

Mount the iso to /mnt In the case of redhat, copy the media.repo file from the root dir of the mount point to /etc/yum.repos.d. Edit the file and add the baseurl at the end as depicted below.

[root@mkoffer2 ~]# cat /etc/yum.repos.d/media.repo [InstallMedia] name=Red Hat Enterprise Linux 6.3 mediaid=1339640147.274118 metadata_expire=-1 gpgcheck=0 cost=500 baseurl=file:///mnt

* mediaid comes […]

Enabling automatic logoff

Let’s face it. Sometimes admins leave themselves logged into a system and walk away. Systems can be set to automatically logoff a user after a period of activity by setting some parameters in /etc/profile (Linux/Solaris), /etc/security/.profile (AIX).

Append the following to the system profile:

#Enable automatic logoff TMOUT=600 TIMEOUT=600 readonly TMOUT TIMEOUT export TMOUT TIMEOUT […]

automount in linux

[root@mobileweb2:~]$ cat /etc/auto.home * netapp1b:/vol/vol1/home/&

[root@mobileweb2:~]$ cat /etc/auto.master /home /etc/auto.home /misc /etc/auto.misc /net -hosts +auto.master

[root@mobileweb2:~]$ /etc/init.d/autofs restart