linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] How to format a new hard disk using in LVM2 ?
@ 2006-06-10 15:44 Thomas
  0 siblings, 0 replies; only message in thread
From: Thomas @ 2006-06-10 15:44 UTC (permalink / raw)
  To: linux-lvm

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-10 15:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-10 15:44 [linux-lvm] How to format a new hard disk using in LVM2 ? Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).