[linux-lvm] lvextend problem

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

 



Hello

I have two partitions on a 80gb harddrive.

/dev/hdb1
/dev/hdb2

I have created a VG called store_vg.
$vgcreate store_vg /dev/hdb2
then
$lvcreate -lXXX -nstore_lv store_vg
creating an LV using all space left on hdb2

What I wanted to do next was adding the hdb1
without loosing the data on hdb2.

So I did.
vgextend store_vg /dev/hdb1
then
lvextend -lXXX /dev/store_vg/store_lv /dev/hdb1

But I noticed that this didnt work and when doing a
$ df. I got the same results as before. I guess this has
to do with hdb1 not being formatted (using mkfs.xfs) correctly. When
reformatting the entire LV (extended with hdb1) I got everything to work.
But all data lost.

This was more of a test, so I didn't loose any critical data. But how
should this proceedure be done correctly?

Thanks in advance
Jens Berlips




_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

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

  Powered by Linux