Archive for the ‘redhat’ Category

Sending packets out of incoming interface

It is desirable, in some circumstances on a server with multiple NIC’s to send outgoing traffic on incoming interface. In order to do so the server has to have policy routing implemented. Let’s assume that the server is running CentOS 6 and that there are two network interfaces as follows: eth0 – 10.10.10.1/24 with gateway […]

Posted on September 3, 2017 at 10:39 by somedude · Permalink · Leave a comment
In: centos, linux, linux tips, networking, redhat, Uncategorized

Using whole disk for LVM during kickstart

I was kickstarting a machine that needed two disks. The requirement was that the second disk was to be used as whole for LVM. It seemed there was no way to do so, but apparently there is. The snippet below makes it happen. The key part is –onpart=sdb. part pv.02 –grow –size=1 –onpart=sdb volgroup vg_data […]

Posted on August 31, 2017 at 09:15 by somedude · Permalink · Leave a comment
In: centos, kickstart, linux, linux tips, redhat

Hung Linux system: Now what?

Finally, I had remembered to try out Magic SysRq key in real life. One of the XenServer hosts decided to refuse to reboot and hung during shutdown. Magic SysRq is really a keyboard combo that allows user to force kernel to perform certain function, even though machine is unresponsive. In my case I needed to […]

Posted on October 30, 2013 at 09:04 by somedude · Permalink · Leave a comment
In: centos, linux, linux tips, redhat

fsck: Error determining size of the physical device: File too large

So, I got done patching this fairly important server, running RedHat 5.10. For reasons I will not go into, the server has about 30TB of direct attached storage. After the reboot, one of the filesystems, in this case it had 16TB of storage, failed to pass automatic fsck check on boot. So, I booted it […]

Posted on September 30, 2013 at 09:42 by somedude · Permalink · Leave a comment
In: centos, ext4, linux, linux tips, redhat, storage

Unfinished transactions in yum

I was patching this “pseudo server” the other day. Resources on the server were not monitored. Of course / was low on space and yum failed. Subsequent run of yum update threw the following message: [root@web0001 sbin]# yum update Loaded plugins: rhnplugin, security This system is receiving updates from RHN Classic or RHN Satellite. Setting […]

Posted on August 28, 2013 at 15:07 by somedude · Permalink · Leave a comment
In: centos, linux, linux tips, linux utilities, redhat