Re: Replacing a disk: Best practices?

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

 



Loic,

> >         root@ceph-node3:~#  smartctl -a /dev/sdd | less
> >                 === START OF INFORMATION SECTION ===
> >                 Device Model:     ST4000NM0033-9ZM170
> >                 Serial Number:    Z1Z5LGBX
> >
.. 
> >         admin@ceph-admin:~/cluster1$ emacs -nw ceph.conf
> >                 [osd.16]
> >                         ...
> >                         devs         = /dev/disk/by-id/scsi-SATA_ST4000NM0033-9Z_Z1Z5LGBX-part1
> >
> 
> I'm curious about what this is used for.

The "normal" device path /dev/sdd1 can change dependent on the amount/order of disks/controllers. So, using the scsi-path (containing the serial number)  is always unique:

root@ceph-node3:~# ls -altr /dev/sdd1
brw-rw---T 1 root disk 8, 49 Okt 15 10:06 /dev/sdd1

root@ceph-node3:~# ls -altr /dev/disk/by-id/scsi-SATA_ST4000NM0033-9Z_Z1Z5LGBX-part1
lrwxrwxrwx 1 root root 10 Okt 15 10:06 /dev/disk/by-id/scsi-SATA_ST4000NM0033-9Z_Z1Z5LGBX-part1 -> ../../sdd1

regards
Danny

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux