1.前言
本文阐述了在Suse Linux上安装Db2 pureScale的详细过程,仅部署一个member和一个CF,主要目的是让大家在单个虚机上可以安装pureScale,不需要很多的机器和网络设备,帮助大家尽快的熟悉pureScale的安装和使用。
2.软件下载
在下面的网址中下载Db2 11.1的开发版,这个版本对使用pureScale不需要许可证文件。
https://www.ibm.com/us-en/marketplace/ibm-db2-direct-and-developer-editions
建议使用IE浏览器,在我本机使用firefox的时候有问题,可能和版本和浏览器的设置有关系。
3.如何将安装包传到虚拟机的环境
可以通过以下两种方式
1)将本机Windows的IP设置为和虚拟机的IP在同一个网段,然后通过sftp传输安装包;
2)通过在虚拟机中的设置/选项/Shared Folders中增加共享目录
本人在安装过程中无法使用第二种方式,因此采用了第一种方式;
4.支持的操作系统版本
请参考下面的网址:
https://www.ibm.com/support/knowledgecenter/SSEPGG_11.1.0/com.ibm.db2.luw.qb.server.doc/doc/r0057441.html
5.存储空间方面的准备工作
在开始安装之前,先准备下面的3块硬盘,在虚机的设置界面里选择增加硬盘,使用缺省配置就可以,界面如下:
这3块盘的容量和用途如下
/dev/sdb 3GB #实例共享目录instance_shared_dir
/dev/sdc 6GB #用户数据库的数据空间,建议不少于3GB,否则可能创建数据库失败
/dev/sdd 1GB #用户数据库日志空间
执行fdisk -l将看到这3块盘,输出如下:
node01:~/Desktop # fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00020b25
Device Boot Start End Blocks Id System
/dev/sda1 2048 4208639 2103296 82 Linux swap / Solaris
/dev/sda2 * 4208640 83886079 39838720 83 Linux
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders, total 6291456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 6291455 3145727+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders, total 12582912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Bloc