From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 4E5E96945F for ; Mon, 26 Jul 2021 11:32:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3EDCAAD7D for ; Mon, 26 Jul 2021 11:32:10 +0200 (CEST) Received: from mailout01.virtualhosts.de (mailout01.virtualhosts.de [130.255.79.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 98DBFAD6E for ; Mon, 26 Jul 2021 11:32:09 +0200 (CEST) X-PDA-ORIGIN: mailout01.virtualhosts.de Received: (qmail 14027 invoked from network); 26 Jul 2021 09:32:09 -0000 Received: by simscan 1.4.0 ppid: 13968, pid: 13974, t: 0.6019s scanners: spam: 3.4.5 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on mailout01.virtualhosts.de X-Spam-Status: No, score=-0.0 required=10.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,UNPARSEABLE_RELAY autolearn=disabled version=3.4.5 Received: from m2801.wwwsrv.eu (80.83.113.123) by mailout01.virtualhosts.de with ESMTPS (TLS_AES_256_GCM_SHA384 encrypted); 26 Jul 2021 09:32:08 -0000 X-PDA-ORIGIN: m2801.wwwsrv.eu Received: (qmail 3223592 invoked from network); 26 Jul 2021 09:32:08 -0000 Received: by simscan 1.4.0 ppid: 3223576, pid: 3223585, t: 0.2762s scanners: clamav: 0.103.3/m:46/d:26243 Received: from unknown (uid 1079) (HELO m2801.wwwsrv.eu) (samlorca@127.0.0.1) by 0 with SMTP; 26 Jul 2021 09:32:07 -0000 MIME-Version: 1.0 Date: Mon, 26 Jul 2021 11:32:07 +0200 From: Samuel Lorch To: pve-user@lists.proxmox.com Reply-To: sam@lorch.net In-Reply-To: <914c7663-db28-ac4b-eaef-6e12cabca1e1@proxmox.com> References: <37933941a7daaf2e962b6f2ddb87fc61@lorch.net> <914c7663-db28-ac4b-eaef-6e12cabca1e1@proxmox.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <122ea91f344c164d759be7279b79a707@lorch.net> X-Sender: sam@lorch.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.475 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record UNPARSEABLE_RELAY 0.001 Informational: message has unparseable relay lines Subject: Re: [PVE-User] Tape Drive Pass Through into PBS VM X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2021 09:32:10 -0000 On 26.07.2021 11:06, Dominik Csapak wrote: > On 7/26/21 10:50 AM, Samuel Lorch wrote: >> Hello, >> >> i Have been trying to pass through a TC-L52BN LTO 5 Tape Drive from >> Quantum that's connected to a MegaRaid SAS 1068 LSI Raid Card, this >> setup works if i have a bare metal installed Proxmox Backup Server. I >> Have IOMMU Enabled on the Proxmox Host and Passed through the Raid >> Card to the VM. I can Also see the Raid Card With "lspci" from inside >> the VM but the "proxmox-tape drive scan" command and the UI can't seem >> to find it. Is there Any Additional Setup i have to do / any >> Troubleshooting steps i could follow? >> >> Thanks, >> Samuel >> > > Hi, > > did not try such a setup myself, but is the passthrough properly > working? I.e. do you see any other disks that are connected? > > Is the correct driver loaded for the raid card? > > Also what does 'dmesg' show? > > kind regards > Dominik Hi, unfortunately this raid controller only has external ports and i don't have a adapter to directly attach a drive. The driver seems to load correctly according to dmesg, here are some parts i believe are related, if there are any that i missed please ask: [ 2.179335] megasas: 07.714.04.00-rc1 [ 2.181559] megaraid_sas 0000:06:10.0: BAR:0x0 BAR's base_addr(phys):0x00000000c1620000 mapped virt_addr:0x(____ptrval____) [ 2.181575] i801_smbus 0000:00:1f.3: Enabling SMBus device [ 2.181584] megaraid_sas 0000:06:10.0: Waiting for FW to come to ready state ... [ 34.777774] megaraid_sas 0000:06:10.0: FW now in Ready state [ 34.777799] megaraid_sas 0000:06:10.0: 63 bit DMA mask and 32 bit consistent mask [ 34.778149] megaraid_sas 0000:06:10.0: current msix/online cpus : (0/4) [ 34.778153] megaraid_sas 0000:06:10.0: RDPQ mode : (disabled) [ 34.861766] megaraid_sas 0000:06:10.0: controller type : MR(256MB) [ 34.861769] megaraid_sas 0000:06:10.0: Online Controller Reset(OCR) : Enabled [ 34.861771] megaraid_sas 0000:06:10.0: Secure JBOD support : No [ 34.861773] megaraid_sas 0000:06:10.0: NVMe passthru support : No [ 34.861774] megaraid_sas 0000:06:10.0: FW provided TM TaskAbort/Reset timeout : 0 secs/0 secs [ 34.861776] megaraid_sas 0000:06:10.0: JBOD sequence map support : No [ 34.861778] megaraid_sas 0000:06:10.0: PCI Lane Margining support : No [ 34.861780] megaraid_sas 0000:06:10.0: megasas_init_mfi: fw_support_ieee=0 [ 34.861917] megaraid_sas 0000:06:10.0: INIT adapter done [ 34.861920] megaraid_sas 0000:06:10.0: JBOD sequence map is disabled megasas_setup_jbod_map 5707 [ 34.861939] megaraid_sas 0000:06:10.0: MR_DCMD_PD_LIST_QUERY not supported by firmware [ 34.861976] megaraid_sas 0000:06:10.0: fw state:c0000000 [ 34.861979] megaraid_sas 0000:06:10.0: fwstate:c0000000, dis_OCR=0 [ 34.889759] megaraid_sas 0000:06:10.0: DCMD not supported by firmware - megasas_ld_list_query 4829 [ 34.917783] megaraid_sas 0000:06:10.0: pci id : (0x1000)/(0x0411)/(0x1000)/(0x1002) [ 34.917787] megaraid_sas 0000:06:10.0: unevenspan support : no [ 34.917788] megaraid_sas 0000:06:10.0: firmware crash dump : no [ 34.917789] megaraid_sas 0000:06:10.0: JBOD sequence map : disabled [ 34.917794] megaraid_sas 0000:06:10.0: Max firmware commands: 1007 shared with nr_hw_queues = 1 [ 34.917806] scsi host0: Avago SAS based MegaRAID driver ... [ 36.300625] iscsi: registered transport (tcp) ... [ 36.336130] iscsi: registered transport (iser) ... [ 107.713269] megaraid_sas 0000:06:10.0: MR_DCMD_PD_LIST_QUERY not supported by firmware Note: Before on the PBS that was installed on Hardware i could only get the Drive to show up if the Drive was powered up and plugged in before starting the Backup Server, Could this be Causing Issues? regards Samuel