Monday, April 30, 2012

vzquota

This command is used to configure and see disk quota statistics for Containers. vzquota is also
used to turn on the possibility of using per-user/group quotas inside the Container. It allows you to
configure per-user or per-group quota inside the Container as well. vzctl uses vzquota
internally to configure quotas and you usually do not have to use vzquota except for checking the
current quota statistics. The syntax of vzquota command is as follows:
vzquota [options] command <CT_ID> [command-options]
General options available to all vzquota commands are:
-v Verbose mode.
-q Quiet mode. 


[root@tester ~]# vzquota -v show 50 -t
vzquota : (warning) Quota is running, so data reported from quota file may not reflect current values
   resource          usage       softlimit      hardlimit    grace
  1k-blocks         886472        20000000       20000000
     inodes          19529          200000         220000


User/group quota: off,inactive
Ugids: loaded 0, total 0, limit 0
Ugid limit was exceeded: no

User/group grace times and quotafile flags:
 type block_exp_time inode_exp_time  dqi_flags
 user                                       0h
group                                       0h


[root@tester ~]# vzquota -v stat 50
   resource          usage       softlimit      hardlimit    grace
  1k-blocks         844332        20000000       20000000
     inodes          19573          200000         220000


vzquota understands the following commands:
init Before you can use quota, the current disk space and inode usage should be counted. For
the init command, you must specify all the limits as well as the file tree where you want
to initialize the quota.
drop Removes the quota file.
on Turns on quota accounting on the specified quota ID.
off Turns off quota accounting on the specified quota ID.
setlimit Allows you to change quota limits for the running quota.
setlimit2 Set the second-level quota parameters.
stat Shows quota statistics for the running quota.
show Shows quota usage from the quota file




Configures new changed hardware with out reboot (KUDZU)

This hardware probing tool run in a server when we boot the system to configure a new hardware. It then determines if the new hardware is added to/removed from the system by checking the database file /etc/sysconfig/hwconf. If the file exists in the system, then Kudzu detects the new hardware , updates the database file and brings the system intact. If the database file does not exist, it check for the configured devices/hardware in the /etc/modprobe.conf, /etc/sysconfig/network-scripts/ and /etc/X11/xorg.conf.  

You can configure a service for multiple run levels with a single command. For example, /sbin/chkconfig --level 345 kudzu off will disable kudzu for run levels 3, 4, and 5 or /usr/sbin/chkconfig kudzu off.   If you need to edit the Kudzu  you will have to edit this file where the scripts are: /etc/init.d/kudzu
 use man kudzu for more details. 

eg : kudzu -p

class: RAID
bus: PCI
detached: 0
driver: 3w-xxxx
desc: "3ware Inc 7xxx/8xxx-series PATA/SATA-RAID"
vendorId: 13c1
deviceId: 1001
subVendorId: 13c1
subDeviceId: 1001
pciType: 1
pcidom:    0
pcibus:  a
pcidev:  1
pcifn:  0
-
class: USB
bus: PCI
detached: 0
driver: uhci-hcd
desc: "Intel Corporation N10/ICH 7 Family USB UHCI Controller #1"
vendorId: 8086
deviceId: 27c8
subVendorId: 15d9
subDeviceId: 7980
pciType: 1
pcidom:    0
pcibus:  0
pcidev: 1d
pcifn:  0
-
class: USB
bus: PCI
detached: 0
driver: uhci-hcd
desc: "Intel Corporation N10/ICH 7 Family USB UHCI Controller #2"
vendorId: 8086
deviceId: 27c9
subVendorId: 15d9
subDeviceId: 7980
pciType: 1
pcidom:    0
pcibus:  0
pcidev: 1d
pcifn:  1
-
class: USB
bus: PCI
detached: 0
driver: uhci-hcd
desc: "Intel Corporation N10/ICH 7 Family USB UHCI Controller #3"
vendorId: 8086
deviceId: 27ca
subVendorId: 15d9
subDeviceId: 7980
pciType: 1
pcidom:    0
pcibus:  0
pcidev: 1d
pcifn:  2


 



Virtuzzo command line

General utilities are intended for performing day-to-day maintenance tasks:

vzctl 

Utility to control Containers.

vzlist

Utility to view a list of Containers existing on the Node with additional information.

vzquota

Utility to control Parallels Virtuozzo Containers disk quotas.

Licensing utilities allow you to install a new license, view the license state, generate a license
request for a new license:

vzlicview

Utility to display the Parallels Virtuozzo Containers license status and parameters.

vzlicload

Utility to manage Parallels Virtuozzo Containers licenses on the Node.

vzlicupdate

Utility to activate the Parallels Virtuozzo Containers installation,update the Parallels Virtuozzo Containers licenses installed on the
Node, or transfer the Parallels Virtuozzo Containers license from
the Source Node to the Destination Node.

Container migration tools allow to migrate Containers between Nodes or within one Node:

vzmigrate

Utility for migrating Containers from one Node to another.

vzmlocal

Utility for the local cloning or moving of the Containers.

vzp2v

Utility to migrate a physical server to a Container on the Node.

Container backup utilities allow to back up and restore the Container private areas, configuration
files, action scripts, and quota information:

vzbackup

Utility to back up Containers.

vzrestore

Utility to restore backed up Containers.

vzabackup

Utility to back up Nodes and their Containers. As distinct from vzbackup, this
utility requires the Parallels Agent software for its functioning.

vzarestore

Utility to restore backed up Nodes and Containers. As distinct from vzrestore,
this utility requires the Parallels Agent software for its functioning.

Template management tools allow the template creation, maintenance and installation of
applications into a Container:

vzpkg

Utility to manage OS and application EZ templates either inside your Containers
or on the Hardware Node itself.

vzmktmpl

Utility to create OS and application EZ templates.

vzveconvert

Utility to convert Containers based on standard templates to EZ template-based
Containers.





vzpkgproxy

 Utility to create caching proxy servers for handling OS and application EZ
templates.

vzrhnproxy

Utility to create RHN proxy servers for handling the packages included in the
RHEL 4 and RHEL 5 OS EZ templates.

vzpkgls

Utility to get a list of templates available on the Hardware Node and in Containers.

vzpkginfo

Utility to get the information on any template installed on the Hardware Node.

vzpkgcreat

Create a new package set from binary RPM or DEB files.

vzpkgadd

Utility to add a new template to a Container.

vzpkglink

Utility to replace real files inside a Container with symlinks to these very files on
the Node.

vzpkgrm

Utility to remove a template from a Container.

vzpkgcache

Update a set of preinstalled Container archives after new template installation.

Supplementary tools perform a number of miscellaneous tasks in the Hardware Node and
Container context:

vzup2date

Utility to update your Parallels Virtuozzo Containers software and templates.

vzup2date-mirror

Utility to create local mirrors of the Parallels Virtuozzo Containers official
repository.

vzfsutil

Utility for the VZFS optimization and consistency checking.

vzcache

Utility to gain extra disk space by caching the files identical in different
Containers.

vzsveinstall

Utility to create the Service Container on the Hardware Node.

vzsveupgrade

Utility to update the packages inside the Service Container

vzps and vztop

Utilities working as the standard ps and top utilities, with Container-related
functionality added.

vzsetxinetd

Utility to switch some services between a standalone and xinetd-dependent modes.

vzdqcheck

Print file space current usage from quota’s point of view.

vzdqdump and
vzdqload

Utilities to dump the Container user/group quota limits and grace times from the
kernel or the quota file or for loading them to a quota file.

vznetstat

Utility that prints network traffic usage statistic by Containers.

vzcpucheck

Utility for checking CPU utilization by Containers.

vzmemcheck

Utility for checking the Hardware Node and Container current memory
parameters.

vzcalc

Utility to calculate resource usage by a Container.

vzcheckovr

Utility to check the current system overcommitment and safety of the total
resource control settings.

vzstat

Utility to monitor the Hardware Node and Container resources consumption in
real time.

vzpid

Utility that prints Container id the process belongs to.

vzsplit

Utility to generate Container configuration file sample, “splitting” the Hardware
Node into equal parts.


vzcfgscale

Utility to scale the Container configuration.

vzcfgvalidate

Utility to validate Container configuration file correctness.

vzstatrep

Utility to analyze the logs collected by vzlmond and to generate statistics
reports on the basis of these logs (in the text and graphical form).

vzreport

Utility to draw up a problem report and to automatically send it to the Parallels
support team.

vzhwcalc

Utility to scan the main resources on any Linux server and create a file where
this information will be specified.

vzveconvert

Utility to convert the Containers based on Parallels standard OS templates to the
EZ template-based ones.

vznetcfg

Utility to manage network devices on the Hardware Node.

vzmtemplate

Utility to migrate the installed OS and application templates from the one
Hardware Node to another