[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: partitioning hard drive & /usr is already 96% full



Hans Wilmer <lee@yun.yagibdah.de> writes:

> How what about LVM? Can it make things easier? If you can, for
> example, just throw in a new disk, create a partition on it and
> somehow add the additional space to an existing partition, dealing
> with running out of disk space would be easy.

Yes, that is possible with LVM, too.  Just add the new disk, make it a
physical volume and add that physical volume to your volume group.
This would look like this, assuming you add a second SCSI disk,
/dev/sdb.

    # fdisk /dev/sdb
        /* create one partition /dev/sdb1 covering the whoqle disk */
    # pvcreate /dev/sdb1
    # vgextend vg0 /dev/sdb1

In fact, it's not even necessary to partition your drive at all,
i.e. you can pvcreate /dev/sdb.


urs



Reply to: