OpenVZ 7 + additional HDD with mount option, jquota, and pcompact [message #53485] |
Wed, 06 March 2019 10:28 |
ccto
Messages: 61 Registered: October 2005
|
Member |
|
|
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 |
devnull
Messages: 20 Registered: May 2012
|
Junior Member |
|
|
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!
|
|
|