From Fedora Project Wiki

No edit summary
No edit summary
Line 22: Line 22:


|actions=
|actions=
# Log in as "root"
# Navigate to "Storage" for your machine.
# Navigate to "Storage" for your machine.
# Create a Volume Group out of '''one''' of the two devices.
# Create a Volume Group out of '''one''' of the two devices.

Revision as of 10:10, 10 September 2014

Description

Create a LVM2 Logical Volume with Cockpit

Setup

Open Cockpit in your browser as described here.

Make sure you have at least two unused block devices. If you don't have enough real ones (such as USB sticks), you can make loopback devices like so:

# dd if=/dev/zero of=/disk1.img bs=1M count=100
# losetup -f /disk1.img

# dd if=/dev/zero of=/disk2.img bs=1M count=100
# losetup -f /disk2.img

These devices should imediately show up in Cockpit in the "Other Devices" section.

Make sure that these devices contain only zeros. Otherwise Cockpit might assume that they are in use for something and will not allow to use them for a new Volume Group.

How to test

  1. Navigate to "Storage" for your machine.
  2. Create a Volume Group out of one of the two devices.
  3. Create a Plain Logical Volume that fills the volume group.
  4. Format and mount the logical volume.
  5. Add the second device as a Physical Volume.
  6. Resize the logical volume to need space from both physical volumes. (This does not yet resize the filesystem on it, see here.)
  7. Unmount the filesystem and delete the volume group.

Expected Results

No errors should occur.