Tuesday, May 29, 2012

A note in RHEV installation

I have 1 rhevm and 3 rhevh. Storage is Dell Compellent.

After redhat fix the 512Bytes limit, i should be able now to mount the iscsi store, so there should be a detailed process at storage it self so that all of the hypervisor will be able to become spm or able to connect to the storage pool immediately once the existing spm becomes on maintenance mode.

At the Storage, a server cluster should be created, then join all the rhevh as member. Go to all the rhevh and make sure that you will be able to login manualy on the iscsi LUN advertised by the storage so that HBA will be available on the servers at the cluster. Then all member should have been map on the volume intended as the storage for the rhevh.

at the rhevh, discover first the iscsi.

iscsiadm --mode discoverydb --type sendtargets --portal 192.168.1.1 --discover

assuming that the ip of storage iscsi is 192.168.1.1

then login.

iscsiadm -m node -l ---> it will  login to all discovered portal.

then go back at the rhevm and try to activate rhevh, it should be able to become an SPM now.


Thursday, May 17, 2012

Testing DD to write file to disk


Testing DD to write file to disk.

time sh -c "dd if=/dev/zero of=ddfile1 bs=8k count=200000"

-will write 1.6G of file see output below.

time sh -c "dd if=/dev/zero of=ddfile1 bs=8k count=200000"


200000+0 records in
200000+0 records out
1638400000 bytes (1.6 GB) copied, 7.48931 s, 219 MB/s




Tuesday, May 15, 2012

iptables NAT notes

I have an IP that I need to exclude on the masquerading, after google, this is what been functional. 10.254.1.87 need to bypass NAT. Below are the entry, the rest of the 10.254.x.x should be NAT.


iptables -A POSTROUTING -t nat -s 10.254.1.87/255.255.255.255 -j ACCEPT
#
iptables -A POSTROUTING -t nat -s 10.254.0.0/255.255.0.0 -d 192.168.0.0/255.255.0.0 -o eth0 -j MASQUERADE




Well, just copied the information from this link. Thanks!