Menu

#347 Cannot use LVM partitions in several web user interfaces

open
nobody
None
2014-12-22
2014-10-12
schodet
No

What steps will reproduce the problem?

  1. Create LVM partitions and filesystems
  2. Try to select them in web interface

What is the expected output?

Have my LVM partition selectable in the drop box.

What do you see instead?

Only RAID and classic partitions.

What browser and operating system are you using on your computer?

Iceweasel on Debian.

Please provide any additional information below

In common.sh:

eval $(echo $ln | awk '/^\/dev\/(sd|md)/{printf "part=%s; pcap=%s; avai=%s", \
        $1, $2, $4}')

In cryptsetup.cgi:

devs="$(awk '/sd[a-z][1-9]/{printf "<option value=%s>%s (%.1f GB)</option>\n", $4, $4, $3*1024/1e9}' /proc/partitions)"

In diskmaint_proc.cgi:

eval $(echo $ln | awk '/^(\/dev\/sd[a-z]|\/dev\/md[0-9])/{printf "part=%s;type=%s", $1, $3}')

I see the "work in progress" warning, but this might help anyway.

Discussion

  • João Cardoso

    João Cardoso - 2014-11-08

    I'm not sure if I understand the issue.

    Do you want to encrypt or create a RAID over a LVM logical volume? Or even create a LVM over a RAID or a encrypted partition? Or any other combination of all those devices? I don't think that the box CPU has enough power for all those layers, so it is not possible by design.
    And LVM already has most RAID features such as striping, mirroring or concatenation, so it does not make many sense (for the ordinary home user) to use one over the other.

    By design you can only create a filesystem over an encrypted physical partition or over a LVM logical volume, and that is working fine, isn't it?

     
  • schodet

    schodet - 2014-11-13

    I want to encrypt a LVM logical volume. LVM is not expensive for the CPU, encryption is way more expensive, I do not think this is a bad idea.

    Anyway, the tune in diskmaint should work on LVM partitions. Also, the part in common.sh is used in many places where I see no reason to forbid LVM partitions (debian install, backup, user dir...).

     
  • João Cardoso

    João Cardoso - 2014-11-14

    Your are of course right.

    The real issue is the assembling and auto-mounting of devices, as well as its maintenance tasks: one could create a RAID over LVM as well as LVM over a RAID, and encrypt any of them, or create a LVM or a RAID over an encrypted disk... possibilities are almost endless, although most of them make no sense.

    That was what made me restrict the webUI to use LVM, RAID and LUKS over physical partitions only, and to use filesystems only over each one of them.

    And if RAID, being so simple, is already an issue for most users to deal with, then LVM plus LUKS, plus a filesystem...

    The webUI is mainly for simple tasks/users, a power user can do what he wants using the command line.

     
  • schodet

    schodet - 2014-11-15

    What about my second point (tune, debian install, user dir...)?

    Anyway, LVM is an advanced usage. If the user is using LVM, you could assume he knows a little bit more than the lambda user.

     

Log in to post a comment.