No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Create a LVM2 Logical Volume with Cockpit | Create a LVM2 Logical Volume with Cockpit | ||
|setup= | |setup= | ||
Log into Cockpit. | |||
Make sure you have at least two unused block devices. If you don't | Make sure you have at least two unused block devices. If you don't | ||
Line 19: | Line 19: | ||
Make sure that these devices contain only zeros. Otherwise Cockpit | Make sure that these devices contain only zeros. Otherwise Cockpit | ||
might assume that they are in use for something and will not allow to | might assume that they are in use for something and will not allow to | ||
use them for a new | use them for a new Volume Group. | ||
|actions= | |actions= | ||
# 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. | ||
Line 28: | Line 27: | ||
# Format and mount the logical volume. | # Format and mount the logical volume. | ||
# Add the second device as a Physical Volume. | # Add the second device as a Physical Volume. | ||
# Resize the logical volume to need space from both physical volumes. | # Resize the logical volume to need space from both physical volumes. | ||
# Unmount the filesystem and delete the volume group. | # Unmount the filesystem and delete the volume group. | ||
|results= | |results= | ||
No errors should occur. | No errors should occur. | ||
}} | }} |
Latest revision as of 09:52, 23 March 2015
Description
Create a LVM2 Logical Volume with Cockpit
Setup
Log into Cockpit.
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
- Navigate to "Storage" for your machine.
- Create a Volume Group out of one of the two devices.
- Create a Plain Logical Volume that fills the volume group.
- Format and mount the logical volume.
- Add the second device as a Physical Volume.
- Resize the logical volume to need space from both physical volumes.
- Unmount the filesystem and delete the volume group.
Expected Results
No errors should occur.