Douglas Phillips | 3 Nov 2006 21:19
Favicon

Quotas / Disk Space

First of all, this is my first post to the list.  I've tried to do  
some research and investigation on this, but at this point have not  
found anything useful.

Here's the scenario:
Customer using OpenVZ, RHEL 4 Update 3, Kernel 2.6.9-023stab016.2-smp
They tell me that they have 200G of space on the drive, and there is  
one partition that is not mounted, but when I try to mount comes up  
with "/dev/hda6 already mounted or /mnt/test busy".

I'm assuming that VZ is using that partition in a raw format,  
although I have no specific information that I've found that confirms  
that.  Am I correct?

Mount points on the host machine are as follows:
[root <at> (machine) ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              20G  9.1G  9.7G  49% /
/dev/hda1              99M   45M   50M  48% /boot
none                 1008M     0 1008M   0% /dev/shm
/dev/hda2              20G   13G  5.8G  70% /var
/dev/mapper/vps-swap   20G   18G  1.7G  92% /srv/vservers/swap
[root <at> (machine) ~]# mount
/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda2 on /var type ext3 (rw)
(Continue reading)

Denis Vervisch | 3 Nov 2006 17:20
Picon
Favicon

Backing up an OpenVZ platform.

Hello all,

I’m looking for a reliable solution for backing up an OpenVz server with 
third party backup software, like NetVault.
So, I define a job which save my /vz directory, but NetVault generate a lot 
of warnings like ‘File ‘xxxxxx’ in flux during backup’.
Can someone give me the best solution to do a reliable backup of all my 
virtual servers ?

Thanks for your help,
Best Regards,

--
VERVISCH Denis

_________________________________________________________________
Ten : profite de ton  Messenger en  illimité sur ton mobile !  
http://mobile.live.fr/messenger/ten/
Jim Zajkowski | 5 Nov 2006 19:58
Picon
Gravatar

Re: Backing up an OpenVZ platform.

On Fri, 3 Nov 2006, Denis Vervisch wrote:

> Can someone give me the best solution to do a reliable backup of all my 
> virtual servers ?

We use IBM TSM, and run it in every virtual machine.  It works well, and 
TSM is pretty lightweight.

--Jim

BTW, we switched from NetVault to TSM about a year ago and couldn't be 
happier with the performance and media efficiency of TSM.
tim Doyle | 5 Nov 2006 20:38

Re: Backing up an OpenVZ platform.

If you were to make /vz an LVM volume, you could do a snapshot, and grab 
those contents with NetVault, tar.gz, etc.
LVM will track the differences (i.e writes) between the two, and the 
snapshot is a point in time save of the filesystem.
Normal filesystem activity continues on during the snapshot, so service 
is not interrupted.

We're using LVM to provide snapshot backups for the XEN VE's we host.
For /vz, just make sure your LVM disk pool has enough space left over to 
take the /vz snapshot.
If it runs out, it will likely abort the snap, or have unexpected results.

You may want to run the testing 2.6.16 ovz kernel, as LVM has some bugs 
with older kernel versions.

Cheers!
-Tim

--

-- 
Timothy Doyle
CEO
Quantact Hosting Solutions, Inc.
tim@...
http://www.quantact.com

Denis Vervisch wrote:
> Hello all,
>
> I’m looking for a reliable solution for backing up an OpenVz server 
> with third party backup software, like NetVault.
(Continue reading)

Jaroslav Tomecek | 6 Nov 2006 12:19
Picon
Favicon

What does 'unstable' means

Hi,
 I want to use OpenVZ, but I need kernel 2.6.16 or higher. There is only 
'test' such kernel available on OpenVZ.org. Are there any features 
missing? How much is the kernel unstable?
Thx Jarda
Martin Dobrev | 6 Nov 2006 13:24

Re: What does 'unstable' means

Hi,

Jaroslav Tomecek wrote:
> Hi,
> I want to use OpenVZ, but I need kernel 2.6.16 or higher. There is 
> only 'test' such kernel available on OpenVZ.org. Are there any 
> features missing? How much is the kernel unstable?
> Thx Jarda
I'm using the latest kernel for about half a year without a single 
problem. In most cases it's stable enough for using, but not enough 
certified for production environments.

BR,
Martin
> _______________________________________________
> Users mailing list
> Users@...
> https://openvz.org/mailman/listinfo/users
Dmitry Mishin | 7 Nov 2006 09:35
X-Face
Favicon

Re: Quotas / Disk Space

Hi, Douglas!

Answers are inline.

On Friday 03 November 2006 23:19, Douglas Phillips wrote:
> First of all, this is my first post to the list.  I've tried to do
> some research and investigation on this, but at this point have not
> found anything useful.
>
> Here's the scenario:
> Customer using OpenVZ, RHEL 4 Update 3, Kernel 2.6.9-023stab016.2-smp
I advice to upgrade to newer 2.6.9 kernel - it is much more stable, than this.

> They tell me that they have 200G of space on the drive, and there is
> one partition that is not mounted, but when I try to mount comes up
> with "/dev/hda6 already mounted or /mnt/test busy".
>
> I'm assuming that VZ is using that partition in a raw format,
> although I have no specific information that I've found that confirms
> that.  Am I correct?
No, OpenVZ doesn't use raw partitions.
>
> Mount points on the host machine are as follows:
> [root <at> (machine) ~]# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda3              20G  9.1G  9.7G  49% /
> /dev/hda1              99M   45M   50M  48% /boot
> none                 1008M     0 1008M   0% /dev/shm
> /dev/hda2              20G   13G  5.8G  70% /var
> /dev/mapper/vps-swap   20G   18G  1.7G  92% /srv/vservers/swap
(Continue reading)

Dmitry Mishin | 7 Nov 2006 09:43
X-Face
Favicon

Re: What does 'unstable' means

On Monday 06 November 2006 14:19, Jaroslav Tomecek wrote:
> Hi,
>  I want to use OpenVZ, but I need kernel 2.6.16 or higher. There is only
> 'test' such kernel available on OpenVZ.org. Are there any features
> missing? How much is the kernel unstable?
Latest 2.6.16 is your choice. :)

> Thx Jarda
> _______________________________________________
> Users mailing list
> Users@...
> https://openvz.org/mailman/listinfo/users

--

-- 
Thanks,
Dmitry.
Douglas Phillips | 7 Nov 2006 10:53
Favicon

Re: SOLVED: Quotas / Disk Space


On Nov 7, 2006, at 2:35 AM, Dmitry Mishin wrote:

/dev/mapper/vps-swap   20G   18G  1.7G  92% /srv/vservers/swap
This is probably an answer - /dev/hda6 is used as a part of LVM group.

That was the answer!!  It was staring me in the face and I was missing it.  Thanks very much.


upped to 20GB.  When I "rebooted" this VPS, #102, and I go back, the
quota stat shows quota back at 5GB.
Probably, you uppped quota without --save flag. You could check this by `grep 
DISKSPACE /etc/vz/conf/102.conf` command.

I missed that flag as well.

--
Douglas Phillips
Simple Business Solutions



_______________________________________________
Users mailing list
Users@...
https://openvz.org/mailman/listinfo/users
Kristian F. Høgh | 10 Nov 2006 11:12
Picon

Problem with bonding, vlan, bridge, veth

Hi list,

I have a bonding/vlan/bridge/veth problem.
Sometimes a bridge think a veth device move to another port.
If I remove a physical interface from bond, the bridge behaves normally.

Kernel 2.6.16 + openvz test020
VE0 Ubuntu dapper/6.06LTS, IP 172.31.1.26 on VLAN 254
VE1028 Debian stable/sarge/3.1, IP 10.1.28.12 on VLAN 28

I have a server (vs5, VE0) using eth0 and eth1 in a bonding interface bond0.
bond0 is on tagged vlan.
I create a vlan device vlan254 on vlan 254. This is VE0 IP.
For each VE (XX) I do
  create a vlan device vlanXX on vlan XX.
  create a bridge bvXX and add vlanXX to it.
  create a VE (VE10XX) using veth.
  VETH="ve10XX.0,aa:00:04:56:YY:ZZ,eth0,aa:00:04:57:YY:ZZ"
  add ve10XX.0 to the bridge.
  YY and ZZ are calculated from VEID number (VLAN + 1000)

      eth0     eth1
         \     /
          bond0
         /     \                  veth
  vlan254       vlanXX    ve10XX.0 -- eth0 (ve10XX)
    VE0              \    /
                      bvXX (bridge)

I create and start VE1028, now I have:

VE0# ifconfig
bond0     Link encap:Ethernet  HWaddr 00:18:8B:2F:5F:F2
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:888940 errors:0 dropped:0 overruns:0 frame:0
          TX packets:150577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:71916311 (68.5 MiB)  TX bytes:27093123 (25.8 MiB)

bv28      Link encap:Ethernet  HWaddr 00:18:8B:2F:5F:F2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4559 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:212782 (207.7 KiB)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:18:8B:2F:5F:F2
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:659778 errors:0 dropped:0 overruns:0 frame:0
          TX packets:150577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:56333295 (53.7 MiB)  TX bytes:27093123 (25.8 MiB)
          Base address:0xecc0 Memory:dfae0000-dfb00000

eth1      Link encap:Ethernet  HWaddr 00:18:8B:2F:5F:F2
          UP BROADCAST RUNNING NOARP SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:229162 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15583016 (14.8 MiB)  TX bytes:0 (0.0 b)
          Base address:0xdcc0 Memory:df8e0000-df900000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:352 (352.0 b)  TX bytes:352 (352.0 b)

ve1028.0  Link encap:Ethernet  HWaddr AA:00:04:56:04:04
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:225 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4700 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:41399 (40.4 KiB)  TX bytes:260688 (254.5 KiB)

venet0    Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vlan28    Link encap:Ethernet  HWaddr 00:18:8B:2F:5F:F2
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:190890 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32868 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11008978 (10.4 MiB)  TX bytes:4038500 (3.8 MiB)

vlan254   Link encap:Ethernet  HWaddr 00:18:8B:2F:5F:F2
          inet addr:172.31.1.26  Bcast:172.31.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:490936 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77435 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:23453611 (22.3 MiB)  TX bytes:10026463 (9.5 MiB)

VE1028# ifconfig
eth0      Link encap:Ethernet  HWaddr AA:00:04:57:04:04
          inet addr:10.1.28.12  Bcast:10.1.28.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4887 errors:0 dropped:0 overruns:0 frame:0
          TX packets:231 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:271148 (264.7 KiB)  TX bytes:43395 (42.3 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

>From VE1028 I ping a router (10.1.28.4)
VE1028# ping 10.1.28.4

VE0# brctl showmacs bv28
port no mac addr                is local?       ageing timer
  1     00:18:8b:2f:5f:f2       yes                0.00
  1     02:e0:52:16:95:1c       no                 0.00
  2     aa:00:04:56:04:04       yes                0.00
  2     aa:00:04:57:04:04       no                 0.00

>From VE1028 I ping another router (10.1.28.101)
I don't get arp replies in VE1028
If I run tcpdump on VE0/bv28, I see the replies.

VE0# brctl showmacs bv28
port no mac addr                is local?       ageing timer
  1     00:03:fa:0f:a3:a7       no                 0.15
  1     00:18:8b:2f:5f:f2       yes                0.00
  1     02:e0:52:16:95:1c       no                 0.79
  2     aa:00:04:56:04:04       yes                0.00
  1     aa:00:04:57:04:04       no                 0.15

Now the bridge thinks VE1028/eth0 moved to port 1.
aa:00:04:57:04:04 never gets the replies, as the bridge
doesn't forward the frames, when src and dest are on same port.

I can even do this.
VE1028# ping 10.1.28.4 & ping 10.1.28.101
PING 10.1.28.4 (10.1.28.4) 56(84) bytes of data.
[1] 3472
PING 10.1.28.101 (10.1.28.101) 56(84) bytes of data.
64 bytes from 10.1.28.4: icmp_seq=1 ttl=64 time=0.284 ms
64 bytes from 10.1.28.4: icmp_seq=2 ttl=64 time=0.207 ms
64 bytes from 10.1.28.4: icmp_seq=3 ttl=64 time=0.130 ms
64 bytes from 10.1.28.4: icmp_seq=4 ttl=64 time=0.175 ms
>From 10.1.28.12 icmp_seq=1 Destination Host Unreachable
>From 10.1.28.12 icmp_seq=2 Destination Host Unreachable
>From 10.1.28.12 icmp_seq=3 Destination Host Unreachable
64 bytes from 10.1.28.4: icmp_seq=5 ttl=64 time=0.176 ms
64 bytes from 10.1.28.4: icmp_seq=6 ttl=64 time=0.128 ms
64 bytes from 10.1.28.4: icmp_seq=7 ttl=64 time=0.173 ms
>From 10.1.28.12 icmp_seq=5 Destination Host Unreachable
>From 10.1.28.12 icmp_seq=6 Destination Host Unreachable
>From 10.1.28.12 icmp_seq=7 Destination Host Unreachable

Why does the bridge forward some frames
and block others to the same mac addr?

If I remove one physical interface from the bond, I have no problems
VE0# ifenslave -d bond0 eth1

continued output from VE1028...
64 bytes from 10.1.28.101: icmp_seq=8 ttl=64 time=1.04 ms
64 bytes from 10.1.28.4: icmp_seq=8 ttl=64 time=0.160 ms
64 bytes from 10.1.28.101: icmp_seq=9 ttl=64 time=1.22 ms
64 bytes from 10.1.28.4: icmp_seq=9 ttl=64 time=0.215 ms

Regards,
Kristian Høgh

Gmane