Step-by-Step Proxmox and Ceph High Availability Setup Guide | Free High Availability Storage

Prerequisites
Three or more nodes: Ensure you have at least three nodes to create a Ceph cluster.
Proxmox VE installed on all nodes: Ensure all nodes have Proxmox VE installed and network connectivity between them.
Network Configuration: Proper network setup for cluster communication and Ceph replication.

Step 1: Prepare Proxmox Nodes

  1. Update and Upgrade Proxmox VE on all nodes:

apt update && apt full-upgrade -y

2. Ensure that all nodes have the same version of Proxmox VE:

pveversion

Step 2: Set Up the Proxmox Cluster

  1. Create a new cluster on the first node:
    • pvecm create my-cluster
  2. Add the other nodes to the cluster:
    • pvecm add <IP_of_first_node>
  3. Verify the cluster status:
    • pvecm status

Step 3: Install Ceph on Proxmox Nodes

  1. Install Ceph packages on all nodes:

install ceph ceph-mgr -y

Step 4: Create the Ceph Cluster

  1. Initialize the Ceph cluster on the first node:
    • pveceph init --network <cluster_network>
  2. Create the manager daemon on the first node:
    • pveceph createmgr

Step 5: Add OSDs (Object Storage Daemons)

  1. Prepare disks on each node for Ceph OSDs:
    • pveceph createosd /dev/sdX
  2. Repeat the process for each node and disk.

Step 6: Create Ceph Pools

  1. Create a Ceph pool for VM storage:
    • pveceph pool create mypool 128

Step 7: Configure Proxmox to Use Ceph Storage

  1. Add the Ceph storage to Proxmox:
    • Navigate to Datacenter > Storage > Add > RBD.
    • Enter the required details like ID, Pool, and Monitor hosts.
    • Save the configuration.

Step 8: Enable HA (High Availability)

  1. Configure HA on Proxmox:
    • Navigate to Datacenter > HA.
    • Add resources (VMs or containers) to the HA manager.
    • Configure the HA policy and set desired node priorities.

Step 9: Testing High Availability

  1. Simulate node failure: Power off one of the nodes and observe how the VMs or containers are automatically migrated to other nodes.

Step 10: Monitoring and Maintenance

  1. Use the Proxmox and Ceph dashboards to monitor the health of your cluster.
  2. Regularly update all nodes to ensure stability and security.

Optional: Additional Ceph Configuration

  1. Add Ceph Monitors for redundancy:bashKodu kopyalapveceph createmon
  2. Add more Ceph MDS (Metadata Servers) if using CephFS:bashKodu kopyalapveceph createmds
  3. Tune Ceph settings for performance and reliability based on your specific needs.

By following these steps, you will have a robust Proxmox VE and Ceph high availability setup, ensuring that your VMs and containers remain highly available even in the event of hardware failures.

Attach QNAP iSCSI Disk to Windows | Connect to Storage Without HBA Interface

Certainly, attaching a QNAP iSCSI disk to a Windows system involves several steps. Below is a general guide, but please note that specific steps may vary depending on the QNAP NAS model and the version of QTS firmware. Always refer to the documentation provided by QNAP for your specific model.

1. Configure iSCSI on QNAP NAS:

  • Log in to the QNAP NAS web interface.
  • Go to “Control Panel” > “Storage & Snapshots” > “iSCSI Storage.”
  • Create an iSCSI target and specify the settings, such as the target name and access permissions.
  • Create an iSCSI LUN (Logical Unit Number) within the target, specifying its size and other relevant parameters.
  • Note the iSCSI Target IQN (iSCSI Qualified Name) and the IP address of your QNAP NAS.

2. Connect Windows to the iSCSI Target:

  • On your Windows machine, open the iSCSI Initiator.
    • You can open it by searching for “iSCSI Initiator” in the Start menu.
  • In the iSCSI Initiator Properties window, go to the “Targets” tab.
  • Enter the IP address of your QNAP NAS in the “Target” field and click “Quick Connect.”
  • In the Quick Connect window, select the iSCSI target from the list and click “Connect.”
  • In the Connect to Target window, check the box next to “Enable multi-path” if your QNAP NAS supports it.
  • Click “Advanced Settings” to configure CHAP (Challenge-Handshake Authentication Protocol) settings if you have set up authentication on your QNAP NAS.
  • Click “OK” to connect to the iSCSI target.

3. Initialize and Format the iSCSI Disk:

  • Once connected, open the Disk Management tool on your Windows machine.
    • You can open it by searching for “Create and format hard disk partitions” in the Start menu.
  • You should see the new iSCSI disk as an uninitialized disk.
  • Right-click on the uninitialized disk and choose “Initialize Disk.”
  • Right-click on the newly initialized disk and select “New Simple Volume.”
  • Follow the wizard to create a new partition, assign a drive letter, and format the disk with your preferred file system.

4. Access the iSCSI Disk:

  • After formatting, the iSCSI disk should be accessible through the assigned drive letter.
  • You can now use the iSCSI disk for storage purposes, and it will behave like any other locally attached storage device.

Remember to follow best practices for iSCSI security, such as enabling CHAP authentication and restricting access to specific IP addresses, especially if your QNAP NAS is accessible over the internet. Always refer to the specific documentation for your QNAP NAS model for accurate and up-to-date instructions.