I was running out of space on my existing VPS so got a new HDD installed on my box. I was trying to bind new partition to existing vps and the VPS won't boot now.
[root@hosted-by conf]# vzctl restart 104
Restarting container
Starting container...
Error exec /etc/vz/conf/104.mount: Exec format error
Error executing mount script /etc/vz/conf/104.mount
[root@hosted-by conf]#
What I did
vi /etc/vz/conf/101.mount
--
#!/bin/bash . /etc/vz/vz.conf . ${VE_CONFFILE} SRC=/new DST=/vz/root/104/home if [ ! -e ${VE_ROOT}${DST} ]; then mkdir -p ${VE_ROOT}${DST}; fi mount -n -t simfs ${SRC} ${VE_ROOT}${DST} -o ${SRC}
How do get the VPS back online?