Hi all,
I recently set up OCFS2 as shared storage for a 3-node Proxmox VE cluster connected to an HPE MSA storage array. After encountering several issues I decided to seek some help from you guys. I have some problems with snapshots, migrations and windows VMs.
1.Prerequisites:
3.Then I did an OCFS2 cluster config on all nodes
I used a different cluster name then in my Proxmox cluster(maybe thats causing some errors)
4.Later on I configured O2CB on all nodes
5. I've configured firewall for OCFS2 on all nodes
6. I've started OCFS2 servieces(on the first node, the others)
7.Then I've fotmatted a filesystem(on one node only)
8.Mounting on all nodes
9.And then I've added a directory structure(on one node)
10.Lastly I've added a storage in Proxmox as a shared directory.
ISSUES:
-I ve primarly used a "Cluster-01" in the ocfs2 configs, changed that later on to "pveocfs2" but the pve cluster name remianed as was.(apparently ocfs2 doesnt like non-alphanumeric)
-Snapshots doesn't work on stared VMs(
)
-Migration sometimes doesnt work:
I hope you can help me with it in some way
Or encountered similar errors
I recently set up OCFS2 as shared storage for a 3-node Proxmox VE cluster connected to an HPE MSA storage array. After encountering several issues I decided to seek some help from you guys. I have some problems with snapshots, migrations and windows VMs.
1.Prerequisites:
- Proxmox cluster created
- Multipath configured
- pve version 8.4.1
Code:
apt install -y ocfs2-tools
modprobe ocfs2
3.Then I did an OCFS2 cluster config on all nodes
Code:
cat > /etc/ocfs2/cluster.conf << 'EOF'
cluster:
name = pveocfs2
heartbeat_mode = local
node_count = 3
node:
number = 0
cluster = pveocfs2
ip_port = 7777
ip_address = 192.168.223.60
name = pve1
node:
number = 1
cluster = pveocfs2
ip_port = 7777
ip_address = 192.168.223.30
name = pve2
node:
number = 2
cluster = pveocfs2
ip_port = 7777
ip_address = 192.168.223.20
name = pve3
EOF
4.Later on I configured O2CB on all nodes
Code:
cat > /etc/default/o2cb << 'EOF'
O2CB_ENABLED=true
O2CB_BOOTCLUSTER=pveocfs2
O2CB_HEARTBEAT_THRESHOLD=31
O2CB_IDLE_TIMEOUT_MS=30000
O2CB_KEEPALIVE_DELAY_MS=2000
O2CB_RECONNECT_DELAY_MS=2000
EOF
5. I've configured firewall for OCFS2 on all nodes
Code:
iptables -I INPUT -p tcp --dport 7777 -s 192.168.223.0/24 -j ACCEPT
iptables -I INPUT -p udp --dport 7777 -s 192.168.223.0/24 -j ACCEPT
6. I've started OCFS2 servieces(on the first node, the others)
Code:
systemctl enable o2cb ocfs2
systemctl start o2cb
service o2cb status
7.Then I've fotmatted a filesystem(on one node only)
Code:
mkfs.ocfs2 -L "vmstore" -N 3 --fs-feature-level=max-features /dev/mapper/mpatha
8.Mounting on all nodes
Code:
mkdir -p /mnt/vmstore
echo '/dev/mapper/mpatha /mnt/vmstore ocfs2 _netdev,defaults,noatime 0 0' >> /etc/fstab
mount -a
9.And then I've added a directory structure(on one node)
Code:
mkdir -p /mnt/vmstore/{images,template/iso,template/cache,dump,snippets}
chmod -R 755 /mnt/vmstore/
10.Lastly I've added a storage in Proxmox as a shared directory.
ISSUES:
-I ve primarly used a "Cluster-01" in the ocfs2 configs, changed that later on to "pveocfs2" but the pve cluster name remianed as was.(apparently ocfs2 doesnt like non-alphanumeric)
-Snapshots doesn't work on stared VMs(
Code:
TASK ERROR: VM 102 qmp command 'blockdev-snapshot-internal-sync' failed - Failed to create snapshot 'test' on device 'drive-scsi0': Input/output error
-Migration sometimes doesnt work:
Code:
2025-05-27 00:28:58 migration status error: failed - Error in migration completion: Input/output error
2025-05-27 00:28:58 ERROR: online migrate failure - aborting
2025-05-27 00:28:58 aborting phase 2 - cleanup resources
2025-05-27 00:28:58 migrate_cancel
2025-05-27 00:29:01 ERROR: migration finished with problems (duration 00:00:12)
TASK ERROR: migration problems
I hope you can help me with it in some way
