How does DNS work step by step
ZFS file system Step by Step
Some of the benefits of the ZFS file system:
- Filesystem and Volumemanger in one system
- Easy administration with only 2 commands - #zpool and #zfs
- advanced raid level and functions
- snapshots
- automatic checksum over all data
- 128 Bit
- automatic shrinking and growing volumes
- No RAID cards required, using ZFS built in RAID-Z redundancy. (reduces hardware cost drastically)
- Effective and Optimal SnapShots
- Compressed Zpools.
- Built in NFS/ISCSI/SMB Sharing
- Support PNFS for high speed interconnects. (Will use all the 6 GigE ports)
offline, scrub, import, and history.
# kextstat | grep zfs
# mkfile 100m disk1 disk2 disk3 disk5# mkfile 50m disk4
# ls -l disk*
-rw------T 1 root root 104857600 Sep 11 12:15 disk1
-rw------T 1 root root 104857600 Sep 11 12:15 disk2
-rw------T 1 root root 104857600 Sep 11 12:15 disk3
-rw------T 1 root root 52428800 Sep 11 12:15 disk4
-rw------T 1 root root 104857600 Sep 11 12:15 disk5 Creating hot spares when any disk goes down the disk marked as hotspare will automatically take its functionality after it gets replaced. # zpool create pool mirror disk0 disk1 spare disk2 disk3 These spares can be across multiple pools and can be added with zpool add and removed with zpool remove
Automated Installation of MySQL without asking password
is your the installation process pops up a blue dialog asking for a root password ?? want to make automated
without the asking of password then
First give this two commands
echo "mysql-server mysql-server/root_password select (password omitted)" | debconf-set-selections
echo "mysql-server mysql-server/root_password_again select (password omitted)" | debconf-set-selections
Then the installation will not ask for passowrd then continue installation.
apt-get install mysql-client-5.1 mysql-server-5.1 -y
Virtualization Terminology
Storage Its a abstracted view of the physical storage assigned to a data center.It is either iSCSI, or Fiber Channel, or NFS
Cluster set of physical hosts that are treated as a resource pool.Hosts in a cluster share the same network infrastructure and the same storage. When in a cluster virtual meachines can move from host to host
Redhat Virutulization KVM Faq's and commands
(XEN) VMXON is done
(XEN) AMD SVM Extension is enabled for cpu 1
Installing Redhat Virtulization with yum
----------------------------------------------------------
# yum install virt-manager libvirt libvirt-python libvirt-python python-virtinst
Installing guest with virt-install
---------------------------------------------
--file-size=3 --vnc --cdrom=/path=to/fedora9.iso
-l\ftp://10.1.1.1/trees/RHEL5-B2-Server-i386/
sudo virsh reboot rhel5PV
-------------------------------------------------
virsh dumpxml NS-test-ubuntu> naresh.xmlCat naresh.xml will give show the xml file
After creating xml file of a VM
virsh --connect qemu:///system
to get connected to virsh prompt and then define the Virtual machine.
virsh # define /var/lib/libvirt/images/naresh.xml
after defining the VM we can issue commands like
virsh # shutdown NS-test-ubuntuDomain NS-test-ubuntu is being shutdown
virsh # start NS-test-ubuntuDomain NS-test-ubuntu started
virsh # list Id Name State ---------------------------------- 1 storage running 8 NS-test-ubuntu running
nice link for virtulization with KVM on ubuntu-9.10
Why symbolic links can be created across filesystem boundaries ?
Symbolic links use pathname to establish a link and not the inode number.
Path names are also unique making it possible for link creation
ls -l /home/user1/file1 /tmp/file2
check the inode of both "file1" and "file2" by using the command
ls -i /home/user1/file1
ls -i /tmp/file2
we can find different inode number for both these files.
Disable Root user to login SSH service step by step
chkconfig sshd on

