Thus far parted isn’t very nice with ext4, I suppose I could try to do so and the worst that would happen is me loosing 1 OSD, however in my tests this wasn’t very reliable.
Non GPT partition, utilizing fdisk I can do this without a problem, but OSD requires GPT (to the best of my knowledge anyway).
Hence why I would like to know if there is a way for me to do a partition from the get go. Since if the shrink doesn’t work my only other option is this. Unless of course I create a directory on the OSD file system and simlink the Spindle Journal within that new directory something like
ln -s /var/lib/ceph/osd-0/spin_journal/journal /var/lib/ceph/osd-2/journal
I feel that this approach is not very clean though.
-----Original Message----- From: ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf Of Marek Dohojda Sent: 01 December 2015 19:34 To: Wido den Hollander <wido@xxxxxxxx> Cc: ceph-users@xxxxxxxxxxxxxx Subject: Re: OSD on a partition
Well so here is my problem. I want to move journal to SSD, but I have no more Disk slots available, and the SSD I do have is used for my higher IO OSDs. Hence I dont want to lose my OSD.
So my thought was to partition the SSD into 10G and the rest with the
restbeing used for OSD, while the 10G be used for Journal. However I cant
finda reliable way to put OSD on a partition which is why I am wondering if
thereis a way to do it.
I'm wondering if you can stop the SSD OSD, unmount, shrink the partition,add the extra journal partition, start the OSD.Then stop the disk based OSD, flush the journal, move to new partition onSSD and then start it. Alernatively I could put the Journal on the SSD itself (it is ext4 file
system) butnot sure if that wouldnt be bad from perspective of Ceph to do.
Down the road I will have more SSD but this wont happen until new budget hits and I can get more servers.
On Dec 1, 2015, at 12:11 PM, Wido den Hollander <wido@xxxxxxxx>
wrote:
On 12/01/2015 07:29 PM, Marek Dohojda wrote:
I am looking through google, and I am not seeing a good guide as to how to put an OSD on a partition (GPT) of a disk. I see lots of options for file system, or single physical drive but not partition.
http://dachary.org/?p=2548
This is only thing I found but that is from 2 years ago and no comments if this works or not.
Is there a better guide/best practice for such a scenario?
Well, what is the thing you are trying to achieve? All tools want full disks, but an OSD doesn't want it persé. It just wants a mount point where it can write data to.
You can always manually bootstrap a cluster if you want to.
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
-- Wido den Hollander 42on B.V. Ceph trainer and consultant
Phone: +31 (0)20 700 9902 Skype: contact42on _______________________________________________ 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
|