Difference between revisions of "stoney cloud: Multi-Node Installation"

From stoney cloud
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Manual Steps)
Line 30: Line 30:
  
 
passwd transfer
 
passwd transfer
 +
</source>
 +
 +
Adjust sshd config to allow password authentication:
 +
<source lang="bash">
 +
$EDITOR /etc/ssh/sshd_config
 +
</source>
 +
<pre>
 +
ListenAddress <ADMIN-IP>
 +
ListenAddress <DATA-IP>
 +
 +
# override default of no subsystems
 +
Subsystem      sftp    internal-sftp
 +
 +
[...]
 +
 +
AllowUsers admin@192.168.16.254 vmmanager vm-transfer@10.16.97.*
 +
 +
Match User vm-transfer
 +
    ChrootDirectory /var/virtualization
 +
    ForceCommand internal-sftp
 +
    AllowTcpForwarding no
 +
</pre>
 +
 +
To apply the changes above, restart the SSH daemon:
 +
<source lang="bash">
 +
/etc/init.d/sshd restart
 
</source>
 
</source>
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]

Revision as of 15:39, 6 September 2013

Specialized Installation

Primary-Master-Node (vm-node-01)

If you configured a additional Backup Volume on the Storage Nodes, you want to mount them now in the VM-Node.

Log into the Primary-Master-Node and execute the node-configuration script as follows:

/usr/sbin/fc-node-configuration --node-type primary-master-node

Manual Steps

In order to be able to migrate a VM from one carrier to another, a special user called transfer will be created. This user is able to open connections to another carrier and fetch a VM's disk file (qcow2 image).

Install a transfer user.

lvcreate -L 60G -n transfer local0
 
mkfs.xfs -L "OSBD_transfe" /dev/local0/transfer 
 
cat << EOF >> /etc/fstab
 
LABEL=OSBD_transfe  /home/transfer    xfs      noatime,nodev,nosuid,noexec  0 2
EOF
 
mount /home/transfer
 
useradd --comment "User which is used for VM disk file transfer between carriers" \
        --create-home \
        --system \
        --user-group \
        transfer
 
passwd transfer

Adjust sshd config to allow password authentication:

$EDITOR /etc/ssh/sshd_config
ListenAddress <ADMIN-IP>
ListenAddress <DATA-IP>

# override default of no subsystems
Subsystem       sftp    internal-sftp

[...]

AllowUsers admin@192.168.16.254 vmmanager vm-transfer@10.16.97.*

Match User vm-transfer
    ChrootDirectory /var/virtualization
    ForceCommand internal-sftp
    AllowTcpForwarding no

To apply the changes above, restart the SSH daemon:

/etc/init.d/sshd restart