I am working on getting LVM on my notebook. The easiest way may be to use the whole disk except for a small /boot partition which needs to be outside the LVM but with an initrd compiled with LVM support :
What LVM does is give more flexible partitions. Just think of them as logical volumes in an extended partition (the volume group). I think that is the best way to describe them. It is also possible to add extra space to them if needed, or even add partitions to make them bigger. That is how I see it. I hope I am right. If I am not I am sure someone will correct me.
I hope this helps.
Andy.
This User Gave Thanks to dragonnefyre For This Post:
Hi all,
yes this is a linux question :) but also a LVM question.
Some time ago, I saw an posting, LVM Version 1.X is abe to handle multiple physical pathes to a disk with using md devices. Is this right ?
Now I am planing to create a san and want use linux fileservers with LVM v1.X and most... (1 Reply)
I'm setting up a CentOS 5 server that will be connected to an HP EVA4000. My previous experience is with an HP VA7400 and HP-UX. In HP-UX I can add "alternate paths" to a volume group in order to have redundant paths to the SAN via dual fiber channel HBAs just by either adding them with... (3 Replies)
Not real Linux expert but here is the problem.
Shutdown this machine and then it would not reboot.
From everything I can tell it looks like the journal file in the logical volume is corrupted. I have tried everything I can think of to get the volume mounted.
Anybody have any ideas on how... (19 Replies)
Hi,
What do you means to create so OS Linux directories under LVM?
So, I've installed my machine :
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 97943628 524316 92443984 1% /
udev 4023852 168 4023684 1% /dev... (1 Reply)
I've three partitions on /dev/sda: sda1, sda2 sda3. There is FREE space between sda2 and sda3 and sda3 ends on the last sector. sda2 and sda3 have the same number of sectors allocated and so are the exact same size.
/dev/sda2 is already part of the VG VolGroup. However, what puzzles me is that... (0 Replies)
My root file system is of type LVM. i wanna shrink it but unable to do so.
When i give the below command:
resize2fs /dev/mapper/VolGroup00-VolLog00 10000M
it messages that online shrink can't can't be done as the logical volume is mounted on /. i switched to single user mode by giving command:... (2 Replies)
Hi,
a little while ago, one of the GPT Partitioned hard disk had gone faulty in a Mirror RAID and is now successfully replaced.
here is how I did that.
1) created identical partition table on the new disk.
2) attached the mirrors using md commands.
The whole procedure is given... (5 Replies)
Hi,
I need a suggesstion i have 2 disk if i installed OS / root partition by making Lvm in one disk and data in other disk also with the lvm, means 2 different lvms.
Is making LVM partition for OS disk will the performacne will be good?
Can i make 2 different lvm one is for OS and other for... (1 Reply)
Discussion started by: Rahulne25
1 Replies
LEARN ABOUT REDHAT
pvcreate
PVCREATE(8) System Manager's Manual PVCREATE(8)NAME
pvcreate - initialize a disk or partition for use by LVM
SYNOPSIS
pvcreate [-d|--debug] [-f[f]|--force [--force]] [-y|--yes] [-h|--help] [-v|--verbose] [-V|--version] PhysicalVolume [PhysicalVolume...]
DESCRIPTION
pvcreate initializes PhysicalVolume for later use by the Logical Volume Manager (LVM). Each PhysicalVolume can be a disk partition, whole
disk, meta device, or loopback file. For DOS disk partitions, the partition id must be set to 0x8e using fdisk(8), cfdisk(8), or a equiva-
lent. For whole disk devices only the partition table must be erased, which will effectively destroy all data on that disk. This can be
done by zeroing the first sector with:
dd if=/dev/zero of=PhysicalVolume bs=512 count=1
Continue with vgcreate(8) to create a new volume group on PhysicalVolume, or vgextend(8) to add PhysicalVolume to an existing volume group.
OPTIONS
-d, --debug
Enables additional debugging output (if compiled with DEBUG).
-f, --force
Force the creation without any confirmation. You can not recreate (reinitialize) a physical volume belonging to an existing volume
group. In an emergency you can override this behaviour with -ff. In no case case can you initialize an active physical volume with
this command.
-s, --size
Overrides the size of the physical volume which is normally retrieved. Useful in rare case where this value is wrong. More useful
to fake large physical volumes of up to 2 Terabyes - 1 Kilobyte on smaller devices for testing purposes only where no real access to
data in created logical volumes is needed. If you wish to create the supported maximum, use "pvcreate -s 2147483647k PhysicalVolume
[PhysicalVolume ...]". All other LVM tools will use this size with the exception of lvmdiskscan(8)-y, --yes
Answer yes to all questions.
-h, --help
Print a usage message on standard output and exit successfully.
-v, --verbose
Gives verbose runtime information about pvcreate's activities.
-V, --version
Print the version number on standard output and exit successfully.
Example
Initialize partition #4 on the third SCSI disk and the entire fifth SCSI disk for later use by LVM:
pvcreate /dev/sdc4 /dev/sde
DIAGNOSTICS
pvcreate returns an exit code of 0 for success or > 0 for error:
1 no physical volume on command line
2 error removing existing lvmtab entry for new physical volume
3 error setting up physical volume structure
4 error writing physical volume structure to disk
5 wrong partition type identifier
6 error physical volume name
7 error getting size of physical volume
95 driver/module not in kernel
96 invalid I/O protocol version
97 error locking logical volume manager
98 invalid lvmtab (run vgscan(8))
99 invalid command line
SEE ALSO lvm(8), vgcreate(8), vgextend(8), lvcreate(8), cfdisk(8), fdisk(8), losetup(8), mdadd(8)AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com>
Heinz Mauelshagen LVM TOOLS PVCREATE(8)