[DRBD-user] unable to mount DRBD device?

David Huang david_huang at proware.com.tw
Tue Apr 19 04:03:37 CEST 2005

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


I was trying to shrink the device( a lvm2 volume ) i am going to replicate. I am using LVM2 with XFS, does it mean I have to use lvresize insteadof resize2fs?
because when I use resize2fs on a volume(lv1) which is 256M, it shows:

-bash-3.00# resize2fs /dev/VG01/lv1/ 128
resize2fs 1.35 (28-Feb-2004)
resize2fs: No such file or directory while trying to open /dev/VG01200504181802p
roNASVG/lv1/
Couldn't find valid filesystem superblock.

however when i run lvreize, it shows:
lvresize /dev/VG01/lv1 -L 128M
  WARNING: Reducing active logical volume to 128.00 MB
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce lv1? [y/n]:



If I remember right, the size of XFS filesystem can not be reduced? Does it mean it is better to put metadata in other device instead of internal??



-----Original Message-----
From: drbd-user-bounces at lists.linbit.com [mailto:drbd-user-bounces at lists.linbit.com]On Behalf Of Stephan Rattai
Sent: Monday, April 18, 2005 7:04 PM
To: drbd-user at linbit.com
Subject: Re: [DRBD-user] unable to mount DRBD device?


Yes, you can use an existing filesystem if you have 

a) 128 Megs free for each metadata-device or
b) are using external metadata

you can use an existing filesystem, yes. Did you shrink your existing 
filesystem by 128 M as explained here:
http://www.drbd.org/quickstart.html

Am Montag, 18. April 2005 12:55 schrieb David Huang:
> I am able to mount the device if I mkfs /dev/drbdX, however it is not what
> i want. I thought DRBD works on an existing filesystem??
>
>
>
> -----Original Message-----
> From: drbd-user-bounces at lists.linbit.com
> [mailto:drbd-user-bounces at lists.linbit.com]On Behalf Of David Huang
> Sent: Friday, April 15, 2005 9:54 AM
> To: drbd-user at lists.linbit.com
> Subject: RE: [DRBD-user] unable to mount DRBD device?
>
>
> drbdadm state all shows Primary/Secondary
> drbdadm cstate all shows Connected
>
> I am running out of ideas, any help and suggestion is welcome
>
>
> cheers
>
> David Huang
>
> -----Original Message-----
> From: M-Ackermann [mailto:Manfred.Ackermann at t-systems.com]
> Sent: Thursday, April 14, 2005 7:09 PM
> To: david_huang at proware.com.tw
> Subject: AW: [DRBD-user] unable to mount DRBD device?
>
>
> One of my configs is:
>
>   [acki at cm1 ~]$ cat /etc/redhat-release
>   Red Hat Enterprise Linux AS release 4 (Nahant)
>   [acki at cm1 ~]$ uname -r
>   2.6.9-5.ELsmp
>   [acki at cm1 ~]$ rpm -qa|grep -i lvm
>   lvm2-2.00.31-1.0.RHEL4
>   [acki at cm1 ~]$ cat /etc/drbd.conf
>   {...snip...}
>     on some.server.de {
>       device     /dev/drbd0;
>       disk       /dev/vg0/lv0;
>       address    other.server.de:7788;
>       meta-disk  internal;
>     }
>   {...snip...}
>
> My kernel is a lower release ... For me all works fine. Just for info. What
> does
>
> drbdadm state all; drbdadm cstate all
>
> says?
>
> Mit freundlichen Grusen
> Manfred Ackermann
>
> T-Systems
> Systems Integration
>
> > Systemadministrator SSC NITS
>
> Industry Business Unit Telco
> T-Systems International GmbH
> Utbremer Strase 90, D-28217 Bremen
> Telefon: +49 421 3799-815
> Telefax: +49 421 3799-169
> E-Mail: prsm-eznord at t-systems.com
> Internet: http://www.t-systems.com
>
>
> -----Ursprungliche Nachricht-----
> Von: drbd-user-bounces at lists.linbit.com
> [mailto:drbd-user-bounces at lists.linbit.com]Im Auftrag von David Huang
> Gesendet: Donnerstag, 14. April 2005 13:00
> An: drbd-user at lists.linbit.com
> Betreff: RE: [DRBD-user] unable to mount DRBD device?
>
>
> thanks for the quick reply! :)  Sorry I think I didn't explain the
> stituation clearly.
>
> I was trying to mount the primary side's device.
>
> I was wondering it happened becuase of LVM2, because  I am using DRBD on
> top of LVM2 with kernel 2.6.10
>
>
> cheers
>
> David Huang
>
>
> -----Original Message-----
> From: M-Ackermann [mailto:Manfred.Ackermann at t-systems.com]
> Sent: Thursday, April 14, 2005 6:55 PM
> To: david_huang at proware.com.tw
> Subject: AW: [DRBD-user] unable to mount DRBD device?
>
> > After syncing an existing filesystem to secondary, I try to mount the
> > drbd device, however it always shows "mount: /dev/drbd0: can't read
> > superblock", is there something wrong in my config file? the filesystem
> > is using XFS and I am using DRBD 0.7.8
>
> Remember: Only the primary side can be mounted! You're sure you've keept
> that in mind?
>
> ---
> Manfred Ackermann
>
> T-Systems
> Systems Integration
>
> > Systemadministrator SSC NITS
>
> Industry Business Unit Telco
> T-Systems International GmbH
> Utbremer Strase 90, D-28217 Bremen
> Telefon: +49 421 3799-815
> Telefax: +49 421 3799-169
> E-Mail: prsm-eznord at t-systems.com
> Internet: http://www.t-systems.com
>
>
> -----Ursprungliche Nachricht-----
> Von: drbd-user-bounces at lists.linbit.com
> [mailto:drbd-user-bounces at lists.linbit.com]Im Auftrag von David Huang
> Gesendet: Donnerstag, 14. April 2005 12:51
> An: drbd-user at lists.linbit.com
> Betreff: [DRBD-user] unable to mount DRBD device?
>
>
> hello everyone
>
> I am experiencing some problem when I am using DRBD.
> After syncing an existing filesystem to secondary, I try to mount the drbd
> device, however it always shows "mount: /dev/drbd0: can't read superblock",
> is there something wrong in my config file? the filesystem is using XFS and
> I am using DRBD 0.7.8
>
> the attachment is my drbd.conf
>
> cheers
>
>
> David Huang
_______________________________________________
drbd-user mailing list
drbd-user at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


More information about the drbd-user mailing list