[
https://issues.apache.org/jira/browse/BOOKKEEPER-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13706027#comment-13706027
]
Sijie Guo commented on BOOKKEEPER-647:
--------------------------------------
since changing ledger directories and journal directory might cause data loss
and data inconsistency, I don't think we should handle in bookkeeper level. it
is easier to handle outside of bookkeeper.
for example, you want to move one ledger journal disk from hard-disk to ssd.
assumed your ledger disk is /dev/sdc1, which is mounted in /data/ledger-dir.
1) you could mount your ssd in a temp dir : /data/ledger-dir-tmp
2) copied your data from /data/ledger-dir to /data/ledger-dir-tmp
3) unmount your hard disk, ssd
4) mount your ssd in /data/ledger-dir
5) restared your bookie without changing any configuration.
> Support changing the journalDirectory and ledgerDirectory after installation
> ----------------------------------------------------------------------------
>
> Key: BOOKKEEPER-647
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-647
> Project: Bookkeeper
> Issue Type: New Feature
> Components: bookkeeper-server
> Affects Versions: 4.2.1
> Reporter: Vinay
> Assignee: Vinay
> Fix For: 4.2.2, 4.3.0
>
>
> In some cases, user may need to change/add the journal/ledger directories due
> to some problem/performance improvement.
> Since ledgerDirectories, journalDirectories and port is stored in cookies,
> changing any of these is not supported.
> BookKeeper can support changing of ledgerDirectories, journalDirectories
> through some Administrative command.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira