Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet314/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   310   311   312   313   314   315   316   317   ...   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)

[
 238 
]
If run correctly, you should see output similar to the following:
The filesystem on /dev/mapper/vg--test-myvol1 is now 5241856 (4k) 
blocks long.
Now you should see the added space as usable when you execute 
df -h
. The coolest 
part is that we resized an entire filesystem without having to restart the server. In 
this scenario, if our users have got to the point where they have utilized the majority 
of their free space, we will be able to give them more space without disrupting their 
work.
However, you may have additional physical volumes that have yet to be assigned to 
a volume group. In my example, I created four and have only used one in the LVM 
configuration 
so far. We can add additional physical volumes to our volume group 
with the 
vgextend
 command. In my case, I'll run this against the three remaining 
drives. If you have additional physical volumes, feel free to add yours with the same 
commands I use, but substitute my device names with yours:
sudo vgextend vg-test /dev/sdc
sudo vgextend vg-test /dev/sdd
sudo vgextend vg-test /dev/sde
You should see a confirmation similar to the following:
Volume group "vg-test" successfully extended
When you run 
pvdisplay
 now, you should see the additional physical volumes 
attached that weren't shown there before. Now that we have extra disks in our LVM 
configuration, we have some additional options. We could give all the extra space to 
our logical volume right away and extend it as we did before. However, I think it's 
better to withhold some of the space from our users. That way, if our users do use up 
all our available space again, we have an emergency reserve of space we could use 
at a pinch if we needed to while we figure out the long-term solution. In addition, 
LVM snapshots (which we will discuss soon) require you to have unallocated space 
in your LVM setup.
The following example command will add an additional 10 GB to the logical volume:
sudo lvextend -L+10g /dev/vg-test/myvol1
And finally, make the free space available to the filesystem:
sudo resize2fs /dev/vg-test/myvol1


Chapter 9

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   310   311   312   313   314   315   316   317   ...   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