Wednesday, March 19, 2014

How to add space to a Checkpoint firewall

here is a brief procedure on how to add space when you run out of it on a Checkpoint firewall.
Of course this procedure applies to any Linux box.



  1. add disk to system
  2. check with fdisk -l that disk is visible
  3. create partition on system via fdisk and assign type LVM 0x8e (i.e. /dev/sdb1)
  4. pvcreate /dev/sdb1
  5. vgextend VGname Partition ( i.e. vgextend vg_splat /dev/sdb1 )
  6. launch utility lvm_manager
  7. choose to resize the logical volume that needs to be resized

But what if the disk is bigger than 2TB ?
fdisk does not support this kind of disk so you need to use parted

Let's say that you have an HP server and a logical drive with this device driver
/dev/cciss/c0d1
  1. parted
  2. select /dev/cciss/c0d1
  3. mklabel gpt (to create a GPT table )
  4. mkpart primary 0 -1 ( to create a partition using all disk space)
  5. set 1 lvm on ( to change type of partition to LVM)
  6. quit
At this point you can run pvcreate and vgextend as before using /dev/cciss/c0d1p1 partition.


Tuesday, March 11, 2014

Uncover the Meaning of top's Statistics

Interesting article I found on the Internet (http://www.linux.com/learn/tutorials/42048-uncover-the-meaning-of-tops-statistics)

Its name is kind of unique for something that shows system statistics: top. It is a part of the procps package, a set of Linux utilities that provide system information. Besides top, procps also includes free, vmstat, ps, and many other tools.
Top gives you a snapshot of a system's situation, e.g., free physical memory, number of running tasks, percentage of CPU time usage of each processes--all in a single view. So it's like using ps, free, and uptime at the same time. Top gets most of its information from several files under the /proc directory. You might already be aware that this directory provides users with a broad range of system-wide statistics, but thanks to top, we can summarize most of them inside a single organized window.
Furthermore, with top you can do things like: