How to find the disk partitions attached to a OSD

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

 



This would give you pretty good understanding where the mounts and
/dev/sd* are.

[jlu at gfsnode1 osd]$ ceph-disk list; pwd; ls -lai
/dev/sda :
 /dev/sda1 other, mounted on /boot
 /dev/sda2 other
/dev/sdb other, unknown, mounted on /ceph/osd120
/dev/sdc other, unknown, mounted on /ceph/osd121
/dev/sdd other, unknown, mounted on /ceph/osd122
/dev/sde other, unknown, mounted on /ceph/osd123
/dev/sdf other, unknown, mounted on /ceph/osd124
/dev/sdg other, unknown, mounted on /ceph/osd125
/dev/sdh other, unknown, mounted on /ceph/osd126
/dev/sdi other, unknown, mounted on /ceph/osd127
/dev/sdj other, unknown, mounted on /ceph/osd128
/dev/sdk other, unknown, mounted on /ceph/osd129
/dev/sdl other, unknown, mounted on /ceph/osd130
/var/lib/ceph/osd
total 8
 497 drwxr-xr-x 2 root root 4096 May 15 15:28 .
 492 drwxr-xr-x 8 root root 4096 May 15 15:13 ..
 725 lrwxrwxrwx 1 root root   12 May 15 15:21 ceph-33 -> /ceph/osd120
 782 lrwxrwxrwx 1 root root   12 May 15 15:22 ceph-34 -> /ceph/osd121
1081 lrwxrwxrwx 1 root root   12 May 15 15:23 ceph-35 -> /ceph/osd122
1095 lrwxrwxrwx 1 root root   12 May 15 15:24 ceph-36 -> /ceph/osd123
1129 lrwxrwxrwx 1 root root   12 May 15 15:24 ceph-37 -> /ceph/osd124
1137 lrwxrwxrwx 1 root root   12 May 15 15:25 ceph-38 -> /ceph/osd125
1143 lrwxrwxrwx 1 root root   12 May 15 15:25 ceph-39 -> /ceph/osd126
1185 lrwxrwxrwx 1 root root   12 May 15 15:26 ceph-40 -> /ceph/osd127
1242 lrwxrwxrwx 1 root root   12 May 15 15:27 ceph-41 -> /ceph/osd128
1398 lrwxrwxrwx 1 root root   12 May 15 15:27 ceph-42 -> /ceph/osd129
1437 lrwxrwxrwx 1 root root   12 May 15 15:28 ceph-43 -> /ceph/osd130
[jlu at gfsnode1 osd]$

-Jimmy


On 5/21/14, 8:33 AM, "Sage Weil" <sage at inktank.com> wrote:

>You might also try
>
> ceph-disk list
>
>sage
>
>
>On Wed, 21 May 2014, Mike Dawson wrote:
>
>> Looks like you may not have any OSDs properly setup and mounted. It
>>should
>> look more like:
>> 
>> user at host:~# mount | grep ceph
>> /dev/sdb1 on /var/lib/ceph/osd/ceph-0 type xfs (rw,noatime,inode64)
>> /dev/sdc1 on /var/lib/ceph/osd/ceph-1 type xfs (rw,noatime,inode64)
>> /dev/sdd1 on /var/lib/ceph/osd/ceph-2 type xfs (rw,noatime,inode64)
>> 
>> Confirm the OSD in your ceph cluster with:
>> 
>> user at host:~# ceph osd tree
>> 
>> - Mike
>> 
>> 
>> On 5/21/2014 11:15 AM, Sharmila Govind wrote:
>> > Hi Mike,
>> > Thanks for your quick response. When I try mount on the storage node
>> > this is what I get:
>> > 
>> > *root at cephnode4:~# mount*
>> > */dev/sda1 on / type ext4 (rw,errors=remount-ro)*
>> > *proc on /proc type proc (rw,noexec,nosuid,nodev)*
>> > *sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)*
>> > *none on /sys/fs/fuse/connections type fusectl (rw)*
>> > *none on /sys/kernel/debug type debugfs (rw)*
>> > *none on /sys/kernel/security type securityfs (rw)*
>> > *udev on /dev type devtmpfs (rw,mode=0755)*
>> > *devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)*
>> > *tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)*
>> > *none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)*
>> > *none on /run/shm type tmpfs (rw,nosuid,nodev)*
>> > */dev/sdb on /mnt/CephStorage1 type ext4 (rw)*
>> > */dev/sdc on /mnt/CephStorage2 type ext4 (rw)*
>> > */dev/sda7 on /mnt/Storage type ext4 (rw)*
>> > */dev/sda2 on /boot type ext4 (rw)*
>> > */dev/sda5 on /home type ext4 (rw)*
>> > */dev/sda6 on /mnt/CephStorage type ext4 (rw)*
>> > 
>> > 
>> > 
>> > Is there anything wrong in the setup I have? I dont have any 'ceph'
>> > related mounts.
>> > 
>> > Thanks,
>> > Sharmila
>> > 
>> > 
>> > 
>> > On Wed, May 21, 2014 at 8:34 PM, Mike Dawson <mike.dawson at cloudapt.com
>> > <mailto:mike.dawson at cloudapt.com>> wrote:
>> > 
>> >     Perhaps:
>> > 
>> >     # mount | grep ceph
>> > 
>> >     - Mike Dawson
>> > 
>> > 
>> > 
>> >     On 5/21/2014 11:00 AM, Sharmila Govind wrote:
>> > 
>> >         Hi,
>> >            I am new to Ceph. I have a storage node with 2 OSDs. Iam
>> >         trying to
>> >         figure out to which pyhsical device/partition each of the
>>OSDs are
>> >         attached to. Is there are command that can be executed in the
>> >         storage
>> >         node to find out the same.
>> > 
>> >         Thanks in Advance,
>> >         Sharmila
>> > 
>> > 
>> >         _________________________________________________
>> >         ceph-users mailing list
>> >         ceph-users at lists.ceph.com <mailto:ceph-users at lists.ceph.com>
>> >         http://lists.ceph.com/__listinfo.cgi/ceph-users-ceph.__com
>> >         <http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com>
>> > 
>> > 
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users at lists.ceph.com
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>> 
>> 
>_______________________________________________
>ceph-users mailing list
>ceph-users at lists.ceph.com
>http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



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


  Powered by Linux