Sunday, December 6, 2009

allow tftp under selinux

For RHEL5:

# audit2allow -a -M mytftp
# semodule -i mytftp.pp
# service xinetd restart

add virtual hard disk to linux

#in vmware workstation | vm settings
add virtual hard disk to vm

#in vm
fdisk /dev/sdb
n
[ENTER][ENTER]
w
mkfs -t ext3 /dev/sdb1
mkdir /newdir
mount -t ext3 /dev/sdb1 /newdir
echo "/dev/sdb1 /software ext3 defaults 1 1" >> /etc/fstab

See: http://www.matttopper.com/?p=25

remount /

mount -n -o remount /

Wednesday, December 2, 2009

tw_cli: 3ware controller commands

when replacing a failed disk, you must issue a 'maint deleteunit command', as the 'maint remove' command doesnt do what you might think it does. so, pull the drive, insert the new one, issue a rescan commmand, then deleteunit, then rebuild.

the following commands were used to start rebuiding the raid-1 array on a server with a single 8006 controller.

show ver
info
info c0
rescan
info c0
maint deleteunit c0 u1
maint rebuild c0 u0 p1