[DRBD-user] DRBD + LVM backup

Thomas Baumann tom at tiri.li
Fri Feb 4 08:35:20 CET 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Am 03.02.2011 22:46, schrieb Lars Ellenberg:
> On Thu, Feb 03, 2011 at 03:20:50PM -0600, J wrote:
>> On 2/3/2011 2:55 PM, Lars Ellenberg wrote:
>>> Don't give up so quickly because of information overload ;-)
>>> Your question was:
>>>    if I take a snapshot of the logical volume used by
>>>    drbd, will I be able to mount that locally (and easily?)
>>>
>>> Though J's answer is correct, it does not clearly say it:
>>>
>>> The answer is: Yes.
>>>
>>> It's that simple.
>>>
>>
>> Thanks for answering my question Lars. I do appreciate it :) I
>> decided I would go ahead and try it before I got too much into a new
>> shell script for the alternative. I got to the point I thought I
>> would get to.
>>
>> # lvcreate --snapshot --size 7g --name snap-srvr mvg/srvr
>>    Logical volume "snap-srvr" created
>> # ls /dev/mvg
>> home  root  snap-srvr  srvr
>> # mount /dev/mvg/snap-srvr /mnt
>> mount: unknown filesystem type 'drbd'
>
> libblkid or whatever tries to play clever here
> seems to try to be smarter than it's good for it.
 >
> Just explicitly specify the file system, and be done with it.
>
> mount -t ext3 /dev/mvg/snap-srvr /mnt
>
> (or xfs, or ext4, or whatever you are using).

Same issue is if you are trying to mount a (degraded) RAID1.
libblkid tells not to know, but when mounting with extX etc.
then everything is working fine.

>
>


-- 
Mit herzlichen Grüßen
T. Baumann

--
tiri GmbH
Lauenburger Str. 31a
21493 Schwarzenbek
Tel. 04151 8674995
Fax. 04151 8674996
Net. http://www.tiri.li

Geschäftsführer: Anja Baumann, Thomas Baumann
Sitz Schwarzenbek, Amtsgericht Lübeck, HRB 8837 HL



More information about the drbd-user mailing list