新盘挂载
mount /dev/vdbc /ssd
创建目录
mkdir /ssd/gpdata
chown -R gpadmin:gpadmin /ssd/gpdata
创建目录:(1m+4s)
mkdir /ssd/gpdata/gp1
mkdir /ssd/gpdata/gp2
mkdir /ssd/gpdata/gp3
mkdir /ssd/gpdata/gp4
mkdir /ssd/gpdata/gpmaster
创建文件空间:
cd /ssd/gpdata
/usr/local/greenplum-db-5.5.0/bin/gpfilespace -o .
gpfilespace --config ./gpfilespace_config_20180523_141732
创建表空间:
create tablespace ssd owner gpadmin filespace ssd
查表空间:
select * from pg_tablespace ;
--建表
create table ...
with(appendonly=true,orientation=column,compresslevel=5)
tablespace ssd
distributed by (memberid)
;
参考:
http://blog.163.com/digoal@126/blog/static/163877040201511185254568/
网友评论