OpenVZ Forum


Home » General » Support » OpenVZ 7 + additional HDD with mount option, jquota, and pcompact
OpenVZ 7 + additional HDD with mount option, jquota, and pcompact [message #53485] Wed, 06 March 2019 10:28 Go to next message
ccto is currently offline  ccto
Messages: 54
Registered: October 2005
Member
From: 180.92.180*
Hello all,

I managed to use prlctl to add additional disk onto a container.

May I ask -

Q1) Is it possible to set some mount options (e.g. noexec, nosuid, nodev) for the added HDD during container startup ?
e.g.
/home with noexec,nodex,nosuid with user quota enabled

Q2) Is it possible to enable secondary level user quota for the added HDD (i.e. enable jquota for that partition) ?

Q3) It seems pcompact cannot compact CT additional disk.
Inspect 63f042c0-731e-4a67-b9cf-e5d1fdfd8197
Inspect /vz/private/63f042c0-731e-4a67-b9cf-e5d1fdfd8197/root.hdd/DiskDescriptor.xml
Disk: /vz/private/63f042c0-731e-4a67-b9cf-e5d1fdfd8197/root.hdd/DiskDescriptor.xml
ploop=49152MB image=3073MB data=1816MB balloon=0MB
Rate: 2.6 (threshold=10)
Inspect /vz/private.ssd/63f042c0-731e-4a67-b9cf-e5d1fdfd8197/harddisk1.hdd/DiskDescriptor.xml
Disk: /vz/private.ssd/63f042c0-731e-4a67-b9cf-e5d1fdfd8197/harddisk1.hdd/DiskDescriptor.xml
Error in get_dev_and_mnt (balloon.c:1169): Unable to find mount point for /dev/ploop44944
Failed to get discard stat: Error in get_dev_and_mnt (balloon.c:1169): Unable to find mount point for /dev/ploop44944


Thank you very much for your kind attention.

Regards
George

[Updated on: Wed, 06 March 2019 11:00]

Report message to a moderator

Re: OpenVZ 7 + additional HDD with mount option, jquota, and pcompact [message #53486 is a reply to message #53485] Mon, 11 March 2019 21:29 Go to previous message
devnull is currently offline  devnull
Messages: 13
Registered: May 2012
Junior Member
From: *161.152.213.in-addr.arpa
Hello! (Please forgive my bad English)

Quote:
Q1) Is it possible to set some mount options (e.g. noexec, nosuid, nodev) for the added HDD during container startup ?
Q2) Is it possible to enable secondary level user quota for the added HDD (i.e. enable jquota for that partition) ?


Dunno... I only use bind mounts :

Ex (in CTID.conf) : BINDMOUNT="/mnt/external-HDD /home"

Quote:
Q3) It seems pcompact cannot compact CT additional disk.


AFAIK, you can only "compact" VZ containers (ploop), not an external SSD/filesystem.

Have a great day!
Previous Topic: vzkernel-3.10.0-x releases stopped since Sept?
Next Topic: Slow Live Migration (prlctl migrate)
Goto Forum:
  


Current Time: Sat Sep 21 16:03:37 GMT 2019