+ Reply to Thread
Results 1 to 2 of 2

Thread: OpenVZ: Difference between /vz/private and /vz/root

  1. #1
    Sitemon's Avatar
    Sitemon is offline Registered User Achievements:
    31 days registeredTagger Second Class100 Experience Points500 Experience Points1000 Experience Points
    Awards:
    Master Tagger
    Sitemon ?????????
    Join Date
    2009-12-14
    Posts
    52

    Default OpenVZ: Difference between /vz/private and /vz/root

    What is the difference between /vz/private and /vz/root

    I see that /vz/private/51 and /vz/root/51 are hard linked.
    So now i want to move /vz/private/51 to dedicated filesystem how should I handle /vz/root/51?

    Can i just symlink /vz/root/51 to /vz/private/51?

  2. #2
    Sitemon's Avatar
    Sitemon is offline Registered User Achievements:
    31 days registeredTagger Second Class100 Experience Points500 Experience Points1000 Experience Points
    Awards:
    Master Tagger
    Sitemon ?????????
    Join Date
    2009-12-14
    Posts
    52

    Default

    Got something helpful from google search:

    /vz/private/<VEID> are private areas, i.e. the directories containing the private files of the given VEs.

    /vz/root/<VEID> -- are mountpoints. The private area is mounted to the /vz/root/<VEID> directory on the Hardware Node and provides VE users with a complete Linux file system tree.


    If you want to move VE files from HN to some other place it's better to avoid /vz/private using and handle /vz/root directory.

    It's disk-quota related issue.

    I would note that disk quota is calculated on /vz/private/<VEID> subtree. However it's able to track the operation only if VE is mounted. Quota is initialized on the first VE mount -- it is relative log procedure. When VE unmounts the collected quota information is saved to special file that reads again on the next VE start.

    However if you have changed something inside private area where VE was unmounted, it makes inconsistent the quota information saved in file. Unfortunately we will know nothing about this fact and quota will show incorrect values when VE will be started again.

    Thank you
    It's disk-quota related issue.

    I would note that disk quota is calculated on /vz/private/<VEID> subtree. However it's able to track the operation only if VE is mounted. Quota is initialized on the first VE mount -- it is relative log procedure. When VE unmounts the collected quota information is saved to special file that reads again on the next VE start.

    However if you have changed something inside private area where VE was unmounted, it makes inconsistent the quota information saved in file. Unfortunately we will know nothing about this fact and quota will show incorrect values when VE will be started again.

    Thank you,
    Vasily Averin

+ Reply to Thread

Similar Threads

  1. Xen and OpenVZ -- What’s The Difference?
    By Sitemon in forum Virtualization
    Replies: 0
    Last Post: 2010-01-05, 03:07 AM
  2. Difference between OpenVZ and Vserver
    By joseph in forum Virtualization
    Replies: 1
    Last Post: 2009-10-13, 02:18 PM
  3. Replies: 0
    Last Post: 2009-08-17, 07:46 PM
  4. LXer: Ubuntu: Patent Policy and Private Support
    By edenCC in forum Technology News
    Replies: 0
    Last Post: 2009-08-06, 07:30 PM
  5. LXer: Virtual Private Network and OpenVPN
    By edenCC in forum Technology News
    Replies: 0
    Last Post: 2009-08-04, 07:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts