ARTICLES

CHECK POINT BIG STORAGE – HOW TO ADD SPACE TO YOUR SERVER.

CHECK POINT BIG STORAGE – HOW TO ADD SPACE TO YOUR SERVER.

The ext3 filesystem which Check Point software runs, based upon RHEL, only supports 2TB as a maximum file size for booting.  So, we need to add in our additional storage after the OS is installed, up to 16TB.

 

Source:  https://access.redhat.com/solutions/1532

Let’s go through it.  We will base our starting point on a few assumptions.

  1. First, you have added the physical drives into your server.
  2. Second, you have added the drives to the array and raid configuration of your choice.
  3. Third, you have a working installation of Gaia.

 

STARTING POINT

We are going to increase the size of our log partition.

[Expert@gw-146848:0]# df -h
Filesystem                                            Size  Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current 194G  4.2G  180G   3% /
/dev/cciss/c0d0p1                             289M   24M  251M   9% /boot
tmpfs                                                       63G     0   63G   0% /dev/shm
/dev/mapper/vg_splat-lv_log          291G  276M  276G   1% /var/log

FIND YOUR NEW PHYSICAL DISK/ARRAY NAME

[Expert@gw-146848:0]# fdisk -l

Disk /dev/cciss/c0d0: 1200.2 GB, 1200210141184 bytes
255 heads, 63 sectors/track, 145917 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          38      305203+  83  Linux
/dev/cciss/c0d0p2              39        8392    67103505   82  Linux swap / Solaris
/dev/cciss/c0d0p3            8393      145917  1104669562+  8e  Linux LVM

WARNING: GPT (GUID Partition Table) detected on ‘/dev/cciss/c0d1’! The util fdisk doesn’t support GPT. Use GNU Parted.
Disk /dev/cciss/c0d1: 13202.3 GB, 13202305409024 bytes
255 heads, 32 sectors/track, 3160018 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Disk /dev/cciss/c0d1 doesn’t contain a valid partition table

CREATE A PARTITION

[Expert@gw-146848:0]# parted
GNU Parted 1.8.1
Using /dev/md0  <== default will come up first
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) select /dev/cciss/c0d1
Using /dev/cciss/c0d1 <== Now using the new disk (only one with our RAID and array config)

(parted) mklabel gpt 
Warning: The existing disk label on /dev/cciss/c0d1 will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
New disk label type?  [msdos]? gpt 
(parted) print free
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d1: 13.2TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
0.00TB  13.2TB  13.2TB  Free Space

(parted) unit TB
(parted) mkpart
Partition name?  []? log
File system type?  [ext2]? ext3
Start? 0 <== Start at the beginning
End? 13.2 <== End where you want (we allocated the whole array)
(parted) print free

Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d1: 13.2TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name  Flags
1      0.00TB  13.2TB  13.2TB               log

(parted) quit

VERIFY ALL IS WELL

Expert@gw-146848:0]# fdisk -l

Disk /dev/cciss/c0d0: 1200.2 GB, 1200210141184 bytes
255 heads, 63 sectors/track, 145917 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          38      305203+  83  Linux
/dev/cciss/c0d0p2              39        8392    67103505   82  Linux swap / Solaris
/dev/cciss/c0d0p3            8393      145917  1104669562+  8e  Linux LVM

WARNING: GPT (GUID Partition Table) detected on ‘/dev/cciss/c0d1’! The util fdisk doesn’t support GPT. Use GNU Parted.
Disk /dev/cciss/c0d1: 13202.3 GB, 13202305409024 bytes
255 heads, 63 sectors/track, 1605088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d1p1               1      267350  2147483647+  ee  EFI GPT

CREATE YOUR PHYSICAL VOLUME

[Expert@gw-146848:0]# pvcreate /dev/cciss/c0d1p1 <== Notice the additional ‘p1’ for the first partition (in our case it’s the only partition we created)
Physical volume “/dev/cciss/c0d1p1” successfully created

Before After
[Expert@gw-146848:0]# pvdisplay
— Physical volume —
PV Name               /dev/cciss/c0d0p3
VG Name               vg_splat
PV Size               1.03 TB / not usable 26.87 MB Allocatable           yes
PE Size (KByte)       32768
Total PE              33711
Free PE               17711
Allocated PE          16000
PV UUID               BTCDa4-70ky-A1yk-P75T-Sq7K-sSyC-5Jjh0Z
[Expert@gw-146848:0]# pvdisplay
— Physical volume —
PV Name               /dev/cciss/c0d0p3
VG Name               vg_splat
PV Size               1.03 TB / not usable 26.87 MB Allocatable           yes
PE Size (KByte)       32768
Total PE              33711
Free PE               17711
Allocated PE          16000
PV UUID               BTCDa4-70ky-A1yk-P75T-Sq7K-sSyC-5Jjh0Z— NEW Physical volume —
PV Name               /dev/cciss/c0d1p1
VG Name
PV Size               12.01 TB
Allocatable           NO
PE Size (KByte)       0
Total PE              0
Free PE               0
Allocated PE          0
PV UUID               DD4MIG-q3Xh-QTvH-sJOn-dwpm-ijFR-HMFfLP

EXTEND YOUR VOLUME GROUP

[Expert@gw-146848:0]# vgextend vg_splat /dev/cciss/c0d1p1
Volume group “vg_splat” successfully extended

Before After
[Expert@gw-146848:0]# vgdisplay
— Volume group —
VG Name               vg_splat
System ID Format                lvm2
Metadata Areas        1
Metadata Sequence No  3
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                2
Open LV               2
Max PV                0
Cur PV                1
Act PV                1
VG Size               1.03 TB
PE Size               32.00 MB
Total PE              33711
Alloc PE / Size       16000 / 500.00 GB
Free  PE / Size       17711 / 553.47 GB
VG UUID               fBN0Ce-38O4-PyTQ-XFZy-oUd1-5jlF-UILKXu
[Expert@gw-146848:0]# vgdisplay
— Volume group —
VG Name               vg_splat
System ID Format                lvm2
Metadata Areas        2
Metadata Sequence No  4
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                2
Open LV               2
Max PV                0
Cur PV                2
Act PV                2
VG Size               13.04 TB
PE Size               32.00 MB
Total PE              427170
Alloc PE / Size       16000 / 500.00 GB
Free  PE / Size       411170 / 12.55 TB
VG UUID               fBN0Ce-38O4-PyTQ-XFZy-oUd1-5jlF-UILKXu

EXTEND YOUR LOGICAL VOLUME (WE CHOSE LOG)

[Expert@gw-146848:0]# lvextend -l +100%FREE /dev/vg_splat/lv_log
Extending logical volume lv_log to 12.84 TB
Logical volume lv_log successfully resized

Before After
[Expert@gw-146848:0]# lvdisplay
— Logical volume —
LV Name                /dev/vg_splat/lv_current
VG Name                vg_splat
LV UUID                js43vl-NTD2-C8xe-R30f-0bAQ-3kzv-ACfowi
LV Write Access        read/write
LV Status              available
# open                 1
LV Size                200.00 GB
Current LE             6400
Segments               1
Allocation             inherit
Read ahead sectors     0
Block device           253:0— Logical volume — LV Name                /dev/vg_splat/lv_log VG Name                vg_splat LV UUID                VBUsLJ-vu4X-7Nlm-9E8c-5icV-wQOw-wXsJxx LV Write Access        read/write
LV Status              available
# open                 1
LV Size                300.00 GB
Current LE             9600
Segments               1
Allocation             inherit
Read ahead sectors     0
Block device           253:1
[Expert@gw-146848:0]# lvdisplay
— Logical volume —
LV Name                /dev/vg_splat/lv_current
VG Name                vg_splat
LV UUID                js43vl-NTD2-C8xe-R30f-0bAQ-3kzv-ACfowi
LV Write Access        read/write
LV Status              available
# open                 1
LV Size                200.00 GB
Current LE             6400
Segments               1
Allocation             inherit
Read ahead sectors     0
Block device           253:0— Logical volume — LV Name                /dev/vg_splat/lv_log VG Name                vg_splat LV UUID                VBUsLJ-vu4X-7Nlm-9E8c-5icV-wQOw-wXsJxx LV Write Access        read/write
LV Status              available
# open                 1
LV Size                12.84 TB
Current LE             420770
Segments               2
Allocation             inherit
Read ahead sectors     0
Block device           253:1

 

RESIZE TO ACTUALLY USE IT

[Expert@gw-146848:0]# resize2fs /dev/vg_splat/lv_log
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/vg_splat/lv_log is mounted on /var/log; on-line resizing required
Performing an on-line resize of /dev/vg_splat/lv_log to 3446947840 (4k) blocks.
The filesystem on /dev/vg_splat/lv_log is now 3446947840 blocks long.

[Expert@gw-146848:0]# df -h
Filesystem                                               Size  Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current   194G  4.2G  180G   3% /
/dev/cciss/c0d0p1                               289M   24M  251M   9% /boot
tmpfs                                                          63G     0   63G   0% /dev/shm
/dev/mapper/vg_splat-lv_log              13T  233M   12T   1% /var/log

 

You’re all done.  Now go and celebrate your victory with coffee!

FILED UNDER: Check Point | Firewall

Request a Demo

Fill out the form below and we'll get in touch via email.
We look forward to talking to you!
Thank you! We'll be in touch.
Oops! Something went wrong while submitting the form.
Top ^