<div dir="ltr">Yeah! thanks! need to add the --recreate parameter.</div><br><div class="gmail_quote"><div dir="ltr">El lun., 4 jun. 2018 a las 11:17, Alexey Zilber (<<a href="mailto:alexeyzilber@gmail.com">alexeyzilber@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Just to clarify, you probably want to do this (if you want to go the easy route):</div><div><br></div><div># prlctl set 100 --device-add hdd --image /backup/100 --size 100G --mnt
/backup
--recreate</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 4, 2018 at 5:14 PM, Alexey Zilber <span dir="ltr"><<a href="mailto:alexeyzilber@gmail.com" target="_blank">alexeyzilber@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>From the man page:</div><div><br></div><div>image_name: the image file to be used to emulate the VE virtual hard disk. To use an existing image file, specify its name and path. To create a new image file, omit the --image option (a new file named harddiskN.hdd will be created in the VE directory) or use --recreate option.</div><div><br></div><div>You have two options here. Either create a new disk image externally, before running that command (using dd, fdisk/parted, mkfs, etc.). Or, you can try the --recreate option.</div><div><br></div><div>Let us know how that goes. :)</div><div><br></div><div>-Alex<br></div></div><div class="m_2825254148477661663HOEnZb"><div class="m_2825254148477661663h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 4, 2018 at 4:40 PM, José Manuel Giner <span dir="ltr"><<a href="mailto:jmginer@gmail.com" target="_blank">jmginer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>ls -al /backup/100</div><div>ls: cannot access /backup/100: No such file or directory</div><div><br></div></div><div class="m_2825254148477661663m_4241407035557339148HOEnZb"><div class="m_2825254148477661663m_4241407035557339148h5"><br><div class="gmail_quote"><div dir="ltr">El lun., 4 jun. 2018 a las 10:18, Alexey Zilber (<<a href="mailto:alexeyzilber@gmail.com" target="_blank">alexeyzilber@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>ls -al /backup/100</div><div><br></div><div>Output?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 4, 2018 at 3:27 PM, José Manuel Giner <span dir="ltr"><<a href="mailto:jmginer@gmail.com" target="_blank">jmginer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
Hello,
<br>
<br>I'm trying to add an additional disk to a container.
<br>
<br>The new disk image must be hosted on a different partition of the node.
<br>
<br>If we exclude the "--image PATH" parameter, the result is correct. But
we want to be able to define a different partition for the additional disk.
<br>
<br>According to the documentation, this should be possible.
<br>
<br>
<br>The error:
<br>
<br>
<br># prlctl set 100 --device-add hdd --image /backup/100 --size 100G --mnt
/backup
<br>Creating hdd1 (+) scsi:1 image='/backup/100' mnt=/backup subtype=virtio-scsi
<br>
<br>CT configuration validation result(s) :
<br>* The image file "/backup/100" used by hard disk 2 does not exist.Hard
disk 2 will not be connected at the virtual machine startup.
<br>Failed to configure the virtual machine.
<br>
<br>
<br># df -h
<br>Filesystem Size Used Avail Use% Mounted on
<br>/dev/mapper/openvz-root 9.8G 2.2G 7.1G 24% /
<br>devtmpfs 12G 0 12G 0% /dev
<br>tmpfs 12G 0 12G 0% /dev/shm
<br>tmpfs 12G 780K 12G 1% /run
<br>tmpfs 12G 0 12G 0% /sys/fs/cgroup
<br>/dev/sda2 976M 146M 764M 17% /boot
<br>/dev/mapper/backup-backup 148G 61M 140G 1% /backup
<br>/dev/mapper/openvz-vz 138G 1.7G 130G 2% /vz
<br>tmpfs 2.4G 0 2.4G 0% /run/user/0
<br clear="all"><span class="m_2825254148477661663m_4241407035557339148m_-2965338605821329578m_3205871961225936097HOEnZb"><font color="#888888"><div><br></div>-- <br><div dir="ltr" class="m_2825254148477661663m_4241407035557339148m_-2965338605821329578m_3205871961225936097m_-450039459985322129gmail_signature" data-smartmail="gmail_signature">José Manuel Giner</div></font></span></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div></div></div><span class="m_2825254148477661663m_4241407035557339148HOEnZb"><font color="#888888">-- <br><div dir="ltr" class="m_2825254148477661663m_4241407035557339148m_-2965338605821329578gmail_signature" data-smartmail="gmail_signature">José Manuel Giner</div>
</font></span><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">José Manuel Giner</div>