[SOLVED] Grub2 and LVM -- "Couldn't find physical volume `pv1'"
Hello Folks
I'm trying to upgrade from grub-legacy to grub2, following the instructions at https://wiki.archlinux.org/index.php/GRUB2
I've installed grub-bios, and run this without problem:
# modprobe dm-mod
# grub-install --recheck /dev/sda
But this command
# grub-mkconfig -o /boot/grub/grub.cfg
gives this:
Generating grub.cfg ...
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
/usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
done
So now I'm reluctant to try to reboot the system because it seems likely to be broken. Should I ignore the warnings, or fix something?
I'm using LVM2 as you can see. /boot is on a separate non-LVM partition (/dev/sdc1). root is on LVM. This is all on a recently-updated 64-bit Arch installation using systemd.
Here's a load of information -- I hope it's relevant.
# fdisk -lu
Disk /dev/sdb: 250.1 GB, 250059350016 bytes, 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xea22bb30
Device Boot Start End Blocks Id System
/dev/sdb1 63 488392064 244196001 83 Linux
Disk /dev/sda: 250.0 GB, 250000000000 bytes, 488281250 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000080
Device Boot Start End Blocks Id System
/dev/sda1 2048 488281249 244139601 8e Linux LVM
Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 * 63 481949 240943+ 83 Linux
/dev/sdc2 481950 12482504 6000277+ 82 Linux swap / Solaris
/dev/sdc3 12482505 976773167 482145331+ 8e Linux LVM
Disk /dev/mapper/vg1-root: 64.4 GB, 64424509440 bytes, 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg1-home: 583.0 GB, 583008256000 bytes, 1138688000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
# pvdisplay
--- Physical volume ---
PV Name /dev/sdc3
VG Name vg1
PV Size 459.81 GiB / not usable 1.05 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 117711
Free PE 0
Allocated PE 117711
PV UUID zaLJiO-1LCH-TGi6-hwBr-OyNs-Sjlm-HggrMo
--- Physical volume ---
PV Name /dev/sda1
VG Name vg1
PV Size 232.83 GiB / not usable 1.58 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 59604
Free PE 22955
Allocated PE 36649
PV UUID P05c2d-1d2i-bf0M-u6BX-EEq0-fvZW-VkTLhY
# lvdisplay
--- Logical volume ---
LV Path /dev/vg1/root
LV Name root
VG Name vg1
LV UUID Z68H3p-VvbC-ZNau-7Ds7-GptS-Hpl0-VZNjo4
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 60.00 GiB
Current LE 15360
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Path /dev/vg1/home
LV Name home
VG Name vg1
LV UUID uUfmS9-C4CK-Vw3V-cmwD-hEC1-VcwD-90yAyO
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 542.97 GiB
Current LE 139000
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
Last edited by Chris Dennis (2013-04-03 19:04:58)
Chris Dennis wrote:
Oh well, I took a punt on the word 'Warning' in the message, and rebooted anyway.
It worked!
I've just completed a series of experiments involving LVM and GRUB2. The short story is that such warnings are innocuous and arise from extending a volume group.
Now in some detail, here's what happens (all of which was performed in VirtualBox with the current Arch rolling release just to make it easy to add and remove disk devices):
a). pvcreate /dev/sde1 /dev/sdf1
* Use partitions of type 8e, spanning the whole drive, for BOTH devices comprising the physical
volume to prove that partitioning is irrelevant to the matter.
b). vgcreate vg_x /dev/sde1
* Start with just one device in the volume group.
c). lvcreate --extents 100%VG --name boot vg_x
d). mkfs.ext4 /dev/vg_x/boot && mount /dev/vg_x/boot /mnt/other
e). grub2-install --boot-directory=/mnt/other /dev/sde
Installation finished. No error reported.
All is well...but now let's extend the vg_x volume group with the pre-allocated device, /dev/sdf1:
f). vgextend vg_x /dev/sdf1
g). grub2-install --boot-directory=/mnt/other /dev/sde
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core
/usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core
Installation finished. No error reported.
...and boom goes the dynamite. As Chris Dennis stated, GRUB2 installs fine and the system is bootable in spite of the warning. The grub-2.00 source where the warning arises is in ./grub-core/disk/diskfilter.c and has this comment:
/* TRANSLATORS: This message kicks in during the detection of
which modules needs to be included in core image. This happens
in the case of degraded RAID and means that autodetection may
fail to include some of modules. It's an installation time
message, not runtime message. */
I haven't tried to hack the GRUB code but, based upon my experimentation and the ease of replicating the problem, my guess is that somehow a volume group that extended in manner shown above is mishandled by GRUB. It's arguably a bug, IMHO, since a volume group, even when extended, is still a valid entity.
Similar Messages
-
Need to replace black back glass cover with the original one and i couldn't find it on Amazon., Need to replace black back glass cover with the original one and i couldn't find it on Amazon.Please help
Apple does not sell parts. There are no legitimate sources for iPhone parts. Take it to your local Apple Store.
-
I purchaised MPV's Core Numbers '09 101 software online yesterday. The software only shows the toutorial, and I couldn't find the actual spread sheet. I have taken a long time watching the toutorial. Please help me on how I can find the actual spread sheet to work on. Thank you in advance
Visit the developer site for help.
https://www.appomator.com/support/ -
I forget my security questions and I couldn't find option to send the answer to my email please help
forget my security questions and I couldn't find option to send the answer to my email please help
If you can't remember the answers to the security questions, then go to Express Lane and select 'iTunes' from the list of 'products' in the middle of the screen.
Then select 'iTunes Store', and on the next screen select 'Account Management'
Next choose 'iTunes Store Account Security' and fill in that you'd like your security questions/answers reset.
You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox). -
Please help me. i buy Ipad 2 and I couldn't find hole for Sim
Please help me. i buy Ipad 2 and I couldn't find hole for Sim
If you've got the US Verizon model then it doesn't use a sim, it is CDMA based - and the wifi only model doesn't have a sim slot either. If it is 3G and takes a sim then if holding the iPad with the screen towards you, the slot should be on the left-hand side towards the top.
Edit : there is a picture of the slot, and how to open it, in chapter 1 of the manual which can be downloaded from here http://support.apple.com/manuals/#ipad
Message was edited by: King_Penguin -
I couldn't remember the answers to my security questions. And I couldn't find the option to reset the questions. Now I'm locked out of my account for 8 hrs. What can I do to fix this?
You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(115315) -
I downloaded Ipad apps on my computer via Itunes but it won't sync.. its shows that apps are installed but won't appear on my Ipad4. I tried switching it of and still couldn't find it.
Restrictions was disabled.. i enebled it and place the "Installing Apps" on "on" but still nothing after sync.
-
I set up iCloud on my iPhone, after that my contact list was disapeared, and I coudn't find out in my iCloud account. so How can I get back my contact list?
If your contacts aren't on icloud.com when you check from your computer, and they aren't on your phone, you'll have to try restoring your last backup (or recover them from another backup source).
-
i really could find a way out
You need to contact Apple. Click here, phone them, and ask for the Account Security team.
(87905) -
[SOLVED] AIF and LVM under peculiar circumstances
I am developing a virtual machine builder called varch and I am using aif to do the installs. So far it works will with regular partitions, but I am having trouble with lvm. I am fairly confident my BLOCK_DEVICES variable is accurate but aif fails to run lvcreate.
So let me paint the environment, varch is a python application which takes an aif config file as an argument, varch creates a raw disk image and then makes it available by using kpartx. The disk image becomes available on a loopback device, like /dev/loop0, and partitions become available under /dev/mapper/loop0px.
Varch takes the aif file and edits it to ensure that aif does not modify anything on the actual running system by changing the config file to point to the loopback device.
Then varch runs aif -p automatic <modified config>
like I said, it works great with regular partitions, but fails on lvm, aif makes the pv and the vg but never calls lvcreate.
What I am asking is, can someone help me navigate AIF a bit so I can figure out why it is failing? Here is the aif config I am using with varch:
SOURCE=net
#FILE_URL=file:///src/core/pkg
SYNC_URL=http://mirror.rit.edu/archlinux/\$repo/os/x86_64
HARDWARECLOCK=UTC
TIMEZONE=America/Denver
# Do you want to have additional pacman repositories or packages available at runtime (during installation)?
# RUNTIME_REPOSITORIES = array like this ('name1' 'location of repo 1' ['name2' 'location of repo2',..])
RUNTIME_REPOSITORIES=
# space separated list
RUNTIME_PACKAGES=
# packages to install
TARGET_GROUPS=base # all packages in this group will be installed (defaults to base if no group and no packages are specified)
TARGET_PACKAGES_EXCLUDE='nano reiserfsprogs'
TARGET_PACKAGES=openssh # you can also specify separate packages to install (this is empty by default)
# These variables are mandatory
GRUB_DEVICE=/dev/vda
PARTITIONS='/dev/vda 100:ext4:+ *:ext4'
BLOCKDATA='/dev/vda1 raw no_label ext4;yes;/boot;target;no_opts;no_label;no_params
/dev/vda2 raw no_label lvm-pv;yes;no_mountpoint;target;no_opts;no_label;no_params
/dev/vda2+ lvm-pv no_label lvm-vg;yes;no_mountpoint;target;no_opts;vmvg;/dev/vda2
/dev/mapper/vmvg lvm-vg vmvg lvm-lv:yes;no_mountpoint;target;no_opts;root;5000M
/dev/mapper/vmvg-root lvm-lv root xfs;yes;/;target;no_opts;no_label;no_params'
Thanks in advance, I know this is a deep question!
Last edited by Ryujin (2010-11-07 17:40:54)Why do you have a colon instead of a semicolon between lvm-lv and yes? on the line where you define the LV's on the VG.
Probably that's it. -
[Solved] GRUB2 and Win 8 on raid 0
Hello all,
Currently I have my system set up in the following config, (hd0) and (hd1) set up in raid 0 for my windows 8
install. Separately (hd2) is my arch linux install where I spend most of my time.
I have been choosing what system to boot into from the BIOS but this is cluncky and now I want to load windows 8 from GRUB,
when I run grub-mkconfig GRUB detects windows and creates a menu entry for it, but when I boot up the entry I only get
this.
invalid signature
Well I checked the wiki and there was a fix for the issue but the file that is supposed to be removed is not on my system. So
now I'm at a loss as to what the issue is. Below is my grub.cfg file and my /etc/default/grub, one thing I do notice about
this is that insmod mdraid is not part of the menu entry for windows when the wiki says it should be for raid. Is
there something that I am missing?
# DO NOT EDIT THIS FILE
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd2,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3
03799801-f6b7-4354-97eb-350e203e6cf9
else
search --no-floppy --fs-uuid --set=root 03799801-f6b7-4354-97eb-350e203e6cf9
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os
$menuentry_id_option 'gnulinux-core repo kernel-true-03799801-f6b7-4354-97eb-350e203e6cf9' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1
9adde22a-6bf9-4650-b321-625762901919
else
search --no-floppy --fs-uuid --set=root 9adde22a-6bf9-4650-b321-625762901919
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=03799801-f6b7-4354-97eb-350e203e6cf9 ro nomodeset security=tomoyo
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu
--class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-03799801-f6b7-4354-97eb-350e203e6cf9' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1
9adde22a-6bf9-4650-b321-625762901919
else
search --no-floppy --fs-uuid --set=root 9adde22a-6bf9-4650-b321-625762901919
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=03799801-f6b7-4354-97eb-350e203e6cf9 ro nomodeset security=tomoyo
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
menuentry 'Arch GNU/Linux, with Linux core repo kernel (recovery mode)' --class arch --class gnu-linux --class gnu --class os
$menuentry_id_option 'gnulinux-core repo kernel-recovery-03799801-f6b7-4354-97eb-350e203e6cf9' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1
9adde22a-6bf9-4650-b321-625762901919
else
search --no-floppy --fs-uuid --set=root 9adde22a-6bf9-4650-b321-625762901919
fi
echo 'Loading Linux core repo kernel ...'
linux /vmlinuz-linux root=UUID=03799801-f6b7-4354-97eb-350e203e6cf9 ro single
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-fallback.img
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 8 (loader) (on /dev/mapper/pdc_fibaedjhfp1)' --class windows --class os $menuentry_id_option
'osprober-chain-/dev/mapper/pdc_fibaedjhfp1' {
drivemap -s (hd0) ${root}
chainloader +1
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset security=tomoyo"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
#GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
#GRUB_SAVEDEFAULT="true"
Last edited by Anders H (2013-05-25 22:29:19)Thank you for the reply, it helped alot.
Here is what I did,
I used
# blkid
to figure out the UUID of the drive, OS-Prober was finding the correct UUID but the format was all messed up. The format of the menu entry that you linked to worked just fine, this is what I have added to
/etc/grub.d/40_custom
menuentry "Windows 8 Loader" {
insmod part_msdos
insmod ntfs
set root='(/dev/mapper/pdc_fibaedjhfp1)'
search --no-floppy --fs-uuid --set 2262C76C62C74371
chainloader +1
Everything is booting just fine, thanks for the help. -
I left my iPad on my plane and airline couldn't find. What do I do now?
I left my iPad on my plane and airline has not been able to locate it. What now?
JIf you have not enabled Find My iPad, you can't track, lock or wipe your iPad
1. Change your passwords immediately
2. Notify the credit card company immediately
3. Report to insurance company -
After I switched to Tab Mix plus I started getting the close button on both sides of tabs which causes me to accidentally close them all the time.
I also use TreeStyle Tab and I suspect an option in one of these two addons caused this... Or maybe a conflict?
I tried to solve it myself through the addon options but to no luck.
I'd like to keep both addons because they're great, help please?Try to ask advice at the Tab Mix Plus forum:
*http://tmp.garyr.net/forum/viewforum.php?f=3 -
MY computer was restored to factory settings. Is there a way to get my previous itunes library back? I don't have an Ipod or other device that I saved my itunes library to.
Restore the media from the backup of the computer.
If it was simply restored via the Windows restore point, no data on the computer should have been affected.
If the computer was formated and Windows re-installed, no data remained on the computer and will have to be added back by the user. -
I added gmail to my phone.... now I can't get my mac. mail from my mac computer on the phone when I click the envelope for mail....so I dumped my gmail account.... still can't get my mac mail back on icon page on iphone so I can get my mail from my computer...
Ready to take my iphone back..... maybe I am too old.... for all this stuff.... very sad and frustrated....Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
Apple's iWork suite (Pages, Numbers, and Keynote.)
Open Office (Office 2007-like suite compatible with OS X.)
NeoOffice (similar to Open Office.)
LibreOffice (a new direction for the Open Office suite.)
Maybe you are looking for
-
How do I move a section of Pages within a document ?
Hi there, I am writing my thesis and I want to move a group of 6 pages (representing a chapter) from one area of my document to another. I inserted a 'Section Break' at the end of the page preceeding the first page of my grouping, and inserted anothe
-
Ipod Touch Bricked while updating to 3.1.3
My iPod is a 2nd Gen. I have Windows 7. My update was going fine until the end, when it said that the update failed. I submitted the problem to Apple, but of course that did nothing. My iPod now is a black screen and responds to nothing. Won't turn o
-
I have set up my account on my I pad and can receive e-mails but am unable to send. I have no problem on the BT web Site All the settings seem to be ok. Using IMAP 993 incoming 465 outgoing ssl enabled . My password and user name are correct Solved!
-
Hi, title says it all. I have been doing this for years and don't know what has changed..... Reset doesn't seem to work, this includes factory! Please help.
-
HT3529 Messages does not show Add Contact
Using iPhone 4S with iOS8. When I touch Details in a message, it does not show the Add Contact, and does not allow to change the name of a group. Is this down to it being on the 4S?