Some RHEL software RAID commands

Copy partitions from good drive to new drive:

sfdisk -d /dev/sda | sfdisk /dev/sdb


sfdisk -d /dev/sda | sfdisk --force /dev/sdb

Add partitions back into RAID:

mdadm /dev/md0 --add /dev/sdb1
mdadm /dev/md1 --add /dev/sdb2

Check status:

cat /proc/mdstat


mdadm --detail /dev/md0

How to Create a SolusVM KVM Template

SolusVM doesn’t provide a lot of good documentation for this process, so I tried to document as I went along. If you have any questions, leave a comment and I’ll try my best to help.

Download CentOS 6.x ISO to SolusVM master in /home/solusvm/kvm/iso

In SolusVM: Media -> Add ISO
-Choose the correct ISO from the dropdown and fill out name/description/arch and click ‘Add iso’.

Sync ISO to slave:
-Media -> Media Sync -> ‘Create’ tab.
-Under ISOS, select the new ISO and the destination node.
-Click create Sync Job. Give it a minute before continuing. Continue reading “How to Create a SolusVM KVM Template”

Undefined subroutine &Cpanel::Update:: automatic_updates_enabled called at /scripts/upcp

If you receive the following error when running /scripts/upcp:

# /scripts/upcp
 /scripts/upcp syntax OK
 Running Futex Check/Fix......Done
 Undefined subroutine &Cpanel::Update::automatic_updates_enabled called at /scripts/upcp line 273.

Try running:

# /scripts/upcp --force

If that yields the same results, try the following: Continue reading “Undefined subroutine &Cpanel::Update:: automatic_updates_enabled called at /scripts/upcp”