Need help to adding local storage as a LVM

Lokesh Sharma

New Member
Mar 26, 2018
4
0
1
36
Hello Team,

Need your help, I want to add my all local storage but is is showing as a unknown disks.

Here is my disks information:

upload_2018-7-26_11-13-28.png

upload_2018-7-26_11-16-47.png

upload_2018-7-26_11-17-20.png

upload_2018-7-26_11-19-55.png

Mount result is below:-

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=24683600k,nr_inodes=6170900,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=4940572k,mode=755)
/dev/mapper/pve-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=42,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=34372)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
/dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=4940572k,mode=700)
root@ihcs:~# sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# proc on /proc type proc (rw,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# udev on /dev type devtmpfs (rw,nosuid,relatime,size=24683600k,nr_inodes=6170900,mode=755)
-bash: syntax error near unexpected token `('
root@ihcs:~# devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
-bash: syntax error near unexpected token `('
root@ihcs:~# tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=4940572k,mode=755)
-bash: syntax error near unexpected token `('
root@ihcs:~# /dev/mapper/pve-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
-bash: syntax error near unexpected token `('
root@ihcs:~# securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
-bash: syntax error near unexpected token `('
root@ihcs:~# tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
-bash: syntax error near unexpected token `('
root@ihcs:~# tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
-bash: syntax error near unexpected token `('
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
root@ihcs:~# pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
-bash: syntax error near unexpected token `('
root@ihcs:~# cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
-bash: syntax error near unexpected token `('
root@ihcs:~# systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=42,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=34372)
-bash: syntax error near unexpected token `('
root@ihcs:~# mqueue on /dev/mqueue type mqueue (rw,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
-bash: syntax error near unexpected token `('
root@ihcs:~# debugfs on /sys/kernel/debug type debugfs (rw,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# configfs on /sys/kernel/config type configfs (rw,relatime)
-bash: syntax error near unexpected token `('
root@ihcs:~# lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
-bash: syntax error near unexpected token `('
root@ihcs:~# /dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)
-bash: syntax error near unexpected token `('
root@ihcs:~# tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=4940572k,mode=700)
-bash: syntax error near unexpected token `('

Can someone please guide me how to configure my Storage as a proper way so i can get my available space.

Thank you in advance.

Regards,
Lokesh Sharma
 
Hello Dominik,

Thanks for sharing the information but when i tried to create any new disk as a LVM or LVM-Thin it is showing only 136GB disk not my all disks that i have.

upload_2018-7-26_13-21-4.png

Please let me know what step i miss.

Please let me know if you need any more information.

Regards,
Lokesh Sharma
 
the 'storage->add' way only adds storage config of existing storages, it does not create new ones (like i said, this has to be done manually and on the cli)
 
Hi Dominik,

Yes, you are correct i am able to create a new storage but for every single disk should i follow the same process?

My current scenario is we have multiple HDD's with various capacities. I want to club all these disks into a single storage so that I may make it available to all VMs.

Thank You.

Regards,
Lokesh Sharma
 
i would not recommend to stripe the disks in one big lvm vg. if one disk fails, you risk losing all your data, instead use something like zfs raid10 (or hardware raid)
 

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!