< Return to Video

Logical Volume Management - What is LVM & how to use it (and WHY you should use it)

  • 0:00 - 0:02
    hello it's dorian and today i'm going to
  • 0:02 - 0:04
    cover logical volume management
  • 0:04 - 0:07
    or lvms i'm going to cover what it is
  • 0:07 - 0:10
    how to use it the basics and why you
  • 0:10 - 0:11
    should use it
  • 0:11 - 0:16
    so let's get started
  • 0:16 - 0:20
    [Music]
  • 0:20 - 0:22
    now i'm sure many of you have run into
  • 0:22 - 0:24
    the dreaded low disk space notification
  • 0:24 - 0:26
    and then you have to you know start
  • 0:26 - 0:28
    going through your downloads delete all
  • 0:28 - 0:30
    your large files delete your games or
  • 0:30 - 0:30
    whatnot
  • 0:30 - 0:32
    and then you have to think about
  • 0:32 - 0:34
    expanding so are you going to add
  • 0:34 - 0:36
    another hard drive and mount your home
  • 0:36 - 0:39
    partition to it or
  • 0:39 - 0:42
    start moving files over to there or are
  • 0:42 - 0:44
    you going to buy a larger drive copy all
  • 0:44 - 0:46
    your partitions over then extend the
  • 0:46 - 0:47
    partitions
  • 0:47 - 0:49
    lots of choices lots of decisions to
  • 0:49 - 0:51
    make there but one of the things you
  • 0:51 - 0:52
    could do
  • 0:52 - 0:55
    is install your linux distribution on an
  • 0:55 - 0:56
    lvm partition
  • 0:56 - 0:58
    now when you first read about lvm it
  • 0:58 - 1:00
    kind of sounds like a raid array where
  • 1:00 - 1:02
    you have multiple disks and the data is
  • 1:02 - 1:04
    spanned across that
  • 1:04 - 1:07
    in a way yeah okay it can be but it
  • 1:07 - 1:09
    doesn't provide any redundancy or
  • 1:09 - 1:11
    anything but it does extend your
  • 1:11 - 1:13
    partitions across multiple disks similar
  • 1:13 - 1:14
    to
  • 1:14 - 1:16
    raid and what you can do is just keep
  • 1:16 - 1:17
    adding disks to
  • 1:17 - 1:20
    continue to expand that partition on the
  • 1:20 - 1:20
    fly
  • 1:20 - 1:22
    so in the description down below i've
  • 1:22 - 1:24
    got a link to a lvm
  • 1:24 - 1:26
    cheat sheet and it basically goes
  • 1:26 - 1:27
    through what i'm going to go through
  • 1:27 - 1:27
    today
  • 1:27 - 1:30
    step by step with the commands and you
  • 1:30 - 1:31
    can follow along with that if you want
  • 1:31 - 1:33
    watch the video at the same time
  • 1:33 - 1:33
    whatever
  • 1:33 - 1:35
    and i have it in three different formats
  • 1:35 - 1:37
    so you can print it up and
  • 1:37 - 1:39
    use it as a hard copy but to get started
  • 1:39 - 1:40
    what is
  • 1:40 - 1:43
    lvm well what it does is it'll take a
  • 1:43 - 1:45
    group of physical disks and create a
  • 1:45 - 1:45
    volume
  • 1:45 - 1:48
    group and then from within that volume
  • 1:48 - 1:48
    group
  • 1:48 - 1:51
    you create logical volumes so you can
  • 1:51 - 1:52
    have your
  • 1:52 - 1:54
    swap partition your root partition and a
  • 1:54 - 1:55
    home partition
  • 1:55 - 1:57
    then once you start running out of room
  • 1:57 - 1:58
    it's just a matter of adding
  • 1:58 - 2:01
    another disk and then you can expand
  • 2:01 - 2:02
    your volume group
  • 2:02 - 2:04
    and then within the volume group you can
  • 2:04 - 2:05
    expand your
  • 2:05 - 2:07
    logical volumes so i'm going to go
  • 2:07 - 2:09
    through that right now and show you
  • 2:09 - 2:12
    what i have here is a basic
  • 2:12 - 2:15
    install of ubuntu i didn't do anything
  • 2:15 - 2:17
    other than add a couple of favorites and
  • 2:17 - 2:19
    install g parted
  • 2:19 - 2:21
    so you can see here this is the main
  • 2:21 - 2:23
    hard drive it has an efi system
  • 2:23 - 2:25
    partition and the lvm partition
  • 2:25 - 2:27
    now i set this when i installed it it
  • 2:27 - 2:29
    was the regular install
  • 2:29 - 2:32
    just like any other install except you
  • 2:32 - 2:33
    would click on the
  • 2:33 - 2:35
    advanced button and then there's an
  • 2:35 - 2:37
    option here to
  • 2:37 - 2:40
    make it an lvm partition you can also
  • 2:40 - 2:42
    encrypt it with a password
  • 2:42 - 2:43
    that's up to you if you want to do that
  • 2:43 - 2:45
    or not i don't do that because it
  • 2:45 - 2:47
    complicates things and if you're trying
  • 2:47 - 2:48
    to fix something
  • 2:48 - 2:51
    and it can't access it it just causes
  • 2:51 - 2:52
    another
  • 2:52 - 2:55
    layer of issues but you can turn that on
  • 2:55 - 2:57
    if you want to that's completely up to
  • 2:57 - 2:57
    you
  • 2:57 - 2:59
    and then you just go ahead and proceed
  • 2:59 - 3:01
    with the install like you normally would
  • 3:01 - 3:03
    if you're trying to convert an existing
  • 3:03 - 3:04
    system into lvm
  • 3:04 - 3:08
    there is a way to do it but it involves
  • 3:08 - 3:09
    creating a
  • 3:09 - 3:11
    lvm and copying your existing files over
  • 3:11 - 3:13
    to it and then changing some
  • 3:13 - 3:15
    configurations to make it boot properly
  • 3:15 - 3:17
    and then deleting the old one
  • 3:17 - 3:21
    it's not ideal it can get messy and
  • 3:21 - 3:21
    confusing
  • 3:21 - 3:23
    and sometimes it just won't work
  • 3:23 - 3:25
    depending on how your system is set up
  • 3:25 - 3:28
    so i would say just start fresh clean
  • 3:28 - 3:30
    install with lvm
  • 3:30 - 3:32
    from the beginning so this is a fresh
  • 3:32 - 3:33
    install
  • 3:33 - 3:35
    i mean there's a lot of free space and
  • 3:35 - 3:36
    there isn't even a lot of stuff
  • 3:36 - 3:39
    installed here but let's just say i'm
  • 3:39 - 3:41
    starting to run out of room on my lvm
  • 3:41 - 3:43
    partition it's full of
  • 3:43 - 3:45
    games movies music and what have you so
  • 3:45 - 3:48
    what i'm going to do is add another
  • 3:48 - 3:50
    hard drive into my computer which i have
  • 3:50 - 3:51
    done so if i go
  • 3:51 - 3:57
    down here i have sdb so i have a 223 gig
  • 3:57 - 4:00
    ssd in here and i added another 120 gig
  • 4:00 - 4:02
    shows up as 111 but
  • 4:02 - 4:04
    this is what i added into my system and
  • 4:04 - 4:06
    it doesn't matter what's on it because
  • 4:06 - 4:07
    you're going to wipe it
  • 4:07 - 4:09
    and everything anyways so i just have
  • 4:09 - 4:11
    two ext4 partitions in here
  • 4:11 - 4:12
    so the first thing you're going to want
  • 4:12 - 4:14
    to do is wipe everything out
  • 4:14 - 4:16
    that's on it you could do it with fdisk
  • 4:16 - 4:19
    but if you're already running a linux
  • 4:19 - 4:21
    distribution you might as well just use
  • 4:21 - 4:23
    g parted or some type of graphical
  • 4:23 - 4:24
    application like this
  • 4:24 - 4:29
    so basically i'm just going to
  • 4:29 - 4:32
    delete both of these and i'm going to
  • 4:32 - 4:34
    create a new partition take up all the
  • 4:34 - 4:34
    space
  • 4:34 - 4:38
    and it's going to be an lvm to
  • 4:38 - 4:41
    pv as it shows up in g parted it might
  • 4:41 - 4:44
    just say linux lvm and whatever
  • 4:44 - 4:46
    um program you're using but the
  • 4:46 - 4:47
    important thing is
  • 4:47 - 4:50
    you're creating the lvm file system so
  • 4:50 - 4:51
    add that
  • 4:51 - 4:53
    apply get that done and then we can
  • 4:53 - 4:55
    finally get started and start extending
  • 4:55 - 4:56
    our space
  • 4:56 - 4:57
    so the next thing you're going to do is
  • 4:57 - 4:59
    open up a terminal window and i know
  • 4:59 - 5:01
    a lot of people are going oh no not the
  • 5:01 - 5:03
    terminal but it's not
  • 5:03 - 5:05
    it's not that hard and you you can use
  • 5:05 - 5:07
    that cheat sheet that i have and
  • 5:07 - 5:09
    it's not a big deal i'll walk you
  • 5:09 - 5:10
    through everything here
  • 5:10 - 5:11
    so some of the commands you're going to
  • 5:11 - 5:13
    use here are
  • 5:13 - 5:16
    pvs and
  • 5:16 - 5:18
    before i get started anything that you
  • 5:18 - 5:20
    use here is going to be
  • 5:20 - 5:23
    sudo so you can do sudo
  • 5:23 - 5:26
    su to become root so you don't have to
  • 5:26 - 5:27
    keep typing it but
  • 5:27 - 5:29
    you do have to be root to be able to do
  • 5:29 - 5:31
    it so now this is listing our physical
  • 5:31 - 5:33
    volumes this is whatever disks that you
  • 5:33 - 5:35
    have in your system that have an lvm
  • 5:35 - 5:36
    partition
  • 5:36 - 5:40
    so you can see sda2 is the
  • 5:40 - 5:42
    partition that we're actually using for
  • 5:42 - 5:43
    ubuntu
  • 5:43 - 5:45
    and you can see here it's mounted as vg
  • 5:45 - 5:46
    ubuntu
  • 5:46 - 5:49
    which is here another command to show
  • 5:49 - 5:49
    what's
  • 5:49 - 5:53
    currently going on is you could do vg's
  • 5:53 - 5:56
    and it's going to show you the vg ubuntu
  • 5:56 - 5:59
    volume group and it is using one
  • 5:59 - 6:00
    physical volume with
  • 6:00 - 6:04
    one disk and it contains two logical
  • 6:04 - 6:04
    volumes
  • 6:04 - 6:07
    so let's go ahead and look at lvs
  • 6:07 - 6:10
    logical volumes so the logical volumes
  • 6:10 - 6:11
    the two that are listed up here
  • 6:11 - 6:14
    are root and swap so i have the root
  • 6:14 - 6:15
    partition
  • 6:15 - 6:18
    which is 222 gigs and i have a swap
  • 6:18 - 6:19
    partition
  • 6:19 - 6:21
    which for some reason ubuntu only made
  • 6:21 - 6:24
    one gig and i'm going to expand that
  • 6:24 - 6:26
    there's actually a difference in
  • 6:26 - 6:28
    expanding a swap partition than a
  • 6:28 - 6:30
    regular partition so i'm going to go
  • 6:30 - 6:32
    through those steps as well
  • 6:32 - 6:34
    so now if you've used fdisk or another
  • 6:34 - 6:36
    utility and it is
  • 6:36 - 6:39
    not showing up here
  • 6:39 - 6:40
    then the command you're going to want to
  • 6:40 - 6:42
    use is pv create so
  • 6:42 - 6:44
    physical volume create and you're
  • 6:44 - 6:46
    basically just going to
  • 6:46 - 6:50
    tell it which physical volume you want
  • 6:50 - 6:50
    added
  • 6:50 - 6:52
    now this isn't going to do anything
  • 6:52 - 6:54
    because it was already successfully
  • 6:54 - 6:55
    created
  • 6:55 - 6:58
    so if i do sudo pvs
  • 6:58 - 7:00
    you can see it's there it was there
  • 7:00 - 7:02
    before it's not assigned to any
  • 7:02 - 7:05
    volume group but if it didn't show up
  • 7:05 - 7:07
    the first time it should now show up
  • 7:07 - 7:08
    okay so at this point we have two
  • 7:08 - 7:11
    physical volumes and we want to
  • 7:11 - 7:14
    extend our volume group across both
  • 7:14 - 7:16
    disks so now what you're going to do
  • 7:16 - 7:17
    here is
  • 7:17 - 7:21
    sudo vg extend vg ubuntu
  • 7:21 - 7:23
    because that is the volume group we want
  • 7:23 - 7:24
    to extend
  • 7:24 - 7:27
    and then dev sdb1
  • 7:27 - 7:31
    because we want vg ubuntu to extend onto
  • 7:31 - 7:34
    sdb1 so we'll do that and successfully
  • 7:34 - 7:35
    extend it
  • 7:35 - 7:38
    so we can go ahead and do pvs
  • 7:38 - 7:41
    and now we can see that the volume group
  • 7:41 - 7:44
    is on both physical hard drives so now
  • 7:44 - 7:46
    at this point we haven't changed
  • 7:46 - 7:48
    anything with the
  • 7:48 - 7:49
    root and swap partitions they are the
  • 7:49 - 7:51
    same size they are both
  • 7:51 - 7:53
    still on sda2 the original hard drive
  • 7:53 - 7:55
    what we have to do now is
  • 7:55 - 7:57
    extend those into the new space that is
  • 7:57 - 7:59
    available on the second hard drive
  • 7:59 - 8:02
    now as i mentioned before i only had
  • 8:02 - 8:05
    the one gig of swap partition which to
  • 8:05 - 8:05
    me
  • 8:05 - 8:08
    is is fine i actually don't use
  • 8:08 - 8:11
    any but if you wanted to resize a swap
  • 8:11 - 8:12
    partition
  • 8:12 - 8:14
    this is how you're going to do it first
  • 8:14 - 8:16
    thing you're going to do is
  • 8:16 - 8:19
    turn the swap off so the command is swap
  • 8:19 - 8:19
    off
  • 8:19 - 8:23
    dash a which will turn off the swap
  • 8:23 - 8:24
    all swap partitions because you could
  • 8:24 - 8:26
    have more than one and now
  • 8:26 - 8:28
    we can resize that swap partition so
  • 8:28 - 8:31
    let's have a look at the
  • 8:31 - 8:33
    logical volumes the lvs and you can see
  • 8:33 - 8:35
    that swap one
  • 8:35 - 8:37
    is one gig we need to extend that
  • 8:37 - 8:39
    logical volume now that we have
  • 8:39 - 8:40
    additional space
  • 8:40 - 8:42
    on the second drive so now we're going
  • 8:42 - 8:44
    to resize the logical volume of the swap
  • 8:44 - 8:45
    partition
  • 8:45 - 8:46
    but one thing that you're going to need
  • 8:46 - 8:48
    to know is the path of
  • 8:48 - 8:52
    where that volume is physically on the
  • 8:52 - 8:52
    drive
  • 8:52 - 8:56
    so i'll explain this here by running lv
  • 8:56 - 8:59
    display so logical volume display shows
  • 8:59 - 9:01
    you a lot of information
  • 9:01 - 9:04
    about the logical volumes in your volume
  • 9:04 - 9:04
    group
  • 9:04 - 9:08
    now you can see here the swap partition
  • 9:08 - 9:09
    is
  • 9:09 - 9:12
    here so slash dev slash vg ubuntu
  • 9:12 - 9:16
    so vg ubuntu is acting as a hard drive
  • 9:16 - 9:19
    normally you'd have dev slash dev sda1
  • 9:19 - 9:20
    and whatnot
  • 9:20 - 9:22
    well this is fiji ubuntu because it's a
  • 9:22 - 9:24
    volume group and then swap one
  • 9:24 - 9:26
    within that volume group if you found
  • 9:26 - 9:28
    that confusing don't worry about it
  • 9:28 - 9:30
    the biggest thing you need to know is
  • 9:30 - 9:31
    you need to know this path in order to
  • 9:31 - 9:34
    resize the partition
  • 9:34 - 9:38
    so now we're going to do lv resize
  • 9:38 - 9:41
    and the path of what you want to
  • 9:41 - 9:43
    extend and you're going to do dash
  • 9:43 - 9:44
    capital
  • 9:44 - 9:45
    l and then you're going to use disk
  • 9:45 - 9:48
    space here like gigabytes megabytes so i
  • 9:48 - 9:49
    want an additional
  • 9:49 - 9:52
    seven gigabytes so i do plus seven g you
  • 9:52 - 9:54
    could do
  • 9:54 - 9:56
    m if you want an extra seven megabytes
  • 9:56 - 9:57
    for some reason but
  • 9:57 - 10:00
    i'm using gigabytes so i want an extra
  • 10:00 - 10:01
    seven gigabytes
  • 10:01 - 10:03
    added to the current size of that swap
  • 10:03 - 10:05
    partition so i'm going to do that
  • 10:05 - 10:07
    and the logical volume of swap one
  • 10:07 - 10:09
    successfully resized
  • 10:09 - 10:12
    so you can see it went from 976 megs to
  • 10:12 - 10:14
    7.95 gigs
  • 10:14 - 10:16
    close enough to eight gigs now because
  • 10:16 - 10:20
    it's a swap partition you need to do
  • 10:20 - 10:23
    make swap and you're going to
  • 10:23 - 10:26
    put that same path again it's going to
  • 10:26 - 10:26
    format
  • 10:26 - 10:28
    it no it's not going to format it
  • 10:28 - 10:29
    because
  • 10:29 - 10:33
    you also need to be sudo all right
  • 10:33 - 10:36
    so that's done and now we can do swap on
  • 10:36 - 10:37
    again
  • 10:37 - 10:41
    dash a and if we look at our system
  • 10:41 - 10:42
    monitor
  • 10:42 - 10:45
    our swap is now showing as eight gigs so
  • 10:45 - 10:46
    perfect
  • 10:46 - 10:49
    now that's small partitions that is not
  • 10:49 - 10:51
    ext4 root partitions that's just
  • 10:51 - 10:53
    something i wanted to cover because it's
  • 10:53 - 10:54
    a different way to do it because you
  • 10:54 - 10:55
    have to unmount
  • 10:55 - 10:58
    recreate the swap file system and
  • 10:58 - 10:58
    remount
  • 10:58 - 11:01
    resizing the root partition is actually
  • 11:01 - 11:02
    a little bit easier
  • 11:02 - 11:07
    so again let's just do lv display
  • 11:07 - 11:10
    and this is the one we want to resize so
  • 11:10 - 11:11
    i'm just going to copy that
  • 11:11 - 11:14
    and now here we're going to sudo lv
  • 11:14 - 11:15
    resize
  • 11:15 - 11:18
    just like before and just like before i
  • 11:18 - 11:18
    could do
  • 11:18 - 11:23
    dash l and 100 gigs
  • 11:23 - 11:26
    and then the path now
  • 11:26 - 11:29
    you'll notice before i put the options
  • 11:29 - 11:29
    here
  • 11:29 - 11:31
    after it doesn't really matter if you
  • 11:31 - 11:33
    put it before or after it will
  • 11:33 - 11:34
    understand so i just want to show you
  • 11:34 - 11:35
    that
  • 11:35 - 11:38
    it doesn't matter how you do it and this
  • 11:38 - 11:39
    should actually be
  • 11:39 - 11:41
    a plus 100 gigs but i'm not going to do
  • 11:41 - 11:44
    this what i want to do is take up
  • 11:44 - 11:46
    all the available remaining space on
  • 11:46 - 11:47
    that drive because i took
  • 11:47 - 11:50
    seven gigs of the new drive for the swap
  • 11:50 - 11:51
    partition
  • 11:51 - 11:53
    so now the rest of the space i want to
  • 11:53 - 11:54
    take it all up
  • 11:54 - 11:56
    so i'm going to change this to lowercase
  • 11:56 - 11:58
    l and then i'm going to go
  • 11:58 - 12:02
    plus 100 percent
  • 12:02 - 12:05
    free this means
  • 12:05 - 12:08
    i want to take 100 of the remaining free
  • 12:08 - 12:09
    space
  • 12:09 - 12:12
    on the new drive the the new
  • 12:12 - 12:15
    volume group which is now extended onto
  • 12:15 - 12:16
    the new drive which gave us
  • 12:16 - 12:19
    extra free space so now i want to resize
  • 12:19 - 12:20
    this
  • 12:20 - 12:23
    root partition to take up all of it you
  • 12:23 - 12:25
    can see what is available
  • 12:25 - 12:29
    here also by doing a
  • 12:29 - 12:33
    zuru pvs
  • 12:33 - 12:36
    and you can see here there's 104 gigs
  • 12:36 - 12:40
    free on the volume group because we've
  • 12:40 - 12:41
    taken
  • 12:41 - 12:43
    seven away for the swap partition so
  • 12:43 - 12:44
    this command down here
  • 12:44 - 12:48
    in the other window is going to add 104
  • 12:48 - 12:50
    gigs to our total free space
  • 12:50 - 12:53
    so you can see here the size of
  • 12:53 - 12:57
    root 218 gigs 202 gigs free
  • 12:57 - 12:59
    so we're going to go ahead and run our
  • 12:59 - 13:00
    resize command
  • 13:00 - 13:02
    and you can see root has changed from
  • 13:02 - 13:03
    222 gigs
  • 13:03 - 13:07
    to 326 gigs there's one thing that i
  • 13:07 - 13:07
    forgot
  • 13:07 - 13:09
    because i'm not reading my own notes on
  • 13:09 - 13:10
    my cheat sheet
  • 13:10 - 13:12
    is you have to resize the file system
  • 13:12 - 13:14
    within the logical volume as well
  • 13:14 - 13:17
    so there's a dash r that has to go in
  • 13:17 - 13:18
    there as well
  • 13:18 - 13:21
    so just run that and it will also
  • 13:21 - 13:24
    resize the file system within the
  • 13:24 - 13:25
    logical volume
  • 13:25 - 13:28
    so now if we go ahead and
  • 13:28 - 13:32
    run this again
  • 13:32 - 13:35
    we can see here that root
  • 13:35 - 13:38
    used to be 218 gigs with 202 free
  • 13:38 - 13:41
    and it is now 321 gigs with
  • 13:41 - 13:45
    301 gigs free so now we have extended
  • 13:45 - 13:48
    our partition for root and swap across
  • 13:48 - 13:50
    two physical drives
  • 13:50 - 13:52
    so now going back to g parted here when
  • 13:52 - 13:53
    this drive
  • 13:53 - 13:56
    fills up and it's out of space the data
  • 13:56 - 13:57
    is just going to start
  • 13:57 - 14:01
    spilling over into sdb1 the new hard
  • 14:01 - 14:03
    drive that you just added you can see
  • 14:03 - 14:06
    here the mount point for the lvm
  • 14:06 - 14:07
    partition
  • 14:07 - 14:10
    is vg ubuntu and if you look on sdb
  • 14:10 - 14:13
    the mount point is also vg ubuntu and
  • 14:13 - 14:15
    then after this if you fill this disk up
  • 14:15 - 14:17
    you do the same thing and you just add
  • 14:17 - 14:19
    another drive and extend onto that one
  • 14:19 - 14:20
    as well
  • 14:20 - 14:23
    however if that happens on the second
  • 14:23 - 14:24
    drive you've added
  • 14:24 - 14:27
    i would strongly consider getting a much
  • 14:27 - 14:28
    larger hard drive
  • 14:28 - 14:30
    if you're going to add a third one so
  • 14:30 - 14:32
    that it doesn't happen again
  • 14:32 - 14:35
    so this is very handy for if you're
  • 14:35 - 14:36
    running a server
  • 14:36 - 14:39
    and you're just collecting data if you
  • 14:39 - 14:40
    have a lot of pictures
  • 14:40 - 14:43
    and you have a computer that you just
  • 14:43 - 14:45
    use for working on pictures or videos
  • 14:45 - 14:48
    and you just keep you know collecting
  • 14:48 - 14:49
    large files
  • 14:49 - 14:51
    over and over and you just run out of
  • 14:51 - 14:53
    space well throw in another hard drive
  • 14:53 - 14:53
    and
  • 14:53 - 14:56
    run out of space throw in another hard
  • 14:56 - 14:59
    drive now the big downside to this is
  • 14:59 - 15:01
    shrinking going going the opposite if
  • 15:01 - 15:03
    you want to remove one of your physical
  • 15:03 - 15:04
    disks
  • 15:04 - 15:07
    it's a little more complicated and i'm
  • 15:07 - 15:08
    not going to go through it because i
  • 15:08 - 15:10
    have tried it and
  • 15:10 - 15:12
    three out of four times the system
  • 15:12 - 15:14
    wouldn't boot because you can
  • 15:14 - 15:17
    shrink your volumes and you can move the
  • 15:17 - 15:19
    data off the physical disks
  • 15:19 - 15:22
    but there's still a really good chance
  • 15:22 - 15:23
    that you're gonna lose data
  • 15:23 - 15:25
    and something's gonna go wrong and three
  • 15:25 - 15:27
    out of four times
  • 15:27 - 15:28
    something went wrong and the system
  • 15:28 - 15:30
    wouldn't boot so i just kept
  • 15:30 - 15:32
    trying and trying and trying actually i
  • 15:32 - 15:33
    did try it
  • 15:33 - 15:36
    another time so three out of five times
  • 15:36 - 15:40
    it failed two succeeded but it took some
  • 15:40 - 15:43
    messing around with and i don't know
  • 15:43 - 15:44
    it's not it's not something you want to
  • 15:44 - 15:46
    do this is better for just
  • 15:46 - 15:49
    expanding and expanding so all this
  • 15:49 - 15:53
    in a nutshell well a long nutshell but
  • 15:53 - 15:55
    i tried to keep it short and simple all
  • 15:55 - 15:56
    this is how you would
  • 15:56 - 15:59
    continue expanding your drives with lvm
  • 15:59 - 16:00
    key points are
  • 16:00 - 16:02
    start with an lvm to begin with right
  • 16:02 - 16:05
    off the bat get a larger hard drive than
  • 16:05 - 16:06
    you think you would need if you're
  • 16:06 - 16:07
    adding one
  • 16:07 - 16:10
    and remember that shrinking is not a
  • 16:10 - 16:13
    good option and terrible things can
  • 16:13 - 16:14
    happen
  • 16:14 - 16:16
    and yeah i hope this helps you out so
  • 16:16 - 16:17
    don't forget to subscribe
  • 16:17 - 16:19
    don't forget to like the video share it
  • 16:19 - 16:21
    on your social media and until next time
  • 16:21 - 16:22
    bash on
  • 16:22 - 16:26
    [Music]
  • 16:29 - 16:33
    [Music]
Title:
Logical Volume Management - What is LVM & how to use it (and WHY you should use it)
Description:

more » « less
Video Language:
English
Duration:
16:34

English subtitles

Revisions Compare revisions