本文以示例的方式说明如何通过iscsi协议来使用ceph的rbd块存储。...
分类:
其他好文 时间:
2015-06-18 11:32:13
阅读次数:
773
原文:https://www.baidu.com/s?wd=%23!%2Fbin%2Fbash&rsv_spt=1&issp=1&f=8&rsv_bp=0&rsv_idx=2&ie=utf-8&tn=site888_3_pg&rsv_enter=1&rsv_n=2&rsv_sug3=1#!/bin/...
分类:
其他好文 时间:
2015-06-17 19:59:06
阅读次数:
99
最近在使用ExtJs进行数据提交进行插入的时候会有乱码,什么都不说直接来段代码:
// 添加点组
var addPointGroup = function(groupName)
{
Ext.Ajax.request(
{
url : pg_servlet + '_addFavoriteGroup?name='
+ encodeURI(magusEncodeURI(groupNam...
分类:
Web程序 时间:
2015-06-17 13:35:57
阅读次数:
101
#include
#include
#include
#include
#include
using namespace std;
class Solution
{
public:
vector twoSum ( vector &nums, int target )
{
vector pg; //存放返回值
map Map;
vector::size_...
分类:
其他好文 时间:
2015-06-13 15:48:28
阅读次数:
124
#基础篇 ##引言 ##第一章:ceph的前世今生 ###1.1 ceph的诞生 ###1.2 ceph的市场前景 ##第二章:ceph的根基-RADOS ###2.1 ceph与分布式文件系统 ###2.2 RADOS的组成 ####2.2.1 MON简介 ####2.2.1 OSD简介 ####2....
分类:
其他好文 时间:
2015-06-10 12:37:33
阅读次数:
808
话不多说,先上代码。
//code path:arch/arm/mach-at91/board-sam9260ek.cMACHINE_START(AT91SAM9260EK, "Atmel AT91SAM9260-EK")
/* Maintainer: Atmel */
.phys_io = AT91_BASE_SYS,
.io_pg_offst = (AT91_VA_BASE_SYS >...
分类:
其他好文 时间:
2015-06-09 17:30:04
阅读次数:
280
定制化crushmap简单实验首先,查看原始osd目录树[root@bgw-os-node151~]#cephosdtree#idweighttypenameup/downreweight-13.24rootdefault-51.08rackrack1-21.08hostbgw-os-node15100.27osd.0up110.27osd.1up120.27osd.2up130.27osd.3up1-61.08rackrack2-31.08hostbgw-os-node15..
分类:
其他好文 时间:
2015-06-02 18:15:32
阅读次数:
2965
Cephmonitor故障恢复查看ceph健康状态[root@bgw-os-node151~]#cephhealthHEALTH_OK[root@bgw-os-node151~]#cephhealthdetailHEALTH_OK[root@bgw-os-node151~]#cephmonstate2:3monsat{bgw-os-node151=10.240.216.151:6789/0,bgw-os-node152=10.240.216.152:6789/0,bgw-os-node15..
分类:
其他好文 时间:
2015-06-01 20:37:44
阅读次数:
633
postgresql默认情况下,远程访问不能成功,如果需要允许远程访问,需要修改两个配置文件,说明如下:1.postgresql.conf将该文件中的listen_addresses项值设定为“*”,在9.0 Windows版中,该项配置已经是“*”,无需修改。2.pg_hba.conf在该配置文件...
分类:
数据库 时间:
2015-06-01 11:26:34
阅读次数:
152
DBI:连接所有数据库的API。
DBD:是DBI针对不同数据库的驱动。
DBD::mysql
DBD::Pg
DBD::SQLite
如果没有,使用cpan安装即可。
######################################################################
DBI接口:
习惯用法:
$dbh数据库句柄
$sth语...
分类:
数据库 时间:
2015-05-31 15:24:12
阅读次数:
168