Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
i'm not sure on this one. i assumed having noauto in fstab for the mount point would be sufficient. i'm guessing this is going to take some tinkering and i don't really have any suggestions. sry. mike Alan Cowes wrote: > > Mike, > > > > Yes, I understand, I don´t need to mount the secondary server while > the master server (which is running when I restarted the slave) is > running. So how can I make the slave server so that when I restart it, > it doesn´t mount the DRBD1 but is able to boot up properly. > > > > In other words, when the slave is restarted, it knows that it should > be on secondary and doesn´t need to load but still is able to boot up > in the console. > > > > Do I need to re edit the /etc/fstab ? > > > > Thanks a lot for your help mike! > > > > > > *De:* Mike Lovell [mailto:mike at dev-zero.net] > *Enviado el:* martes, 23 de febrero de 2010 21:12 > *Para:* Alan Cowes > *CC:* drbd-user at lists.linbit.com > *Asunto:* Re: [DRBD-user] DISKLESS Resource > > > > drbd wont allow the drbd device on the secondary drbd server to be > used. you'll probably get something like media errors back when you > try to mount or otherwise use the device. only the primary can be > used. so if you want to mount this on the secondary, you need to > promote it to primary (which will demote the current primary) and then > mount the volume. this will then mean the volume cant be mounted on > the now old primary. > > mike > > Alan Cowes wrote: > > Hello Mike!, > > > > Well let me tell you... that fixed the problem! But..... now the > system doesn't book properly, it saids that the system can´t find > /dev/drbd1, and that I have to set a maintenance password or press > Control-D to continue, if I do that, it runs good, I have also change > the Fstab with noauto as follows: > > > > /dev/drbd1 /home ext3 noauto 0 2 > > > > I don´t have the DRBD2 set there, do I really need to? > > I only set the Fstab on the slave one, the master is with the md1, I > guess I need to change them too, but not right now. > > > > If you need the exact message, let me know > > > > Thanks a bunch! > > > > Alan > > > > > > *De:* Mike Lovell [mailto:mike at dev-zero.net] > *Enviado el:* martes, 23 de febrero de 2010 17:53 > *Para:* Alan Cowes > *CC:* drbd-user at lists.linbit.com <mailto:drbd-user at lists.linbit.com> > *Asunto:* Re: [DRBD-user] DISKLESS Resource > > > > ummmm. yeah. something else is using the underlying device. it is > mounted to /home. maybe lsof wont show the device if it is just mounted. > > either way, you need to umount /home restart drbd so that drbd can > claim the device, /dev/md1. you would then want to change your fstab > to point /home to /dev/drbd1 instead of /dev/md1. > > mike > > Alan Cowes wrote: > > Hello Mike, > > > > I´ve checked the slave with a lsoft | grep /home and nothing comes up, > so that means that nothing is using that partition is that right? > > > > I have a line on the /etc/fstab that includes the /home : > > > > /dev/md1 /home ext3 defaults 0 2 > > > > ********* > > > > Also I have tried this, I stopped the DRBD and started again (on the > slave only, the master is running) and I got this error: > > > > Starting DRBD resources: [ d(HOME) /dev/drbd1: Failure: (114) Lower > device is already claimed. This usually means it is mounted. > > > > [HOME] cmd /sbin/drbdsetup /dev/drbd1 disk /dev/md1 /dev/sdc3 0 > --set-defaults --create-device --on-io-error=detach failed - continuing! > > > > ************ > > > > Any Idea? > > > > Thanks a lot for your response! > > > > Alan > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20100226/9fbbece0/attachment.htm>