K
K
Komonec2011-04-21 09:27:13
LVM
Komonec, 2011-04-21 09:27:13

Prompt with LVM

There was a home server, there were 2 hard drives of 1TB each, united using LVM. Updated the hardware, reinstalled the system (ubuntu server). Connected hard drives, installed lvm2 package. I look, sudo lvdisplay : How to find out what file system is there? Then I mount /dev/group1/lv1: What should I do, what am I doing wrong? Thanks in advance.

--- Logical volume ---
LV Name /dev/group1/lv1
VG Name group1
LV UUID z94ouy-B8r5-svUE-gpRy-0Cne-Ylag-Pfpc2O
LV Write Access read/write
LV Status available
# open 1
LV Size 1,77 TiB
Current LE 464362
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:0





mount: wrong fs type, bad option, bad superblock on /dev/mapper/group1-lv1,
missing codepage or helper program, or other error
В некоторых случаях полезная информация может быть
найдена в syslog - попробуйте dmesg | tail или что-то
в этом роде



Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@greynix, 2011-04-21
_

From simply installing the lvm2 package, lvm will not work. You need to create a volume group (vg) and logical volumes (lv) from physical devices or logical ones (/dev/sda2 for example), and then place partitions on these logical volumes. Judging by the fact that your system is already installed, you will need to create separate partitions on your hard drive under lvm, any linux livecd and parted will help you with this.

K
Komonec, 2011-04-21
@Komonec

Thank you all, the file system was ext4, accordingly I registered everything in /etc/fstab
/dev/group1/lv1 /путь_к_папке ext4 rw,noatime 0 2
After #sudo mount -a
And everything was mounted :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question