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  

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

Resizing an Online Multipath Device

esizing 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 Add Disk to Linux System without Rebooting

It is possible to add a new hard disk without a reboot. Whether or not it is a physical server where a physical disk was inserted into an available slot, or a new virtual disk was added to a VMware VM, the command structure to discover the new disk is the same.

First, take a […]

Create a Logical Volume using Linux LVM

If you like this article, please +1 or Recommend via FB with the provided buttons above: Article ID: 137 by: Reese K. Posted: 16 Oct, 2013 Last updated: 21 Oct, 2013 Views: 561

Create a Logical Volume using Linux LVM This example uses a local hard disk to create a logical volume.

1. partition the […]