Re: [linux-lvm] hello sir

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

 



Hello!

seaward@eyou.com (seaward@eyou.com) wrote 32 lines:

>     Two:after creating /dev/hda3 and changing it to type 0x8e by fdisk,why
> does pvcreate say it is a invalid partition?

To be able to read in the patition table of a HD in *all*
cases, the complete HD must be completely umounted.  No Swap,
no /-partition, nothing may be in use or just allocated.

Otherwise it will work in some cases but not in other cases,
and if you are very unlucky, you could lose data.  (But then,
if you can create partitions, you can also run
dd if=/dev/zero of=/dev/hda)

> But pvcreate can process it after reboot the system.

This happens eg. during the boot process, so rebooting can
be needed there, if you have a single-HD-system and are not
running completely from the ramdisk.

> However, it is ok for a existing partition(needn't create
> but need change type).

In this case, it seems, your kernel had the good luck of
picking up the change, even without completely umounting and
de-allocating the HD.

At least, that's my best understanding based on personal
experience and discussion on several mailing lists.

-Wolfgang

_______________________________________________
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