大网数据广告活动
服务器运维问答

Shared storage for KVM server cluster?

· 52CE 我爱测

I have Dell EMC SCv3020 Storage Array and I want to create shared storage for all 3 physical servers to use the same (LVM?) for creating KVM VMs in cluster so if 1 server dies, we can move VM to another one. We have solution for …

问题原文

原帖链接 · Mr green · CC BY-SA 4.0

I have Dell EMC SCv3020 Storage Array and I want to create shared storage for all 3 physical servers to use the same (LVM?) for creating KVM VMs in cluster so if 1 server dies, we can move VM to another one. We have solution for HA failover but we are not sure how to do this shared storage setup.

Should we setup simple NFS on virtual machines and share? If yes, which filesystem will be on NFS, and should we make LVM on it? Does filesystem need to be cluster aware so there is no data corruption because all servers are accessing same storage?

We also have VMware on this infrastructure using Dell storage array and production VMs on it so is it possible maybe to use VMFS Vmware datastore to create Virtual machines on which we will setup this shared storage on all 3 new physical servers for deploying KVM VMs all servers on same shared storage?

社区高分解答

原帖链接 · BaronSamedi1958 · CC BY-SA 4.0

I have Dell EMC SCv3020 Storage Array and I want to create shared storage for all 3 physical servers to use the same (LVM?) for creating KVM VMs in cluster so if 1 server dies, we can move VM to another one. We have solution for HA failover but we are not sure how to do this shared storage setup.

What you have is a classic so-called dual-controller SAN, depending on your connectivity (Fibre Channel Vs iSCSI) you simply create a new virtual LUN from your SAN disk pool, and expose this virtual LUN to your storage consumers. If you'll use VMware it will format it with VMFS which is cluster-aware file system and will use this new datastore for VMs.

This is some great guide you should follow:

https://www.delltechnologies.com/asset/en-us/products/storage/industry-market/h16391-dellemc-unity-storage-vmware-vsphere.pdf

If you'll use just some servers w/out hypervisor you'll have to use some cluster-aware file system or you'll trash the metadata on your virtual LUN with some non-arbitrated writes. See:

https://forums.starwindsoftware.com/viewtopic.php?f=5&t=1392

Should we setup simple NFS on virtual machines and share?

You can use NFS for VMware datastore (so with KVM but not with Hyper-V), but you'll need some level of HA here as you don't want your VM datastore to become a single point of failure (SPOF).

If yes, which filesystem will be on NFS, and should we make LVM on it? Does filesystem need to be cluster aware so there is no data corruption because all servers are accessing same storage?

See above. In case you'll use VMware it will be VMFS on top of your virtual LUN and there will be VM datastore and you can expose any file system from inside of your production VMs.

We also have VMware on this infrastructure using Dell storage array and production VMs on it so is it possible maybe to use VMFS Vmware datastore to create Virtual machines on which we will setup this shared storage on all 3 new physical servers for deploying KVM VMs all servers on same shared storage?

This is a way to go actually.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-05-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。