Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

Problem with drbdsetup and /dev/sdb1

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


dan at mapolce

Aug 27, 2004, 11:16 AM

Post #1 of 5 (1618 views)
Permalink
Problem with drbdsetup and /dev/sdb1

I created the drbd devices in /dev
I have a second raid array which is /dev/sdb1
When I try to run the following:

./drbdsetup /dev/drbd0 disk meta-disk=internal meta-index=0 /dev/sdb1

Output is: /dev/sdb1 is not a valid number

Output of df -h:

Filesystem Size Used Avail Use% Mounted on
/dev/sda9 1012M 277M 684M 29% /
/dev/sda3 99M 26M 68M 28% /boot
none 504M 0 504M 0% /dev/shm
/dev/sda6 2.2G 33M 2.0G 2% /tmp
/dev/sda5 5.6G 1.8G 3.6G 34% /usr
/dev/sda8 2.0G 127M 1.8G 7% /var
/dev/sda2 3.5G 65M 3.2G 2% /home

I see that it doesn't show up here, but isn't that because nothing is
mounted on it?

Output of fdisk -l /dev/sdb

[root [at] linux user]# fdisk -l /dev/sdb

Disk /dev/sdb: 54.8 GB, 54896492544 bytes
255 heads, 63 sectors/track, 6674 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 250 2008093+ 83 Linux
[root [at] linux user]#

What must I do to correct this?

Thanks,
Dan
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


santiago at unicauca

Aug 27, 2004, 12:12 PM

Post #2 of 5 (1566 views)
Permalink
Re: Problem with drbdsetup and /dev/sdb1 [In reply to]

On Fri, 2004-08-27 at 13:16, Dan Didier wrote:
> I created the drbd devices in /dev
> I have a second raid array which is /dev/sdb1
> When I try to run the following:
>
> ./drbdsetup /dev/drbd0 disk meta-disk=internal meta-index=0 /dev/sdb1
>
> Output is: /dev/sdb1 is not a valid number

you must use /dev/nb0, see man drbdsetup


...

--
santiago josé ruano rincón
administración servidores y servicios de internet
red de datos
universidad del cauca

http://www.unicauca.edu.co/~santiago/llaves/santiago_pub.asc

hay 10 tipos de personas, las que entienden binario y las que no
Attachments: signature.asc (0.18 KB)


dan at mapolce

Aug 27, 2004, 12:27 PM

Post #3 of 5 (1575 views)
Permalink
RE: Problem with drbdsetup and /dev/sdb1 [In reply to]

d /dev/sdb1
>
> On Fri, 2004-08-27 at 13:16, Dan Didier wrote:
> > I created the drbd devices in /dev
> > I have a second raid array which is /dev/sdb1 When I try to run the
> > following:
> >
> > ./drbdsetup /dev/drbd0 disk meta-disk=internal meta-index=0
> /dev/sdb1
> >
> > Output is: /dev/sdb1 is not a valid number
>
> you must use /dev/nb0, see man drbdsetup
>

I am using .0.7.2

It says:

This example already uses /dev/drbdX instead of /dev/nbX, what you might
have expected. For historical reasons DRBD used to hijack NBDs device
major (43), and device nodes. We now have an officially assigned DRBD
major (147), therefore starting with 0.7.1 we default to use our own
major numbers and device nodes. (Unfortunately the assignment was a few
days late for 0.7.0; so your distribution may have decided to stay with
the deprecated /dev/nbX # major 43)

If your system does not know about /dev/drbdX yet, you should create
these device nodes like for i in $(seq 0 15) ; do mknod /dev/drbd$i b
147 $i ; done. See also the upgrade*.txt files, mentioned earlier.


Thanks,
Dan
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


Lars.Ellenberg at linbit

Aug 27, 2004, 3:31 PM

Post #4 of 5 (1572 views)
Permalink
Re: Problem with drbdsetup and /dev/sdb1 [In reply to]

/ 2004-08-27 14:16:34 -0400
\ Dan Didier:
>
> I created the drbd devices in /dev
> I have a second raid array which is /dev/sdb1
> When I try to run the following:
>
> ./drbdsetup /dev/drbd0 disk meta-disk=internal meta-index=0 /dev/sdb1

I admit that it might not be intuitive. but it is documented.

it says:
disk lower_dev meta_data_dev meta_data_index ...

so you want to say:
./drbdsetup /dev/drbd0 disk /dev/sdb1 internal -1

but actually, you do NOT want to say that.
you just want to edit /etc/drbd.config,
and then use drbdadm, which will call
drbdsetup for you with the correct options.

lge
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


robert at estrell

Jan 25, 2005, 10:24 PM

Post #5 of 5 (1494 views)
Permalink
Re: Problem with drbdsetup and /dev/sdb1 [In reply to]

I am a newbie to DRBD, so if this

> ./drbdsetup /dev/drbd0 disk meta-disk=internal meta-index=0 /dev/sdb1
doesn't work anymore and

> so you want to say:
> ./drbdsetup /dev/drbd0 disk /dev/sdb1 internal -1
>
> but actually, you do NOT want to say that.
--snip---

what is the correct form to create the drbd device?

thanks,

Robert



_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.