Posts

Showing posts from 2012

Logical Volume Linux

Image
This article describes a basic logic behind a Linux logical volume manager by showing real examples of configuration and usage. Although Debian Linux will be used for this tutorial, you can also apply the same command line syntax with other Linux distributions such as Red Hat, Mandriva, SuSe Linux and others.
1. This is what we are going to do
2. Create PartitionsFor this Linux lvm example you need an unpartitioned hard disk /dev/sdb. First you need to create physical volumes. To do this you need partitions or a whole disk. It is possible to run pvcreate command on /dev/sdb, but I prefer to use partitions and from partitions I later create physical volumes.

Use your preferred partitioning tool to create partitions. In this example I have used cfdisk.


Partitions are ready to use.
3. Create physical volumesUse the pvcreate command to create physical volumes.
# pvcreate /dev/sdb1 # pvcreate /dev/sdb2 The pvdisplay command displays all physical volumes on your system.
# pvdisplay Alternativel…

NFS -Linux

Image