[SOLVED] Need Help Adding Directory Storage

Tarek Damak

New Member
Dec 19, 2016
22
0
1
30
Hello ,
When i try to make a new directory storage , i find it's size 10MB , i don't know how to configure that,
that's what i set :
upload_2016-12-21_13-3-12.png

And that's my filesystems config

Code:
root@virtual1:/var# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb3
  VG Name               pve
  PV Size               67.72 GiB / not usable 3.98 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              17335
  Free PE               1356
  Allocated PE          15979
  PV UUID               YIOh2f-xJ0U-AtWp-VHY5-wKJk-KBIu-UXu9jd

  --- Physical volume ---
  PV Name               /dev/sda1
  VG Name               hd2
  PV Size               1.82 TiB / not usable 3.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              476671
  Free PE               131033
  Allocated PE          345638
  PV UUID               NRE7dI-Rtot-PxkG-nMna-u2Mf-8mtP-1Tv2ZY

Code:
root@virtual1:/dev/hd2# lvdisplay
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                mguBAk-WNoo-rHOk-l3aU-xwOc-gUYM-H0ws9Z
  LV Write Access        read/write
  LV Creation host, time proxmox, 2016-12-14 02:26:13 +0100
  LV Status              available
  # open                 2
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:1

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                FRlLYm-WGxO-OHf3-ydoe-2Vsk-tgtg-W2cKf4
  LV Write Access        read/write
  LV Creation host, time proxmox, 2016-12-14 02:26:13 +0100
  LV Status              available
  # open                 1
  LV Size                16.75 GiB
  Current LE             4288
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:0

  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                pmzka6-fcKK-P05n-UcRA-HTAP-Gng9-nx4yiE
  LV Write Access        read/write
  LV Creation host, time proxmox, 2016-12-14 02:26:15 +0100
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 2
  LV Size                34.59 GiB
  Allocated pool data    11.59%
  Allocated metadata     5.78%
  Current LE             8856
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:4

  --- Logical volume ---
  LV Path                /dev/pve/vm-100-disk-1
  LV Name                vm-100-disk-1
  VG Name                pve
  LV UUID                QlLdgS-sR2x-Jizt-f6VM-Mer7-y4WD-6N3acb
  LV Write Access        read/write
  LV Creation host, time virtual1, 2016-12-14 18:13:04 +0100
  LV Pool name           data
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Mapped size            20.05%
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:6

  --- Logical volume ---
  LV Name                ar
  VG Name                pve
  LV UUID                2pPmYt-YpxK-jzzZ-F62Q-H4rX-hH9d-QmQtWJ
  LV Write Access        read/write
  LV Creation host, time virtual1, 2016-12-20 10:47:05 +0100
  LV Pool metadata       ar_tmeta
  LV Pool data           ar_tdata
  LV Status              available
  # open                 0
  LV Size                3.00 GiB
  Allocated pool data    0.00%
  Allocated metadata     1.17%
  Current LE             768
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:20

  --- Logical volume ---
  LV Path                /dev/hd2/vm-102-disk-1
  LV Name                vm-102-disk-1
  VG Name                hd2
  LV UUID                pt6GAR-pOW2-ocTj-3u06-y3cl-wUbt-Mlpiws
  LV Write Access        read/write
  LV Creation host, time virtual1, 2016-12-19 11:39:34 +0100
  LV Status              available
  # open                 0
  LV Size                50.00 GiB
  Current LE             12800
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:7

  --- Logical volume ---
  LV Path                /dev/hd2/vm-103-disk-1
  LV Name                vm-103-disk-1
  VG Name                hd2
  LV UUID                4PsInd-wLNm-EM6J-hUoH-cNbO-H1ON-Nzc9ab
  LV Write Access        read/write
  LV Creation host, time virtual1, 2016-12-19 12:36:25 +0100
  LV Status              available
  # open                 0
  LV Size                50.00 GiB
  Current LE             12800
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:8
  --- Logical volume ---
  LV Path                /dev/hd2/backup
  LV Name                backup
  VG Name                hd2
  LV UUID                stya9Q-e1sn-C9fp-dtAD-2KRe-cA8W-u7gfFY
  LV Write Access        read/write
  LV Creation host, time virtual1, 2016-12-21 13:06:16 +0100
  LV Status              available
  # open                 0
  LV Size                200.00 GiB
  Current LE             51200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           251:10

And in the disks in the Web interface of proxmox :
upload_2016-12-21_13-39-45.png
But when i use the /var/lib/vz/backup he gives me 16GB which is the free space in my pve disk , so the problem is with the hd2 i think.
How can i fix that ? (it looks like if the HD2 volume isn't reachable)

Thank you
 
Last edited:
what is the output of
Code:
mount

?

you should not choose /dev/hd2/backup as directory storage, because it is a lv (a blockdevice)

if you want to store backups on it, you have to create a filesystem on top, mount it somewhere (e.g. /mnt/backup ) and choose that
as directory storage
 
  • Like
Reactions: Tarek Damak
That's what i have as result
Code:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=8207854,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,relatime,size=13138392k,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/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
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/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
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=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdb2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (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)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
as you can see the sda1 is not mounted and i tried to mount it but i got error : unknown filesystem type 'lvm2_member'
can you give me full command + the /etc/fstab configuration please

Thank you
 
It's ok , i did what Dominik said and it works ,
So just the ones who are googling and found this topic , you have just to create an lv (backup in my case)
then u create a directory /mnt/backup
and then do a filesystem in the lv using mkfs.ext4 in my case :" mkfs.ext4 /dev/hd2/backup "
and then mount it using mount /dev/hd2/backup /mnt/backup

In the end i wanna thank Dominik another Time