[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] how to online resize pv?



this does not work for me.

no partition table on vda:

# parted -l
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/system-root: 21,5GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0,00B  21,5GB  21,5GB  xfs


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/system-boot: 210MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0,00B  210MB  210MB  ext2


Error: /dev/vda: unrecognised disk label

# grub-install /dev/vda
/usr/sbin/grub-setup: error: unable to identify a filesystem in hd0; safety check can't be performed.

sure as there is no filesystem on sda.

Greets
Stefan

Am 30.07.2012 23:47, schrieb Stuart D Gathman:
On 07/30/2012 04:45 PM, Stefan Priebe expounded in part:

Only when no partition is open.  That is one reason why LVM is an
improvement over partition tables.  You don't have to use a partition
table, just use the entire device as a PV.


that was my idea too but grub2 then refuses to install onto /dev/vda.
It says it cannot find a filesystem on hd0 which is /dev/vda.
Grub2 supports LV boot partition now.  Most distro installers do not
support this by default, however.  I set up my wife's laptop to boot
from LV.  Here is an outline:

http://forums.fedoraforum.org/showthread.php?t=264174

The key line is adding GRUB_PRELOAD_MODULES=lvm so that grub can find
the LV.  If your installer doesn't support it, you have to create the
LVs, and copy filesystems from an installed system on another drive,
then run grub2-install.

I haven't tried Fedora 17 installer, to see if it can install grub2 with
no partition table.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]