Reference more for myself than for y'all, but you get the shared benefit.
To ship the logs from RHEL6 or Centos 6 to a remote syslog server, edit the following file: /etc/rsyslog.conf
At the bottom of the file, remove the comment from the remote-host entry, and update with your server name or IP. Example:
*.* @@192.168.40.15:514
Restart the rsyslog service:
service rsyslog restart
Make sure you are receiving the logs at your syslog server.
------
Dustin Shaw
VCP
Notes on server implementations and fixes for VMware, Microsoft, and other fun projects.
Showing posts with label RedHat. Show all posts
Showing posts with label RedHat. Show all posts
Wednesday, April 23, 2014
Install VMware Tools on RHEL 6 or CentOS 6
Below is the process to install VMware Tools on RHEL 6 or CentOS 6. This guide is more here for me than anyone else, but I hope that you can benefit from it.
Install the Pre-Requisites:
yum install make gcc kernel-devel kernel-headers glibc-headers perl
Start the VMware Tools installation process on your VM:
Mount the VMware Tools installation media:
mkdir /mnt/cd
mount /dev/cdrom /mnt/cd
Expected warning:
mount: block device /dev/sr0 is write-protected, mounting read-only
Extract the installer:
cp /mnt/cd/VMwareTools-9.0.10-1481436.tar.gz /tmp/
umount /mnt/cd
cd /tmp
tar xvf VMwareTools-9.0.10-1481436.tar.gz
cd vmware-tools-distrib/
Install tools (accepting all defaults):
sudo ./vmware-install.pl -d
Reboot the VM to verify that the service starts up automatically as expected.
shutdown -r now
------
Dustin Shaw
VCP
Monday, September 30, 2013
Extend a volume in RedHat 6 or CentOS 6
To extend a partition on a VM on CentOS 6 or RHEL 6, do the following:
Extend the Partition in vSphere to the size that you need:
in the VM, refresh the Partition Tables by the following command:
echo 1 > /sys/block/sda/device/rescan
Run fdisk to create a new primary partition:
fdisk /dev/sda
Press p to print the number of partitions
Press n to create a new primary patition
Press p for primary
The partition number should automatically be selected, and press enter twice to accept the beginning and ending blocks on the free space.
Press w to write the changes.
Reboot the system: shutdown -r now
Verify that the new partition exists:
fdisk -l
Convert the new partition to a physical volume:
pvcreate /dev/sda3
Extend the Physical Volume (run vgdisplay to obtain the name of the Volume Group; default is VolGroup00):
vgextend VolGroup00 /dev/sda3
Extend the Logical Volume (run vgdisplay to obtain the free space and replace # below, and lvdisplay to obtain the name of the Logical Volume; default is /dev/VolGroup00/LogVol00)
lvextend -L+#G /dev/VolGroup00/LogVol00
Expand the ext3 online using the following command (substituting your proper Volume Group and Logical Volume names):
resize2fs /dev/VolGroup00/LogVol00
Confirm that your new space is available:
df -h
This was written using VMware's KB article on the subject as a reference.
------
Dustin Shaw
VCP
Extend the Partition in vSphere to the size that you need:
in the VM, refresh the Partition Tables by the following command:
echo 1 > /sys/block/sda/device/rescan
Run fdisk to create a new primary partition:
fdisk /dev/sda
Press p to print the number of partitions
Press n to create a new primary patition
Press p for primary
The partition number should automatically be selected, and press enter twice to accept the beginning and ending blocks on the free space.
Press w to write the changes.
Reboot the system: shutdown -r now
Verify that the new partition exists:
fdisk -l
Convert the new partition to a physical volume:
pvcreate /dev/sda3
Extend the Physical Volume (run vgdisplay to obtain the name of the Volume Group; default is VolGroup00):
vgextend VolGroup00 /dev/sda3
Extend the Logical Volume (run vgdisplay to obtain the free space and replace # below, and lvdisplay to obtain the name of the Logical Volume; default is /dev/VolGroup00/LogVol00)
lvextend -L+#G /dev/VolGroup00/LogVol00
Expand the ext3 online using the following command (substituting your proper Volume Group and Logical Volume names):
resize2fs /dev/VolGroup00/LogVol00
Confirm that your new space is available:
df -h
This was written using VMware's KB article on the subject as a reference.
------
Dustin Shaw
VCP
Subscribe to:
Posts (Atom)