How to format a new hard disk using in LVM2 ?

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

 



Given:
hdc is a 80G hard disk.
Only use 20G and mount as backup
===============================
Steps:
# Phyical Volume creation of hdc
pvcreate /dev/hdc

# Volume group creation as name VolGroup01
vgcreate VolGroup01 /dev/hdc

# Logical Volume Group creation as name LogVol00
lvcreate -n LogVol00 --size 20G VolGroup01

# Format as EXT3
mke2fs -j /dev/VolGroup01/LogVol00

# Mount as backup
mkdir /backup
mount /dev/VolGroup01/LogVol00 /backup

# Check result with
df -h
pvdisplay
vgdisplay
lvdisplay

Just my two cents.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux