OpenVZ Forum


Home » General » Support » openvz7 Add virtual disk to container
openvz7 Add virtual disk to container [message #53164] Thu, 08 February 2018 22:14 Go to previous message
gral is currently offline  gral
Messages: 34
Registered: May 2006
Member

Hello, im trying to add a extra virtual disk to a container but once i've created it i cant format / mount it

I created it as follow;

prlctl set 1d635d9d-1e4d-4799-ba40-c11683abxxxxx --device-add hdd --iface scsi --subtype virtio-scsi

Seems to be attached;

prlctl list -i 1d635d9d-1e4d-4799-ba40-c11683axxxxx | grep hdd
hdd0 (+) scsi:0 image='/vz/private/1d635d9d-1e4d-4799-ba40-c11683axxxxx/root .hdd' type='expanded' 10240Mb mnt=/ subtype=virtio-scsi
hdd1 (+) scsi:1 image='/vz/private/1d635d9d-1e4d-4799-ba40-c11683axxxxx/hard disk3.hdd' type='expanded' 65536Mb subtype=virtio-scsi


But once i enter to the container to mount the hdd, i cant initialize it , i receive ;

root@CT2# mkfs.ext4 /dev/ploop53294
mke2fs 1.42.9 (28-Dec-2013)
/dev/ploop53294: Operation not permitted while setting up superblock

Is there something that i dont do it ?

Thanks!

# uname -a
Linux vpsh2.xxxxxxxxx.net 3.10.0-693.1.1.vz7.37.30 #1 SMP Wed Nov 15 20:42:09 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux




Argentina
--Vz--
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The certificate for https://download.openvz.org/ is broken/expired
Next Topic: download.openvz.org is down
Goto Forum:
  


Current Time: Thu Sep 05 12:19:20 GMT 2024

Total time taken to generate the page: 0.06133 seconds