

Log =internal log bsize=4096 blocks=79740, version=2= sectsz=512 sunit=0 blks, lazy-count=1 VG UUID 8kutIc-bjId-rNWK-UCHo-TU2l-xkwa-idBXCj :~# mount -t xfs /dev/VolGroup01/LogVol00 /mysql_data Realtime =none extsz=4096 blocks=0, rtextents=0


Log =internal log bsize=4096 blocks=51200, version=2= sectsz=512 sunit=0 blks, lazy-count=1 Naming =version 2 bsize=4096 ascii-ci=0 ftype=1 Wiping xfs signature on /dev/VolGroup01/LogVol00.ĪCTIVE '/dev/VolGroup01/LogVol00' inherit WARNING: xfs signature detected on /dev/VolGroup01/LogVol00 at offset 0. :~# lvcreate -L +400G -n LogVol00 VolGroup01 Volume group "VolGroup01" successfully created Physical volume "/dev/sdc1" successfully created I/O size(minimum/optimal):512 bytes /512 bytesĭevice Boot Start End Sectors Size Id Type Sector size(logical/physical):512 bytes /512 bytes Many places below do not explain too much, but simply record the test process.Īdd a new disk to the test server, as shown below, the new disk is /dec/sdc :~# fdisk -lĭisk /dev/sdb:605 GiB,649613803520 bytes,1268776960 sectors In contrast, the difference is not big, just the difference in file formatting and the adjustment commands of the file system. Then I tested the LVM of the XFS file system. Recently, a MySQL database server was installed and configured under Ubuntu 16.04.5. In the past, playing LVM under Linux usually chose ext3 and ext4 file systems. It is possible to move to a new partition that uses LVM, but that won’t be something that we will cover in this article instead we are going to take the approach of setting up LVM on a fresh installation of Ubuntu 10.10.Lvm (Logical Volume Manager) Logical volume management can meet the needs of the Linux system to dynamically adjust the size of each partition to meet the needs of the server in different operating periods. Setting up LVM in Ubuntuįirst thing to know about using LVM is there is no easy way to convert your existing traditional partitions to logical volumes. If you need easy expansion or want to combine multiple hard drives into a single pool of storage then LVM may be what you have been looking for. If you are using Ubuntu on a laptop with only one internal hard drive and you don’t need extended features like live snapshots, then you may not need LVM.
#Ubuntu logical volume manager 16.04 server install#
Some distributions, like Fedora, install with LVM by default. The first thing your should consider before setting up LVM is what you want to accomplish with your disks and partitions. For example, Ext3 does not have support for live snapshots, but if you’re using LVM you have the ability to take a snapshot of your logical volumes without unmounting the disk. Because volume groups and logical volumes aren’t physically tied to a hard drive, it makes it easy to dynamically resize and create new disks and partitions. In addition, LVM can give you features that your file system is not capable of doing.
