Replace journals disk

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

 



2014-05-06 16:33 GMT+02:00 Gandalf Corvotempesta
<gandalf.corvotempesta at gmail.com>:
> Symlink are pointing to partition UUID this prevent the replacement
> without manual intervetion:
>
> journal -> /dev/disk/by-partuuid/b234da10-dcad-40c7-aa97-92d35099e5a4
>
> is not possible to create symlink pointing to a device ?
> My new disk will generate new partitions UUIDs

I did this:

/etc/init.d/ceph stop osd
sgdisk --backup=/tmp/journal_table /dev/sdd
<replaced osd disk>
sgdisk --restore-backup=/tmp/journal_table /dev/sdd
ceph-osd -i 1 --mkjournal
ceph-osd -i 4 --mkjournal
ceph-osd -i 6 --mkjournal
/etc/init.d/ceph start osd

it worked, the only tricky part was to run --mkjournal for each ceph OSD.
Is possible to automate this in some way? If not, I have to remember
each OSD id and manually recreate the journal.
What happen if I'll run "/etc/init.d/ceph start osd" with blank
journals partitions ? (no FS created)


[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