# Resizing the partition

Use this procedure to resize the partition that contains the serviced thin pool.
1. Log in to Active-Node as root, or as a user with superuser privileges.
2. In a separate terminal session, log in to Passive-Node as root, or as a user with superuser privileges.
3. On both nodes, inform the kernel of the partition table change that occurred when the size of the serviced thin pool device was increased.
partprobe
4. On both nodes, confirm the size increase of the raw device.
lsblk -ap --output=NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT
Subordinate device sizes are unchanged.
5. On both nodes, recreate the partition of the raw device.
The following substeps assume that the raw device has a single partition that contains all of the space in the device. If you are using a different layout, adjust the procedure as required.
1. Start the disk partition utility.
Replace Raw-Device with the path of the raw device associated with /dev/drbd2 or its equivalent in your environment:
fdisk Raw-Device
2. Display the partition table.
p
3. Delete the partition table.
d
4. Create a new partition table.
n
Accept the defaults to create a new primary partition, and for the starting and ending cylinders of the partition. The starting cylinder should match the starting cylinder displayed previously. The ending cylinder should be greater than the ending cylinder displayed previously.
5. Write the new partition table, and then exit the disk partition utility.
w
6. On both nodes, confirm the size increase of the partition.
lsblk -ap --output=NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT
The subordinate device size should be larger.