Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9A825200C1C for ; Wed, 15 Feb 2017 18:24:22 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 98A2E160B5E; Wed, 15 Feb 2017 17:24:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B85B2160B4D for ; Wed, 15 Feb 2017 18:24:21 +0100 (CET) Received: (qmail 12641 invoked by uid 500); 15 Feb 2017 17:24:15 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 12629 invoked by uid 99); 15 Feb 2017 17:24:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2017 17:24:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 23D7FC0797 for ; Wed, 15 Feb 2017 17:24:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.098 X-Spam-Level: *** X-Spam-Status: No, score=3.098 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id HJ7cFgX8FKIc for ; Wed, 15 Feb 2017 17:24:14 +0000 (UTC) Received: from mail-yb0-f172.google.com (mail-yb0-f172.google.com [209.85.213.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A3A165F613 for ; Wed, 15 Feb 2017 17:24:13 +0000 (UTC) Received: by mail-yb0-f172.google.com with SMTP id w194so46785534ybe.0 for ; Wed, 15 Feb 2017 09:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=BxiWdlONDnlXDC1TI9mSjyC/a66h0eJ76sX5s6pTYfk=; b=nEpol/e0HkiDDQJow4hFcaLut1lA70Zhr049eat+5oO4sHn/7qf5zjCGMnn57C2ska iYxTRoCAuKjIGujDSdBw4E9eMqvMbBouJK1b6ZMK2sgHdQhlMXN28AniS511su1Bznh0 +UMypz0N3l3UjBdDXaYgOQAmgeu79mDckhjeg6cFllmC6b/2Me+qP5xAUk48CFIHNwec T9AHFKVKobuy2d9vnje8Pc4SrTl8A0qU7IdzrfTKdPDNljbMeAlgda7Dl743VAZr5v/M P5+1vk+3P/jzdnGGBrg041XL2M2IKw9DGAJm8Yco24XzH5mAL5lsgf2D6jO3SqhgOnd6 9psQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=BxiWdlONDnlXDC1TI9mSjyC/a66h0eJ76sX5s6pTYfk=; b=Fn4aBQ5ZxAE4INMBQJTdUs6S+WxJXR3FXNuhq0Y8ce19r9dU2PwtkLpSCEudCmDpAQ 7T8eq7XxEwAGNfYJfEqNzg9zrsHLWakG/GZo9IYlh8f04AkES7zCcniTpGIW9GCzS+yL 9/lPU/iPJb4Jsz+i8zazTSNLbA2NFK4GF+kja9xO5tqYcJbPyNZugxo+xo6NKN/ugP6W qiTeiPdIaI2kjJnST7A6+p/HJZ6GC9UgZin4Lyc1816uBhTDo6pUQbb7ZOtQ5caq9log FcK3y7RxB5pOe0w8dQ2HECQmUio3VNU3SAJsFk8xQUtpV8YWAnEs1TlDR7E9roA63Lto PWQw== X-Gm-Message-State: AMke39krIykV6utUSEqjzlHcR+bX9dU87gSyRKNLqBLRbMNJzKO8ggLPDC2hsH+/r/zM1KVH4UuLMiOH5AI5zA== X-Received: by 10.37.180.130 with SMTP id o2mr26838735ybj.114.1487179443916; Wed, 15 Feb 2017 09:24:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.181.7 with HTTP; Wed, 15 Feb 2017 09:24:03 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Rafael_Weing=C3=A4rtner?= Date: Wed, 15 Feb 2017 12:24:03 -0500 Message-ID: Subject: Re: Attaching more than 14 data volumes to an instance To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=f403045ea5fe78d89f054894f2a0 archived-at: Wed, 15 Feb 2017 17:24:22 -0000 --f403045ea5fe78d89f054894f2a0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I thought that on a VM we would not be bound by PCI limitations. Interesting explanations, thanks. On Wed, Feb 15, 2017 at 12:19 PM, Voloshanenko Igor < igor.voloshanenko@gmail.com> wrote: > I think explanation very easy. > PCI itself can handle up to 32 devices. > > If you run lspci inside empty (fresh created) VM - you will see, that 8 > slots already occupied > [root@test-virtio-blk ~]# lspci > 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev > 02) > 00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II= ] > 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton > II] > 00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Trito= n > II] (rev 01) > 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03) > 00:02.0 VGA compatible controller: Cirrus Logic GD 5446 > 00:03.0 Ethernet controller: Red Hat, Inc Virtio network device > 00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device > > [root@test-virtio-blk ~]# lspci | wc -l > 8 > > So, 7 system devices + 1 ROOT disk > > in current implementation, we used virtio-blk, which can handle only 1 > device per instance. > > So, we have 32-8 =3D=3D 24 free slots... > > As Cloudstack support more than 1 eth cards - 8 of them reserved for > network cards and 16 available for virtio-blk > > So, practical limit equal 16 devices (for DATA disks) > > Why 2 devices (0 + 3) excluded - interesting question... I will try to > research and post explanation > > > > > > > > > 2017-02-15 18:27 GMT+02:00 Rafael Weing=C3=A4rtner >: > > > I hate to say this, but probably no one knows why. > > I looked at the history and this method has always being like this. > > > > The device ID 3 seems to be something reserved, probably for Xen tools > (big > > guess here)? > > > > Also, regarding the limit; I could speculate two explanations for the > > limit. A developer did not get the full specs and decided to do whateve= r > > he/she wanted. Or, maybe, at the time of coding (long, long time ago) > there > > was a hypervisor that limited (maybe still limits) the number of device= s > > that could be plugged to a VM and the first developers decided to level > > everything by that spec. > > > > It may be worth checking with KVM, XenServer, Hyper-V, and VMware if th= ey > > have such limitation on disks that can be attached to a VM. If they do > not > > have, we could remove that, or at least externalize the limit in a > > parameter. > > > > On Wed, Feb 15, 2017 at 5:54 AM, Fri=C3=B0vin Logi Oddbj=C3=B6rnsson < > > fridvin@greenqloud.com> wrote: > > > > > CloudStack is currently limiting the number of data volumes, that can > be > > > attached to an instance, to 14. > > > More specifically, this limitation relates to the device ids that > > > CloudStack considers valid for data volumes. > > > In method VolumeApiServiceImpl.getDeviceId(long, Long), only device > ids > > 1, > > > 2, and 4-15 are considered valid. > > > What I would like to know is: is there a reason for this limitation? > (of > > > not going higher than device id 15) > > > > > > Note that the current number of attached data volumes is already bein= g > > > checked against the maximum number of data volumes per instance, as > > > specified by the relevant hypervisor=E2=80=99s capabilities. > > > E.g. if the relevant hypervisor=E2=80=99s capabilities specify that i= t only > > > supports 6 data volumes per instance, CloudStack rejects attaching a > > > seventh data volume. > > > > > > > > > Fri=C3=B0vin Logi Oddbj=C3=B6rnsson > > > > > > Senior Developer > > > > > > Tel: (+354) 415 0200 | fridvin@greenqloud.com > > > > > > > Mobile: (+354) 696 6528 | PGP Key: 57CA1B00 > > > > > fridvin@greenqloud.com> > > > > > > Twitter: @greenqloud | @qstackcloud > > > > > > > > > www.greenqloud.com | www.qstack.com > > > > > > [image: qstack_blue_landscape_byqreenqloud-01.png] > > > > > > > > > > > -- > > Rafael Weing=C3=A4rtner > > > --=20 Rafael Weing=C3=A4rtner --f403045ea5fe78d89f054894f2a0--