Вы находитесь на странице: 1из 2

GPFS configuration

------------------Add the nodes Hostname & IP in hosts file


#vi /etc/hosts
Node Name1
Node Name2

IP Address
IP Address

# ssh-keygen -t rsa
# cp $HOME/.ssh/id_rsa.pub $HOME/.ssh/authorized_keys
On Node 2
Then from node2 copy the content of $HOME/.ssh/id_rsa.pub to $HOME/.ssh/authoriz
ed_keys
On Node 1
Copy the content from node1 $HOME/.ssh/authorized_keys to node2 $HOME/.ssh/autho
rized_keys
node1#
node1#
node2#
node2#

ssh
ssh
ssh
ssh

node1
node2
node1
node2

Creat the node list


#mkdir gpfs_config
#vi gpfs-nodes
Node 1:manager-quorum
Node 2:manager-quorum
#mmcrcluster C GPFS_CLUSTER -N /gpfs_config/nodeslist -p ORADBDR1 -s ORADBDR2 -r
/usr/bin/ssh -R /usr/bin/scp
Then start the GFPS on both the nodes
Node 1
#startup
Node 2
#startup
Then On Node 1 create file for NSD Creation
#vi /gpfs_config/gpfs-disks
hdisk3:::dataAndMetadata::nsd1:
hdisk6:::dataAndMetadata::nsd2:
hdisk7:::dataAndMetadata::nsd3:
#mmcrnsd -F /gpfs_config/gpfs-disk
After this the /gpfs_config/gpfs-disks look like this

# hdisk3:::dataAndMetadata::nsd1:
nsd1:::dataAndMetadata:-1::
# hdisk6:::dataAndMetadata::nsd2:
nsd2:::dataAndMetadata:-1::
# hdisk7:::dataAndMetadata::nsd3:
nsd3:::dataAndMetadata:-1::
From the above output copy the uncommected line for creating FS
nsd1:::dataAndMetadata:-1::
nsd2:::dataAndMetadata:-1::
nsd3:::dataAndMetadata:-1::
now check the disk space for creating the filesystem.
hdisk3 5TB
hdisk6 1TB
hdisk7 100GB
now create the files for each filesystem which need to be created
#vi /gpfs_config/fs1
nsd1:::dataAndMetadata:-1::
#vi /gpfs_config/fs2
nsd2:::dataAndMetadata:-1::
#vi /gpfs_config/fs3
nsd3:::dataAndMetadata:-1::
Now run the command to creat the FS
mmcrfs /oradata oradata -F fs1 -M2 -R2
mmcrfs /oradata4 oradata4 -F fs2 -M2 -R2
mmcrfs /oradata3 oradata3 -F fs3 -M2 -R2
After the command is completed
Mount the filesystem on both the nodes.
#mount /oradata
#mount /oradata4
#mount /oradata3

Вам также может понравиться