how to mount second partition or disk?

artisticab

Renowned Member
Sep 8, 2011
37
14
73
Pacific NW, USA
Hello,

I am trying to figure out how to mount a second drive or partition so that it is available in the proxmox console for vm's, backups, and storage. I have 6 2TB SATA drives in RAID10 configuration, drive #1 (/dev/sda) is 2.0 GB, drive #2 (/dev/sdb) is 3.8 GB (the rest of the drive). When I installed proxmox, I had the option to choose which partition, so I think it is mounted already? How do I activate it in the console?

Thank you for your help.


root@hivemind:~# fdisk -l

Disk /dev/sda: 2147.5 GB, 2147483647488 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a7f48

Device Boot Start End Blocks Id System
/dev/sda1 * 1 66 523264 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 66 261084 2096626688 8e Linux LVM

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn 't support GPT. Use GNU Parted.


Disk /dev/sdb: 3852.5 GB, 3852482904576 bytes
255 heads, 63 sectors/track, 468371 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x11e8673c

Device Boot Start End Blocks Id System

Disk /dev/dm-0: 103.1 GB, 103079215104 bytes
255 heads, 63 sectors/track, 12532 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 24.7 GB, 24696061952 bytes
255 heads, 63 sectors/track, 3002 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 2002.0 GB, 2001991630848 bytes
255 heads, 63 sectors/track, 243394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table


I am running the latest pve version

root@hivemind:~# pveversion -v
pve-manager: 2.3-13 (pve-manager/2.3/7946f1f1)
running kernel: 2.6.32-18-pve
proxmox-ve-2.6.32: 2.3-88
pve-kernel-2.6.32-16-pve: 2.6.32-82
pve-kernel-2.6.32-18-pve: 2.6.32-88
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.4-4
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.93-2
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.9-1
pve-cluster: 1.0-36
qemu-server: 2.3-18
pve-firmware: 1.0-21
libpve-common-perl: 1.0-48
libpve-access-control: 1.0-26
libpve-storage-perl: 2.3-6
vncterm: 1.0-3
vzctl: 4.0-1pve2
vzprocps: 2.0.11-2
vzquota: 3.1-1
pve-qemu-kvm: 1.4-8
ksm-control-daemon: 1.1-1
 
Hello,

I am trying to figure out how to mount a second drive or partition so that it is available in the proxmox console for vm's, backups, and storage. I have 6 2TB SATA drives in RAID10 configuration, drive #1 (/dev/sda) is 2.0 GB, drive #2 (/dev/sdb) is 3.8 GB (the rest of the drive). When I installed proxmox, I had the option to choose which partition, so I think it is mounted already? How do I activate it in the console?

Thank you for your help.





I am running the latest pve version

Hi,
use the search function - there are plenty posts about this (I have wrote many answers).

Udo
 
This solution worked the best in my scenario to add the disks/partitions:

First, followed this: http://www.debiantutorials.com/add-a-second-hard-disk/

Second, using the pve web console, go to: datacenter > storage > select "add" folder

"ID" is what you want to name the drive
"Directory" is the folder created in the first step (must include the / ). I used ( /disk2 )
"Content" is what types of data you want


I am still learning, so I thought I would share my results as I hope this helps others.

Thanks,
G
 
Thank you for this valuable post. I have been trying to sort this out for two days and stumbled upon your article and it helped me out. Cheers!!!
 
I am still learning, so I thought I would share my results as I hope this helps others.
For sure it helped much better than a "use the search function".

I hoped a way to do it inside the web-GUI but it seems not possible.
Assigning the disks to a VM or directly to pve for storage still need to be done by command line, a pitty compared to all the GUI can manage !

So I did it like you, like for a standard debian system. Just used EXT4 instead.
Then I disabled the "local" directory which was very small (less than 10Gb)

So now :
Proxmox is running on a SSD 120Gb.
vm are stored on the SSD
backups and iso on a mounted 2,5" hard drive
 
  • Like
Reactions: Syed Maaz Rehan
This solution worked the best in my scenario to add the disks/partitions:
...
Second, using the pve web console, go to: datacenter > storage > select "add" folder

"ID" is what you want to name the drive
"Directory" is the folder created in the first step (must include the / ). I used ( /disk2 )
"Content" is what types of data you want
...

This is what I needed to do to store VMs on mdadm raid1. I'm running the ve on an ssd and wanted to use mdadm raid1 as vm storage. Thank you so much. If you've been searching like me, just create the software raid per your favorite guide, mount /dev/md0 to /yourpath/raid1 or something similar, and use the content field for disk images. Disable disk images on local. Remember to add it to fstab so it mounts on reboot.

Searching this forum is pretty much useless since all of the answers are staff or greybeards telling you it's unsupported or dumb for x reason rather than offering an answer to your question. Just give me a way to do it, say it's unsupported and I'm an idiot for doing it, and move on.

People learn best from mistakes and figuring out why things failed rather than just hearing "you're wrong do it my way."
 
I'm looking for a LVM Thin version of these instructions. My system won't start up after doing this so far.

This forum's search and the "manual" (and wiki) on this and other topics are frequently abysmal. :(
 
This solution worked the best in my scenario to add the disks/partitions:

First, followed this: http://www.debiantutorials.com/add-a-second-hard-disk/

Second, using the pve web console, go to: datacenter > storage > select "add" folder

"ID" is what you want to name the drive
"Directory" is the folder created in the first step (must include the / ). I used ( /disk2 )
"Content" is what types of data you want


I am still learning, so I thought I would share my results as I hope this helps others.

Thanks,
G
worked for me. Thanks, very useful!
 
This solution worked the best in my scenario to add the disks/partitions:

First, followed this: http://www.debiantutorials.com/add-a-second-hard-disk/

Second, using the pve web console, go to: datacenter > storage > select "add" folder

"ID" is what you want to name the drive
"Directory" is the folder created in the first step (must include the / ). I used ( /disk2 )
"Content" is what types of data you want


I am still learning, so I thought I would share my results as I hope this helps others.

Thanks,
G
Thank you very much for the time and effort you put forth in answering the question. I am new as well and this was the perfect answer.
 
This solution worked the best in my scenario to add the disks/partitions:

First, followed this: http://www.debiantutorials.com/add-a-second-hard-disk/

Second, using the pve web console, go to: datacenter > storage > select "add" folder

"ID" is what you want to name the drive
"Directory" is the folder created in the first step (must include the / ). I used ( /disk2 )
"Content" is what types of data you want


I am still learning, so I thought I would share my results as I hope this helps others.

Thanks,
G
just what i have been looking for, thank you
 
Thank-you artisticab the procedure worked like a charm. I added a disk to my NAS VM and I was able add the drive with two active partitions.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!