[ https://issues.apache.org/jira/browse/BOOKKEEPER-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16061496#comment-16061496 ]
Sijie Guo commented on BOOKKEEPER-1099: --------------------------------------- [~zshi] If you already have the script to create the directory and mount disks, why don't you just create the sub-directories along with this process? Or I can ask in a different way: you are saying creating /data1/bookkeeper and mount the disk, and creating /data1/bookkeeper/journal and /data1/bookkeeper/ledgers. That means /data1/bookkeeper/journal and /data1/bookkeeper/ledgers are on the same disk. Why can't you just configure journalDirectory=/data1/bookkeeper and ledgerDirectories=/data1/bookkeeper? Isn't that simpler? Because I don't see any point to have separate directory if they are on same disk. I am also not in favor of having a flag like this. It increases a lot of unknowns. We should just keep a simple contract between bookkeeper process and deployment scripts. Deployment scripts should handle creating the directories and mounting the disk layouts, the bookkeeper process should just take the directories to work on, if the directories are not created, that means the machine is not well prepared, it should fail. > Make bookie automatically create folders on new machine. > -------------------------------------------------------- > > Key: BOOKKEEPER-1099 > URL: https://issues.apache.org/jira/browse/BOOKKEEPER-1099 > Project: Bookkeeper > Issue Type: Improvement > Components: bookkeeper-server > Reporter: Zhimeng Shi > Priority: Minor > Original Estimate: 24h > Remaining Estimate: 24h > > When bookie start and found it need run bookie format to create folders it > should do that automatically. That way will make new machine deployment and > machine replacement process much simpler without manually call the > bookieformat command. -- This message was sent by Atlassian JIRA (v6.4.14#64029)