xfs Maintenance

http://st-on-it.blogspot.com.au/2008/02/how-to-defragment-your-xfs-partition.html

http://serverfault.com/questions/406069/why-are-my-xfs-filesystems-suddenly-consuming-more-space-and-full-of-sparse-file

XFS on Centos 6 32bit – not compatible with life

XFS will not operate on Centos 6 32bit, you must use the 64bit version.

eom

nmap port scanning

nmap -p80 10.1.1.0/24 -oG – | grep 80/open

Will display all ports in the /24 that have port 80 open

Crontab

yum install vixie-cron crontabs
/sbin/chkconfig crond on
/sbin/service crond start

sFlow XenServer

Download iso

http://sourceforge.net/projects/host-sflow/files/REL-1_22/

HERE!

mount and install.

service hsflowd start
service sflowovsd start

chkconfig hsflowd on
chkconfig sflowovsd on

edit conf file

nano /etc/hsflowd.conf

agent = xenbr0

DNSSD = off
polling = 20
sampling = 512

collector {
ip = 10.1.1.x
udpport = 6343
}

service hsflowd restart

Rackable IPMI reset

Rackable half size servers pack unbelievable punch per $$$. However finding resources for these servers is almost impossible.

We came across a number of these and had a very hard time cracking the IPMI. Below are the steps to reset the password of the IPMI so you can gain access via the web console.

1. Power on the server and go into the bios and setup the BMC/IPMI LAN config.
2. Plug a cat 5 cable into IPMI port.
3. Load whatever flavour of linux you like onto the server.
4. log into the server and make sure the ipmi drivers are loaded, if there aren’t then ->

modprobe ipmi_msghandler
modprobe ipmi_devintf
modprobe ipmi_si

run lsmod, and make sure the modules have loaded.

then simply run

ipmitool -I open lan set 1 password NEWPASSWORD
ipmitool -I open user set password 2 NEWPASSWORD

this should reset both of the passwords for the root user to NEWPASSWORD

open a web browser and point it to the IPMI IP address you setup in Step 1.

Log in with your new credentials!!!

Resources:
http://serverfault.com/questions/85042/is-it-possible-to-reset-the-password-on-a-supermicro-ipmi-interface
http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi/linux/bks/SGI_Admin/books/Guide_AdminXE_AG/sgi_html/ch01.html#Z1165360258tls

Xenserver LVM over iSCSI

Trying to reclaim space from that VM you deleted several months ago?

This is a known issue with Xenserver and iSCSI when snapshots are used.

The short answer is that if you allow your SR to fill up too much, the automatic coalesce leaf operations performed by XS will not be able to be performed as a certain amount of space is required for this function to reclaim space.

The basic rule is that there must be Double the VM size of free space on the SR available for the coalesce function to work.

So if you delete a 100GB VM, you MUST have at least 200GB of free available space on the SR.

minimal centos

Remove those ugly useless packages from your CentOS 6 Server!

http://kyotera.net/2012/02/extra-packages-in-minimal-installation-of-centos-6-2/

gluster path stale usage path

http://joejulian.name/blog/glusterfs-path-or-a-prefix-of-it-is-already-part-of-a-volume/

Using parted to create partitions

http://blog.derakkilgo.com/2010/06/12/warning-the-resulting-partition-is-not-properly-aligned-for-best-performance/