Discussion:
[Pacemaker] New disk size not recognized
NetLink
2016-09-21 13:16:10 UTC
Permalink
I'm running a Debian cluster with corosync without LVM.
One of my resources run out of space and I had to replace the disk by a
bigger one.
Resource r3 on one whole disk.
What I did:
Put node2 in standby - crm node standby
Shutdown the server
Replaced the disk
After reboot stopped corosync - /etc/init.d/corosync stop
Created a new partition - cfdisk /dev/sdb
Informed system about new partition - partprobe /dev/sdb
Started DRBD - /etc/init.d/drbd start
Created new metadata - drbdadm create-md r3
Restarted corosync - /etc/init.d/corosync start
Put node2 online - crm none online
Syncing started on Node 2.
After syncing repeated the same procedure on node1

No problem so far and no service interruption. I can switch between the
nodes normally.
The problem is that the new disk size is not recognized by drbd.
drbd-overview and df are still showing the old disk configuration.
I tried drbdadm resize r3 and drbdadm -- --assume-clean resize r3 without
success.

Can anyone help me to fix this problem?

Best regards

Wolfgang
NetLink
2016-09-22 12:50:53 UTC
Permalink
I found the solution by myself:

I was missing to run resize2fs /dev/drbd3 on primary node.
Now df shows the correct disk size.

Loading...