You are not logged in.

#1 2017-11-08 21:31:29

6PM
Member
Registered: 2017-11-08
Posts: 7

[Solved] XFS filesystem on LVM LUKS

Hello. I have installed Arch with LVM on LUKS

mkfs.xfs /dev/mapper/myvol-home
mkfs.ext4 /dev/mapper/myvol-root
mkswap /dev/mapper/myvol-swap
mkfs.ext2 /dev/sda1

fstab, hooks, grub. All right. The installation was successful.


But when I have installed in the same way xfs root partition, the system does not boot

mkfs.xfs /dev/mapper/myvol-home
mkfs.xfs /dev/mapper/myvol-root
mkswap /dev/mapper/myvol-swap
mkfs.ext2 /dev/sda1


Waiting 10 seconds for device /dev/mapper/vol-root ...
ERROR: device '/dev/mapper/vol-root' not found. Skipping fsck.
:: mounting '/dev/mapper/vol-root' on real root
mount: /new_root: no filesystem type specified.
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off
[rootfs ]# _


I followed the installation guide and more, but I found nothing.
Thank you for ideas. Best regards.

PD: Sorry my english ._.

Last edited by 6PM (2017-11-12 12:42:04)

Offline

#2 2017-11-08 21:34:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] XFS filesystem on LVM LUKS

Post your mkinitcpio.conf


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-11-08 21:45:25

6PM
Member
Registered: 2017-11-08
Posts: 7

Re: [Solved] XFS filesystem on LVM LUKS

# vim:set ft=sh

MODULES=()

BINARIES=()

FILES=()

HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)

Offline

#4 2017-11-08 21:48:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] XFS filesystem on LVM LUKS

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Add the xfs module to your conf and rebuild the initramfs.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-11-11 20:34:53

6PM
Member
Registered: 2017-11-08
Posts: 7

Re: [Solved] XFS filesystem on LVM LUKS

Thank you jasonwryan for your help. The system can boot.

But then I installed mate desktop and the problem arises again. On this occasion with both filesystem xfs and ext4
Waiting 10 seconds for device /dev/mapper...

I reconfigured hooks, modules again,
rebuilding the initramfs, generating grub.cfg, etc and nothing.



So after a lot of reading and searching I found it.

I changed /etc/lvm/lvm.conf to "use_lvmetad = 1"
Generating initramfs one more time.

Finally it works!


I write to thank you and to help another users if they have the same problem.

Offline

#6 2017-11-11 20:56:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] XFS filesystem on LVM LUKS

Cool. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-11-11 23:18:32

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [Solved] XFS filesystem on LVM LUKS

6PM wrote:

I changed /etc/lvm/lvm.conf to "use_lvmetad = 1"

That is, you restored the default value.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB