1833198 Members
2688 Online
110051 Solutions
New Discussion

setup VG and LV

 
ashanabey
Advisor

setup VG and LV

Hi,

I have 2 SCSI disk /dev/sda and /dev/sdb how do I use LVM to config VG in nad LVs linux. Is it same as HPUX VG LV configration.

Thx!

Ashan
legend the heart and lend the hand
3 REPLIES 3
Shaikh Imran
Honored Contributor

Re: setup VG and LV

Hi,
Do you have LVM installed on your version
of linux ?
Then,
It is the same as in HP-UX only pv here will be /dev/sda ...etc..,
And the lv creation is as it is.

Examples if you require:
To create a volume group named test_vg using physical volumes /dev/hdk1, /dev/hdl1, and /dev/hdm1 with default physical extent size of 4MB:
#vgcreate test_vg /dev/sd[k-m]1

LVOL'S Example:
#lvcreate -i 3 -I 8 -L 100 vg00
tries to create a striped logical volume with 3 stripes, a stripesize of 8KB and a size of 100MB in the volume group named vg00. The logical volume name will be chosen by lvcreate.



Regards,



I'll sleep when i am dead.
KapilRaj
Honored Contributor

Re: setup VG and LV

I hv done this in SuSe linux. And it is similier to hpux

Command hpux Linux

pvcreate # required required
mkdir /dev/vg?? required not required
mknod required not required
vgcreate required required
lvcreate required required
newfs required required but mk_reiserfs or whatever ..
mkdir /mnt_point required required
Update /etc/fstab required required
mount /mnt_point required required

Regds,

Kaps
Nothing is impossible
Fred Ruffet
Honored Contributor

Re: setup VG and LV

It will be the same, except that vgcreate does mkdir and mknod for you.

A point : I would suggest you to have a look at XFS as a file sytem for LVM.
I've been involved in test between EXT3, reiserfs and XFS as journalized FS for Linux. My conclusions where that reiserfs ans XFS were far better than EXT3, and that XFS uses less CPU than reiserfs.
It provides similar features as vxfs, and I've been experiencing recoveries whithout problem (Windows crashing a LVM partition, vgrestore, xfs repair, and all was good).
It is IRIX journalized FS for long and is very stable.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)