Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet309/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   305   306   307   308   309   310   311   312   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 233 
]
I think it's always best to work through an example when it comes to learning a new 
concept, so I'll walk you through such a scenario. In my case, I just created a local 
Ubuntu Server VM on my machine via VirtualBox and then I added four additional 
20 GB disks after I installed the distribution. Virtualization is a good way to play 
around with learning LVM if you don't have a server available with multiple free 
physical disks.
To get started with LVM on a server that isn't already using it, you'll first need to 
have at least one additional (unused) volume, and install the required packages, 
which may or may not be present on your server. To find out if the required 
lvm2
 
package is installed on your server, execute the following command:
apt search lvm2 |grep installed
If it's not present (the output of the previous command doesn't include 
[installed,automatic]
), the following command will install the 
lvm2
 package and 
its dependencies:
sudo apt install lvm2
Next, we'll need to take an inventory of the disks we have available to work with. 
You can list them with the 
fdisk -l
 command as we've done several times now. In 
my case, I've added a few new volumes to my server, so now I have 
/dev/sdb

/dev/
sdc

/dev/sdd
, and 
/dev/sde
 to work with. The names of your disks will be different 
depending on your hardware or virtualization platform, so make sure to adjust all of 
the following commands accordingly. 
To begin, we'll need 
to configure each disk to be used with LVM, by setting up each 
one as a physical volume. Note that we don't need to format a storage device, or even 
use 
fdisk
 to set it up before beginning the process of setting up LVM. Formatting 
actually comes later in this particular process. The 
pvcreate
 command is the first 
command we run to configure our disks for use with LVM. Therefore, we'll need to 
run the 
pvcreate
 command against all of the drives we wish to use for this purpose. 
For example, if I had four disks I wanted to use with LVM, I would run the following 
to set them up:
sudo pvcreate /dev/sdb
sudo pvcreate /dev/sdc
sudo pvcreate /dev/sdd
sudo pvcreate /dev/sde
And so on, for however many disks you plan on using.


Managing Storage Volumes

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   305   306   307   308   309   310   311   312   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish