Redhat resize a LVM partition

Posted in Unix on November 10th, 2011 by phoenixdigital

This is a bit fiddly but I was in the following situation.

I had a bootable 4GB USB drive running Oracle Unbreakable Linux installation. It was installed on an LVM parition on the USB drive.

Now it came time to move this to an 8G drive which was achieved with the command

dd if=/dev/sda of=/dev/sdb conv=notrunc

Where the original 4G drive was /dev/sda and the replacement 8G drive was /dev/sdb.

All good so far. Now however how do I extend the LVM parition to use this new space. Here is where some hoop jumping comes in.
Read more »

Tags: , , , ,

Adding time sync daemon (ntpd) service to Redhat

Posted in Unix on September 28th, 2011 by phoenixdigital

Below is a basic summary of the commands required to install a ntp daemon onto your server to keep track of time.

Read more »

Tags: , , , ,

Adding Services to RHEL with chkconfig

Posted in Unix on September 27th, 2011 by phoenixdigital

If you want your daemons to start and stop with your Redhat system as it boots chkconfig is what you were looking for.
Read more »

Tags: , , , , ,

Windows System Imaging

Posted in Windows on September 2nd, 2011 by phoenixdigital

I used to use some software called Ghost for imaging windows machines. Then it was brought by Norton and got a bit bloated.

Here is the latest contender which is free for personal use
http://www.xxclone.com/

Heaps more here with Kleo looking promising
http://en.wikipedia.org/wiki/Comparison_of_disk_cloning_software

This looks good too
http://www.sysresccd.org/Main_Page

Tags: , , ,

Solaris 10 useful commands

Posted in Unix on August 31st, 2011 by phoenixdigital

A store of useful commands as I find them

displays the memory usage of running processes
prstat

List active processes (generally useful only with a grep)
ps -ef

Display physical memory size on server
prtconf|grep -i mem

Display swap size (do the math based on results of two commands)
pagesize
swap -l

Package installation
Get your version via ‘uname -a’ reference wikipedia if you dont know how to translate to Sun version.

Get packages from here

http://www.sunfreeware.com/

install with command
cd
gunzip packagename.gz
pkgadd -d packagename

Tags: , , ,

Solaris 10 SMF services

Posted in Unix on August 30th, 2011 by phoenixdigital

The SMF or Service Management Facility handles the control of services within Solaris 10. Below are some common commands for a useful lookup.

The service FMRI is an identifier of each service and can be seen by running the list services commands below. The FMRI in all the commands below can be replaced with just the service name as long as there are no other services with similar names.

List all services
svcs

List all services including disabled services
svcs -a

View a service current status
svcs -H <service_FMRI>

Read more »

Tags: , , , , , , , ,

Saved from Windows Dynamic Disk HELL!!!!

Posted in Windows on August 16th, 2011 by phoenixdigital

I made the mistake of converting a few drives to dynamic disks. Never again!

I consistently got online errors and other random corruptions.
Read more »

Tags: , , , , ,

YUM package installation

Posted in Unix on June 1st, 2011 by phoenixdigital

Below are some basics for installations of required packages using YUM (Yellowdog Updater Modified)

These steps are primarily for Oracle Enterprise Linux but will be valid for most Linux systems.
Read more »

Tags: , , ,

Oracle Enterprise Linux Tips

Posted in Unix on May 17th, 2011 by phoenixdigital

OEL comes with some great security features as default. However when your developing these can get in the way.

So here are a few tips to dropping OEL guard when it comes to security.

Read more »

Tags: , , , , , , ,

Linux networking setup and detection

Posted in Unix on May 17th, 2011 by phoenixdigital

A few useful commands to see if your kernel supports your network

lspci -knn
ifconfig -a

cd /etc/sysconfig/network-scripts/

http://www.cyberciti.biz/faq/rhel-centos-fedoracore-linux-network-card-configuration/

Tags: , , ,