From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33DF8C28CBC for ; Sun, 3 May 2020 20:16:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E67D8206F1 for ; Sun, 3 May 2020 20:16:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jkFfFsgV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="RMbqbNdP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E67D8206F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:To:From:Date:Message-ID: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=+4RBRWc1TxNx+S052o+deMCT4hoNUS9kjfADYClk04Q=; b=jkF fFsgVRzQG/JLvoGzeeqhC0JmeGZUcRyJJ0iMfrIPRNyATwACapBiMjQtJ4h5L6OrCQjqLtYZKtNlo 5C1ccN0DQCmOuhy5wzCnHSTFsfTR/dx/gee1mjwoxLcRS794QSZp3HN7TISL9hSuAWnVi3lgdckld ia7EYs0x0lOplo71Z4SUQS8PR5kj+HHZRS6pIWNY1BjLeeB8upVd/KDQ9Rr+SXakurl3ohwwkKGm1 8UE3421zasW2utbve4lPmWu/bbusVsy//lyQSuYPk4m77fvnIvPxH+1W5EQqw4gf921eImLZHSwx7 g1+lPyGdKMoHDK/ojgSrjkWaMXOl4RA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVL2U-0004gh-4r; Sun, 03 May 2020 20:16:38 +0000 Received: from userp2120.oracle.com ([156.151.31.85]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVL2S-0004g8-4H for linux-nvme@lists.infradead.org; Sun, 03 May 2020 20:16:37 +0000 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 043KDjsY162167 for ; Sun, 3 May 2020 20:16:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : to : subject : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=49O9TuUHAZP9YInAaF9AyGYFtxN11tQ9lpqarZoDFec=; b=RMbqbNdPA5iMFJ9i8KnKyALU6hSJSLNjXRbxa5cpj3IjR1hMbF1aFuftPlBhwu+Two5c cFcEiumXaJfa6XDKt8jI6Q7XaR3Z091zWiBejpV6x1QkO6N1XRYWgQIB9tcel0X5dKMC xNC2ERmQG44k/3E8qD3j/44NPz4VUJfws5HXSFRbr0kSuusOoMGrW8iy7Iyrx3Xt87hO OyX7hp6r4ApVUuIiKlaYSdrnf8sfZ4b4LMC6QYzPP/ZJVlDb549TtzYl4DxyWTuT9DyE 3Z7UnHamWGh9EzafUf6+TnHUM3GZe3nJf6T8gR4PhtSp9nN1PocNbFrck0wSn1iitp3A 6A== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 30s1gmuttp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 03 May 2020 20:16:29 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 043KCRco122884 for ; Sun, 3 May 2020 20:14:28 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 30sjju4pw6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 03 May 2020 20:14:28 +0000 Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 043KEQAh030481 for ; Sun, 3 May 2020 20:14:28 GMT MIME-Version: 1.0 Message-ID: Date: Sun, 3 May 2020 13:14:25 -0700 (PDT) From: Dongli Zhang To: Subject: How to setup nvme-loop with multipath X-Mailer: Zimbra on Oracle Beehive Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9610 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 mlxscore=0 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 mlxlogscore=624 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005030179 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9610 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=1 mlxscore=0 spamscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 phishscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=657 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005030179 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200503_131636_304797_CC4CCBC0 X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org Hi nvme developers, Would you please help confirm if it is feasible to support multi-path (indeed shared namespace as id->cmic is always set for nvme-over-fabric) for nvme-loop so that we would be able to have much more complex topology configuration for nvme multi-path. Below is my sample json file. While both disk1.img and disk2.img are belong to 'testnqn', disk3.img is belong to 'testnqn2'. Is there any way to have disk2.img as shared namespace used by both 'testnqn' and 'testnqn2'? Thank you very much! { "hosts": [ { "nqn": "hostnqn" } ], "ports": [ { "addr": { "adrfam": "", "traddr": "", "treq": "not specified", "trsvcid": "", "trtype": "loop" }, "portid": 1, "referrals": [], "subsystems": [ "testnqn", "testnqn2" ] } ], "subsystems": [ { "allowed_hosts": [ "hostnqn" ], "attr": { "allow_any_host": "0" }, "namespaces": [ { "device": { "nguid": "ef90689c-6c46-d44c-89c1-4067801309a8", "path": "/home/test/disk1.img" }, "enable": 1, "nsid": 1 }, { "device": { "nguid": "ef90689c-6c46-d44c-89c1-4067801309a2", "path": "/home/test/disk2.img" }, "enable": 1, "nsid": 2 } ], "nqn": "testnqn" }, { "allowed_hosts": [ "hostnqn" ], "attr": { "allow_any_host": "0" }, "namespaces": [ { "device": { "nguid": "ef90689c-6c46-d44c-89c1-4067801309a3", "path": "/home/test/disk3.img" }, "enable": 1, "nsid": 1 } ], "nqn": "testnqn2" } ] } Dongli Zhang _______________________________________________ linux-nvme mailing list linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme