Re: Using RBD with LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You need to add a line to /etc/lvm/lvm.conf:

types = [ "rbd", 1024 ]

It should be in the "devices" section of the file.

On Tue, Sep 24, 2013 at 5:00 PM, John-Paul Robinson <jpr@xxxxxxx> wrote:
> Hi,
>
> I'm exploring a configuration with multiple Ceph block devices used with
> LVM.  The goal is to provide a way to grow and shrink my file systems
> while they are on line.
>
> I've created three block devices:
>
> $ sudo ./ceph-ls  | grep home
> jpr-home-lvm-p01: 102400 MB
> jpr-home-lvm-p02: 102400 MB
> jpr-home-lvm-p03: 102400 MB
>
> And have them mapped into my kernel (3.2.0-23-generic #36-Ubuntu SMP):
>
> $ sudo rbd showmapped
> id pool image            snap device
> 0  rbd  jpr-test-vol01   -    /dev/rbd0
> 1  rbd  jpr-home-lvm-p01 -    /dev/rbd1
> 2  rbd  jpr-home-lvm-p02 -    /dev/rbd2
> 3  rbd  jpr-home-lvm-p03 -    /dev/rbd3
>
> In order to use them with LVM, I need to define them as physical
> volumes.  But when I run this command I get an unexpected error:
>
> $ sudo pvcreate /dev/rbd1
>   Device /dev/rbd1 not found (or ignored by filtering).
>
> I am able to use other RBD on this same machine to create file systems
> directly and mount them:
>
> $ df -h /mnt-test
> Filesystem      Size  Used Avail Use% Mounted on
> /dev/rbd0        50G  885M   47G   2% /mnt-test
>
> Is there a reason that the /dev/rbd[1-2] devices can't be initialized as
> physical volumes in LVM?
>
> Thanks,
>
> ~jpr
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux