Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in the process of setting up iSCSI target on DRBD following the steps detailed here.

I would appreciate if someone can answer and explain the following queries:

  1. Is there a way to set up just 1 resource for iscsi config and storage? Why does iscsi.config have to have a separate resource (in drbd.conf).

  2. Is it possible to put iscsi.config and in one disk?

  3. If not possible, what would be a good ratio (space wise) for iscsi.config and Assuming I need to set up a 1TB, how much space should I allocate for iscsi.config?

share|improve this question

What you do it establish a small filesystem and replicate it using DRBD; then make sure this filesystem is the first one to be enabled by the DRBD primary using Heartbeat, Pacemaker or similar product. In this file-system you keep the configuration file directories that will be shared across both servers. I do this for Samba and iSCSI.

/etc/samba --> /mnt/configfs/samba

/etc/iet --> /mnt/configfs/iet

On the primary server, mount the filesystem and then establish the symlinks. I will typically preserve the base directories (mv /etc/samba /etc/samba.original) before I establish symlinks. Once complete and everything is working you need to transfer DRBD primary to your secondary server, mount the shared file-system and establish the symlinks on that server.

At this point you should be able to enable your HA services on the DRBD primary and subsequently add any additional filesystems as you build-up the server capabilities.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.