Jump to content

Recommended Posts

Posted

Hi I would like to use LVM on my 2TB HDD.

I'm working on:

 _____                                   _     _       
| ____|___ _ __  _ __ ___  ___ ___  ___ | |__ (_)_ __  
|  _| / __| '_ \| '__/ _ \/ __/ __|/ _ \| '_ \| | '_ \ 
| |___\__ \ |_) | | |  __/\__ \__ \ (_) | |_) | | | | |
|_____|___/ .__/|_|  \___||___/___/\___/|_.__/|_|_| |_|
          |_|                                          

Welcome to ARMBIAN 5.54 stable Debian GNU/Linux 9 (stretch) 4.17.9-mvebu64

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.5 (stretch)
Release:        9.5
Codename:       stretch

 

Physical device:

Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

PV and VG have been created without problem:

$ sudo pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda
  VG Name               multimedia
  PV Size               1.82 TiB / not usable 1.09 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              476932
  Free PE               476932
  Allocated PE          0
  PV UUID               fTPV4K-z5Vo-e7WS-01RI-ripP-g5Eg-vBsDL3

$ sudo vgdisplay 
  --- Volume group ---
  VG Name               multimedia
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1.82 TiB
  PE Size               4.00 MiB
  Total PE              476932
  Alloc PE / Size       0 / 0   
  Free  PE / Size       476932 / 1.82 TiB
  VG UUID               PthfmW-0SfB-GYsy-rkgu-yOBl-Ca1B-0xiZWs

After I want to create LV it shows me this message:

$ sudo lvcreate --name video --size 1.8T multimedia
  /dev/mapper/control: open failed: No such device
  Failure to communicate with kernel device-mapper driver.
  Check that device-mapper is available in the kernel.
  Incompatible libdevmapper 1.02.137 (2016-11-30) and kernel driver (unknown version).
  striped: Required device-mapper target(s) not detected in your kernel.
  Run `lvcreate --help' for more information.

libdevmapper:

$ sudo aptitude show libdevmapper1.02.1
Package: libdevmapper1.02.1              
Version: 2:1.02.137-2
State: installed
Automatically installed: no
Multi-Arch: same
Priority: optional
Section: libs
Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
Architecture: arm64
Uncompressed Size: 378 k
Depends: libc6 (>= 2.22), libselinux1 (>= 1.32), libudev1 (>= 183), dmsetup (>= 2:1.02.137-2)
Conflicts: libdevmapper1.02
Breaks: liblvm2app2.2 (< 2.02.122), lvm2 (< 2.02.122), lvm2:armhf (< 2.02.122), liblvm2app2.2:armhf (< 2.02.122),
        libdevmapper1.02.1:armhf (!= 2:1.02.137-2)
Replaces: libdevmapper1.02.1:armhf (< 2:1.02.137-2)
Description: Linux Kernel Device Mapper userspace library
 
Homepage: http://sources.redhat.com/lvm2/
Tags: role::shared-lib
$ sudo aptitude search mapper
p   keymapper                                                 - Keyboard map decision tree builder and interpreter                 
p   libdevmapper-dev                                          - Linux Kernel Device Mapper header files                            
p   libdevmapper-dev:armhf                                    - Linux Kernel Device Mapper header files                            
i A libdevmapper-event1.02.1                                  - Linux Kernel Device Mapper event support library                   
p   libdevmapper-event1.02.1:armhf                            - Linux Kernel Device Mapper event support library                   
i   libdevmapper1.02.1                                        - Linux Kernel Device Mapper userspace library                       
p   libdevmapper1.02.1:armhf                                  - Linux Kernel Device Mapper userspace library                       
p   openorienteering-mapper                                   - Orienteering map drawing application                               
p   openorienteering-mapper:armhf                             - Orienteering map drawing application                               
p   puppet-module-adrienthebo-filemapper                      - Puppet module for mapping files to resources and back              
p   virtuoso-vad-rdfmappers                                   - high-performance database - RDF mappers module
$ sudo aptitude show dmsetup
Package: dmsetup                         
Version: 2:1.02.137-2
State: installed
Automatically installed: no
Multi-Arch: foreign
Priority: optional
Section: admin
Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
Architecture: arm64
Uncompressed Size: 242 k
Depends: libc6 (>= 2.17), libdevmapper1.02.1 (>= 2:1.02.131)
Conflicts: dmsetup:armhf
Provides: dmsetup:armhf (= 2:1.02.137-2)
Provided by: dmsetup:armhf (2:1.02.137-2)
Description: Linux Kernel Device Mapper userspace library
 
Homepage: http://sources.redhat.com/lvm2/
Tags: admin::filesystem, implemented-in::c, interface::commandline, role::program, scope::utility, use::configuring
$ ls -l /sys/class/misc/
total 0
lrwxrwxrwx 1 root root 0 Jan  1  1970 autofs -> ../../devices/virtual/misc/autofs
lrwxrwxrwx 1 root root 0 Jan  1  1970 btrfs-control -> ../../devices/virtual/misc/btrfs-control
lrwxrwxrwx 1 root root 0 Jan  1  1970 cpu_dma_latency -> ../../devices/virtual/misc/cpu_dma_latency
lrwxrwxrwx 1 root root 0 Jan  1  1970 hw_random -> ../../devices/virtual/misc/hw_random
lrwxrwxrwx 1 root root 0 Jan  1  1970 kvm -> ../../devices/virtual/misc/kvm
lrwxrwxrwx 1 root root 0 Jan  1  1970 lightnvm -> ../../devices/virtual/misc/lightnvm
lrwxrwxrwx 1 root root 0 Jan  1  1970 loop-control -> ../../devices/virtual/misc/loop-control
lrwxrwxrwx 1 root root 0 Jan  1  1970 memory_bandwidth -> ../../devices/virtual/misc/memory_bandwidth
lrwxrwxrwx 1 root root 0 Jan  1  1970 network_latency -> ../../devices/virtual/misc/network_latency
lrwxrwxrwx 1 root root 0 Jan  1  1970 network_throughput -> ../../devices/virtual/misc/network_throughput
lrwxrwxrwx 1 root root 0 Jan  1  1970 psaux -> ../../devices/virtual/misc/psaux
lrwxrwxrwx 1 root root 0 Jan  1  1970 snapshot -> ../../devices/virtual/misc/snapshot
lrwxrwxrwx 1 root root 0 Jan  1  1970 tun -> ../../devices/virtual/misc/tun
lrwxrwxrwx 1 root root 0 Jan  1  1970 ubi_ctrl -> ../../devices/virtual/misc/ubi_ctrl
lrwxrwxrwx 1 root root 0 Jan  1  1970 vfio -> ../../devices/virtual/misc/vfio
lrwxrwxrwx 1 root root 0 Jan  1  1970 vga_arbiter -> ../../devices/virtual/misc/vga_arbiter
lrwxrwxrwx 1 root root 0 Jan  1  1970 vhost-net -> ../../devices/virtual/misc/vhost-net

$ cat /proc/devices 
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 29 fb
 89 i2c
 90 mtd
128 ptm
136 pts
180 usb
189 usb_device
243 rpmb
244 vfio
245 macvtap
246 nvme
247 bsg
248 ptp
249 pps
250 rtc
251 dax
252 ttyMV
253 ttyPS
254 gpiochip

Block devices:
  1 ramdisk
  7 loop
  8 sd
 31 mtdblock
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
179 mmc
253 zram
254 virtblk
259 blkext

Trying to add module:

$ sudo modprobe dm_mod
modprobe: FATAL: Module dm_mod not found in directory /lib/modules/4.17.9-mvebu64
$ find /lib/modules/4.17.9-mvebu64/kernel/drivers/ -iname "dm*"
/lib/modules/4.17.9-mvebu64/kernel/drivers/dma
/lib/modules/4.17.9-mvebu64/kernel/drivers/hwmon/dme1737.ko
/lib/modules/4.17.9-mvebu64/kernel/drivers/net/usb/dm9601.ko

Have I missed something?

I've went through official LVM howto here, but maybe it's too old and I don't know specific right module name.

Thx for help..

  • tom_i changed the title to [? BUG ?] lvcreate doesn't work
Posted

Can you switch to newer kernel via armbian-config..   Switch kernel type from "default" to next/mainline.   Then switch to nightly if needed.

 

root@espressobin:~# uname -a
Linux espressobin 4.18.6-mvebu64 #3 SMP PREEMPT Sat Sep 8 15:04:30 EDT 2018 aarch64 GNU/Linux
root@espressobin:~# ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 Sep  8 20:12 control

 

  • tom_i changed the title to lvcreate doesn't work - solved
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines