Archive for the ‘Note to Self’ Category

How to reclaim root reserved space on ext3

Tuesday, January 26th, 2010

First off look at what you’ve got now:

[root@sql2 ~]# df -P /
Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/mapper/VolGroup00-LogVol00  81269424  66551212  10534464      87% /

Then check how much is reserved blocks for root:

[root@sql2 ~]# tune2fs -l /dev/mapper/VolGroup00-LogVol00 | egrep 'Block count|Reserved block count'
Block count:              20971520
Reserved block count:     1045937

Thats 5%, which is a pretty common default. Like a lot of old defaults its based on old hardware, we can get away with a lot less and I could use the space elsewhere (SSD is expensive). So lets tune it down to 1%:

[root@sql2 ~]# tune2fs -m 1 /dev/mapper/VolGroup00-LogVol00
tune2fs 1.39 (29-May-2006)
Setting reserved blocks percentage to 1% (209715 blocks)

Verify that:

[root@sql2 ~]# tune2fs -l /dev/mapper/VolGroup00-LogVol00 | egrep 'Block count|Reserved block count'
Block count:              20971520
Reserved block count:     209715

Looks good, lets see how much space we got:

[root@sql2 ~]# df -P /
Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/mapper/VolGroup00-LogVol00  81269424  66551756  13878808      83% /

Sweet, touch over 3GB

what *exactly* do the numbers in iostat mean?

Saturday, January 9th, 2010

You need better storage.

But if you really want to know the details, the Baron will tell you:

How Linux iostat computes its results at Xaprb.

How to figure out the WWN of FC HBA cards in CentOS/RHEL

Sunday, November 15th, 2009

Methods to retrieve WWPN and WWNN from FC HBA cards

Haven’t tried these yet but wanted to stick this link somewhere. Man I wish FC would just go away already.

Is the internet broken?

Wednesday, November 4th, 2009

Sometimes you do a pretty good job of ruling out your shit and are convinced that somewhere out there the internet is broken a little bit… but how do you know?

*shrug* but here’s some links:

NANOG

Keynote’s Internet Health Report

Outages.org

renesys blog (good for in depth day-after info)

nagios-config.png

Friday, October 23rd, 2009

nagios-config

see, its easy

source