02 2016 档案

CEPH块设备创建及快照
摘要:1、创建image rbd create foo --size 1024 {--image-format 2}//创建一个名为foo的image,大小为1024M,当需要克隆快照时,需要添加大括号中的内容 2、加载rbd模块 sudo modprobe rbd 3、使用image 通过map指令将镜 阅读全文

posted @ 2016-02-29 14:54 姚灯灯! 阅读(945) 评论(0) 推荐(0)

Ubuntu 14.04 部署 CEPH集群
摘要:注:下文的所有操作都在admin节点进行 1、准备三台虚拟机,其中一台作为admin节点,另外两台作为osd节点,并相应地用hostname命令将主机名修改为admin,osd0,osd1,最后修改/etc/hosts文件如下所示 127.0.0.1 localhost 10.10.102.85 a 阅读全文

posted @ 2016-02-27 20:12 姚灯灯! 阅读(1889) 评论(0) 推荐(0)

Ubuntu 14.04 单机安装 CEPH
摘要:0、如果先前安装过ceph,则先卸载 sudo stop ceph-all //停止所有CEPH进程 ceph-deploy uninstall [{ceph-node}] //卸载所有ceph程序 ceph-deploy purge [[ceph-node} [{ceph-node}] //删除c 阅读全文

posted @ 2016-02-25 16:44 姚灯灯! 阅读(4525) 评论(0) 推荐(0)

LeetCode题解-----Median of Two Sorted Arrays
摘要:题目描述: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complex 阅读全文

posted @ 2016-02-21 20:55 姚灯灯! 阅读(3146) 评论(0) 推荐(0)

LeetCode题解-----First Missing Positive
摘要:Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorithm s 阅读全文

posted @ 2016-02-18 22:10 姚灯灯! 阅读(426) 评论(0) 推荐(0)

导航