Jump to content

So up until now i've been using regular barebones Ubuntu Server with a storage array with linux software raid.

I've been planning on moving over to proxmox to test out some virtualization but since the majority of my harddrive storage is in this array, is it possible to mount it in proxmox? or at the very least inside a VM?

Link to comment
https://linustechtips.com/topic/1191376-proxmox-with-preexisting-md-array/
Share on other sites

Link to post
Share on other sites

20 hours ago, BloodKnight7 said:

You can put the drives in the md in passthrough mode or create virtual drives and then present them. Up to you! :)

How would i go about doing that? it seems that proxmox believes they are in use because there are partitions on the drives? at least through the web GUI

Do i have to go through the command line for it?

Link to post
Share on other sites

37 minutes ago, Mayaa said:

How would i go about doing that? it seems that proxmox believes they are in use because there are partitions on the drives? at least through the web GUI

Do i have to go through the command line for it?

I think you have to use the command line.

 

BUt id just have it use the md array on the host and passthough a virtual disk or do a nfs share.

Link to post
Share on other sites

4 hours ago, Electronics Wizardy said:

I think you have to use the command line.

 

BUt id just have it use the md array on the host and passthough a virtual disk or do a nfs share.

So i managed to get my SSD working at least since i just wanted to reformat it anyway, however it seems like my array doesnt show up in fdisk.

The 2 disks in the array do show up though.

 

Im not sure how i would make the md array show up, or what to do / mount it if it did show up.

 

EDIT: Managed to get the array to show up, but still not sure how to mount it.

Link to post
Share on other sites

11 hours ago, Mayaa said:

So i managed to get my SSD working at least since i just wanted to reformat it anyway, however it seems like my array doesnt show up in fdisk.

The 2 disks in the array do show up though.

 

Im not sure how i would make the md array show up, or what to do / mount it if it did show up.

 

EDIT: Managed to get the array to show up, but still not sure how to mount it.

whata does lsblk look like?

 

What filesystem?

 

10 hours ago, BloodKnight7 said:

what powervault md model you got? MD1000? MD1200? MD3000? 

I think your thinking of the wrong md

Link to post
Share on other sites

On 5/10/2020 at 5:47 PM, BloodKnight7 said:

what powervault md model you got? MD1000? MD1200? MD3000? 

I believe he's talking about MDADM (MD)...

 

 

For importing an MD array into a new machine, because /dev devices can change, you should get the UUID from both and compare. 

 

Run this command through both operating systems to compare..what the structure is of your existing /dev/md, and to see what UUID (physical disks) are mounted as which devices. You need to do this, as /dev/sda, /dev/sdb, /dev/sdc...might be /dev/sdb,/dev/sda,/dev/sdc on your new OS...the important thing is the order of the UUID's. 

sudo lsblk
sudo blkid

 

Then when you're confident about what the original order is, you run a command like this to assemble.

 

mdadm --assemble --scan --verbose /dev/md{number} /dev/{disk1} /dev/{disk2} /dev/{disk3} /dev/{disk4}

 

Keep in mind, that writing to it incorrectly, could cause data destruction. You should typically always create the device first using the --readonly flag, to mount the disks without changes and see if data is readable and consistant. 

 

 

 

 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

P.S instead of blkid, you can also use this to give a more readable format. 

I can't post the text, because LTT is sh**ting itself over me exploiting the forums.....

 

image.png.edbc0233f6261c185f39ca3dd527b55f.png

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×