Hi Or,
I did some sort of this a while ago. If your machines do have a free
disk slot - just put another disk there and use it as another
data_file_directory.
If not - as in my case:
- grab an usb dock for disks
- put the new one in there, plug in, format, mount to /mnt etc.
- I did an online rsync from /var/lib/cassandra/data to /mnt
- after that, bring cassandra down
- do another rsync from /var/lib/cassandra/data to /mnt (should be
faster, as sstables do not change, minimizes downtime)
- if you need adjust /etc/fstab if needed
- shutdown the node
- swap disks
- power on the node
- everything should be fine ;-)
Of course you will need a replication factor > 1 for this to work ;-)
Just my 2 cents,
Jan
rsync the full contents there,
Am 18.12.2014 um 16:17 schrieb Or Sher:
Hi all,
We have a situation where some of our nodes have smaller disks and we
would like to align all nodes by replacing the smaller disks to bigger
ones without replacing nodes.
We don't have enough space to put data on / disk and copy it back to
the bigger disks so we would like to rebuild the nodes data from other
replicas.
What do you think should be the procedure here?
I'm guessing it should be something like this but I'm pretty sure it's
not enough.
1. shutdown C* node and server.
2. replace disks + create the same vg lv etc.
3. start C* (Normally?)
4. nodetool repair/rebuild?
*I think I might get some consistency issues for use cases relying on
Quorum reads and writes for strong consistency.
What do you say?
Another question is (and I know it depends on many factors but I'd
like to hear an experienced estimation): How much time would take to
rebuild a 250G data node?
Thanks in advance,
Or.
--
Or Sher