DRBD9, how create a test block device for dd speed test?

mmenaz

Renowned Member
Jun 25, 2009
835
25
93
Northern east Italy
Hi, I'm newbie of DRBD9 and I'm using with Proxmox 4.1, storage on 2 nodes out of 3.
I would like to follow the "optimizing performance" tests here http://drbd.linbit.com/users-guide-9.0/p-performance.html.
Instead of sacrify a VM disk (i.e. TEST_RESOURCE=vm-100-disk-1), I would love to be able to create a test volume (I'm confused about the terminology used by DRBD, volume? resource? in short, a block device disk like the ones created for VMs) that is under drbd control like a normal disk of a VM on that storage.
Googling and testing I've not been able to create one (and I need to COMPLETELY REMOVE it as well, when test is finished), could you provide me the exact commands for it?
Thanks a lot
 
To answer myself:
http://drbd.linbit.com/users-guide-9.0/s-dm-new-volume.html
in short I did something like:
Code:
# drbdmanage add-resource test1
# drbdmanage add-volume test1 5GB
# drbdmanage deploy-resource test1 2
all the above could be done with a single command (not tested)
Code:
drbdmanage add-volume backups 5GB --deploy 2
now I see "test1" as resource on both nodes, and a volume "test1_00"
when I was done, to remove it I simply did
Code:
# drbdmanage delete-resource test1
hope will help others
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!