|
|
Links
Routesroutes can be added by creating a file in /etc/sysconfig/network-scripts/the file should be named for the interface the route will use(i.e. etho) such as route-eth0 here is an example line "64.238.199.200/29 via 10.140.17.1" Date/Timeto change the time/date in linux use the date command.example: to set the time use the command "date -s 10:10" Networkinghe is an example of a network config file "/etc/sysconfig/network-scripts/ifcfg-eth0"# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) DEVICE=eth0 BOOTPROTO=static BROADCAST=10.140.17.31 HWADDR=00:50:56:A0:53:A7 IPADDR=10.210.15.13 NETMASK=255.255.255.192 NETWORK=10.140.17.0 ONBOOT=yes Bonding# vi /etc/sysconfig/network-scripts/ifcfg-bond0DEVICE=bond0 IPADDR=142.146.167. NETWORK=142.146.167.0 NETMASK=255.255.255.128 USERCTL=no BOOTPROTO=none ONBOOT=yes # vi /etc/sysconfig/network-scripts/ifcfg-eth2 Modify/append directive as follows: DEVICE=eth2 USERCTL=no ONBOOT=yes MASTER=bond0 SLAVE=yes BOOTPROTO=none # vi /etc/sysconfig/network-scripts/ifcfg-eth3 Make sure file read as follows for eth1 interface: DEVICE=eth3 USERCTL=no ONBOOT=yes MASTER=bond0 SLAVE=yes BOOTPROTO=none Load bond driver/module # vi /etc/modprobe.conf alias bond0 bonding options bond0 mode=1 miimon=100 Test configuration # modprobe bonding # service network restart # less /proc/net/bonding/bond0 Working with LVMIncrease swap on LVM[root@devora1 ~]# lvscanACTIVE '/dev/VolGroup00/slash' [768.00 MB] inherit ... ACTIVE '/dev/VolGroup00/swap' [4.00 GB] inherit [root@devora1 ~]# [root@devora1 ~]# swapoff /dev/VolGroup00/swap [root@devora1 ~]# lvm lvresize /dev/VolGroup00/swap -L +4G Extending logical volume swap to 8.00 GB Logical volume swap successfully resized [root@devora1 ~]# mkswap /dev/VolGroup00/swap Setting up swapspace version 1, size = 8589930 kB [root@devora1 ~]# swapon -va swapon on /dev/VolGroup00/swap [root@devora1 ~]# cat /proc/swaps Filename Type Size Used Priority /dev/mapper/VolGroup00-swap partition 8388600 0 -2 [root@devora1 ~]# free total used free shared buffers cached Mem: 32953516 235536 32717980 0 28556 109216 -/+ buffers/cache: 97764 32855752 Swap: 8388600 0 8388600 [root@devora1 ~]# Heading |
|
||