Birmingham mumbai


part, these snapshots are best when used as a temporary holding area when running



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


part, these snapshots are best when used as a temporary holding area when running 
tests or testing out experimental software before rolling out changes to production 
systems. During Ubuntu's installation process, you were offered the option to create 
an LVM configuration, so, therefore, you can use snapshots to test how security 
updates will affect your server if you used LVM for your root filesystem. If the new 
updates start to cause problems, you can always revert back. When you're done 
testing, you should merge or remove your snapshot.
So, why did I refer to LVM snapshots as a temporary solution and not a backup? 
First, similar to our discussion earlier, backups aren't secure if they are stored on the 
same server that's being backed up. It's always important to save backups off the 
server at least, preferably off-site. But what's worse is that if your snapshot starts 
to use up all available space in your volume group, it can get corrupted and stop 
working. Therefore, this is a feature you would use with caution, just as a means of 
testing something, and then revert back or delete the snapshot when you're done 
experimenting. Don't leave an LVM snapshot hanging around for too long.
When you create a snapshot with LVM, what happens is a new logical volume 
is created that is a clone of the original. Initially, no space is consumed by this 
snapshot. But as you run your server and manipulate files in your volume group, 
the original blocks are copied to the snapshot as you change them, to preserve the 
original logical volume. If you don't keep an eye on usage, you may lose data if you 
aren't careful and the logical volume will fill up.
To show this in an example, the following command will create a snapshot (called 
mysnapshot
) of the 
myvol1
 logical volume:
sudo lvcreate -s -n mysnapshot -L 4g vg-test/myvol1
You should see the following output:
Logical volume "mysnapshot" created.


Chapter 9

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   313   314   315   316   317   318   319   320   ...   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