kudu加减数据盘不能直接修改配置fs_data_dirs后重启,否则会报错:

Check failed: _s.ok() Bad status: Already present: FS layout already exists; not overwriting existing layout: FSManager roots already exist: /data0/kudu/data

官方解释如下:

When Kudu starts, it checks each configured data directory, expecting either for all to be initialized or for all to be empty. If a server fails to start with a log message like
then this precondition has failed. This could be because Kudu was configured with non-empty data directories on first startup, or because a previously-running, healthy Kudu process was restarted and at least one data directory was deleted or is somehow corrupted, perhaps because of a disk error. If in the latter situation, consult the Changing Directory Configurations documentation.

For higher read parallelism and larger volumes of storage per server, users may want to configure servers to store data in multiple directories on different devices. Once a server is started, users must go through the following steps to change the directory configuration.
Users can add or remove data directories to an existing master or tablet server via the kudu fs update_dirs tool. Data is striped across data directories, and when a new data directory is added, new data will be striped across the union of the old and new directories.
The tool can only run while the server is offline, so establish a maintenance window to update the server. The tool itself runs quickly, so this offline window should be brief, and as such, only the server to update needs to be offline. However, if the server is offline for too long (see the follower_unavailable_considered_failed_sec flag), the tablet replicas on it may be evicted from their Raft groups. To avoid this, it may be desirable to bring the entire cluster offline while performing the update.

操作过程为:

  • 修改kudu配置(增加或删除目录/数据盘),但不重启kudu;
  • 逐台操作tserver
    •   关闭一台tserver
    •   在这台tserver上执行 kudu fs update_dirs
    •   执行完成后启动tserver

增加数据盘后使用rebalance命令

kudu cluster rebalance

参考:
https://kudu.apache.org/releases/1.7.0/docs/troubleshooting.html#disk_issues
https://kudu.apache.org/releases/1.7.0/docs/administration.html#change_dir_config

最新文章

  1. XsltListViewWebPart 和自定义列表视图
  2. Labview实现单边带信号调制(SSB)[滤波法]
  3. Git系列(1) Windows下Git服务器搭建
  4. the5fire博客对接微信公众平台接口 | the5fire的技术博客
  5. export-data.js
  6. HDoj-2072-字数
  7. IE6里面display:inlineblock使得块元素成行排列,没用
  8. 你跟上技术趋势了么? 来看看这10场2017热门it技术会议!
  9. introduction of velocity
  10. 卸载windows补丁
  11. Ubuntu 14.04 升级 nginx/1.8.1
  12. 【任务】信息检索.MOOC学习
  13. 对Activity的DecorView的包装(二)
  14. 合并回文子串(区间dp)
  15. git放弃修改,强制覆盖本地代码
  16. FineReport: 清空(重置)条件reset()
  17. nodejs基础 -- 全局对象
  18. Android RIL的java框架
  19. 07-python链接mysql
  20. Enable Scribble,Enable Guard Edges,Enable Guard Malloc,Zombie Objects

热门文章

  1. ueditor 图片选区错位问题,图片无法正常缩放
  2. redis---set类型常用命令
  3. 在业务控制方法中写入模型变量收集参数,且使用@InitBind来解决字符串转日期类型
  4. 深度学习之Seq_seq网络
  5. PyQt5中QTableWidget设置列宽大小的几种方式
  6. SqlServer/Oracle 通过一个sql判断新增/修改
  7. React Native项目实战
  8. appium的第一个实例
  9. Gitlab-Runner基础教程
  10. VS Code中内置终端运行C中文乱码问题