[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-1099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16061336#comment-16061336
 ] 

Zhimeng Shi commented on BOOKKEEPER-1099:
-----------------------------------------

I think the problem now is how do we mount the disks. in Salesforce we will 
mount them on upper level folder like the /data1/bookkeeper and 
/data2/bookkeeper. In Twitter you will mount them directly on the final folder, 
I think that is fine for different preference. So I have another proposal may 
resolve this problem better:

1. Add a new function like CheckAndInitFolders(), which will only create the 
folders when found they are not exist. This way can avoid the risk to loss data 
like calling format automatically.
2. Make this function call configurable in config file. So in Salesforce we 
will enable it, and in Twitter you can disable it. Actually even enable it will 
not do harm because it will first check if the folder already exist, which is 
true in your case.

Is that good for you? 

> 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)

Reply via email to