Create Logical volume
First we need to find out which disks and partitions are being used. So we could use the following commands
#df -h [This will display which partitions are being used]
#fdisk -l [This will show which disks are being used and disks that are not mounted.]
Now we can start the lvm implementation,we have two unused partitions /dev/sda3 and /dev/sda4
In logical volume creation,need to the following sequence
1. create physical volume
2. create volume group
3. create logical volume
1.Create physical volume
Verify the volumes with pvdisplay command
2.Create volume group
#vgcreate test_volume /dev/sda3 /dev/sda4
#vgchange -a y test_volume [To activate the volume]
Verify the group with vgdisplay
3.Now create logical volume
#lvcreate -L5G -n test_logical test_volume
test_logical –name of logical volume
test_volume–name of volume group
Verify the logical volumes with lvdisplay
Create filesystem for this logical volume
To use this file system, we need to mount and add to /etc/fstab to use permanently.
#mount /dev/test_volume/test_logical /mnt
add the following entry to /etc/fstab
/dev/test_volume/test_logical /mnt ext3 defaults 0 0
Fast/Flexible Linux OS Recovery
On Demand Now
In this live one-hour webinar, learn how to enhance your existing backup strategies for complete disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible full-system recovery solution for UNIX and Linux systems.
Join Linux Journal's Shawn Powers and David Huffman, President/CEO, Storix, Inc.
Free to Linux Journal readers.Register Now!
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- Chris Birchall's Re-Engineering Legacy Software (Manning Publications)
- The Italian Army Switches to LibreOffice
- Linux Mint 18
- Petros Koutoupis' RapidDisk
- ServersCheck's Thermal Imaging Camera Sensor
- Oracle vs. Google: Round 2
- The FBI and the Mozilla Foundation Lock Horns over Known Security Hole
- Privacy and the New Math
Until recently, IBM’s Power Platform was looked upon as being the system that hosted IBM’s flavor of UNIX and proprietary operating system called IBM i. These servers often are found in medium-size businesses running ERP, CRM and financials for on-premise customers. By enabling the Power platform to run the Linux OS, IBM now has positioned Power to be the platform of choice for those already running Linux that are facing scalability issues, especially customers looking at analytics, big data or cloud computing.
￼Running Linux on IBM’s Power hardware offers some obvious benefits, including improved processing speed and memory bandwidth, inherent security, and simpler deployment and management. But if you look beyond the impressive architecture, you’ll also find an open ecosystem that has given rise to a strong, innovative community, as well as an inventory of system and network management applications that really help leverage the benefits offered by running Linux on Power.Get the Guide