Re: Bug#260763: [powerpc] Problems with logical volume setup during installation
On Fri, Jan 07, 2005 at 11:00:48AM +0100, Helge Kreutzmann wrote:
> On Fri, Jan 07, 2005 at 10:55:09AM +0100, Sven Luther wrote:
> > No, lvm could be added to partman in no time, but Colin Watson voted against
> > this, and rightly so, since he claimed that we should not use a quick hack,
> > but come to a consensus on the way of doing this with both the d-i team and
> > the lvm-config tools (also upstream probably), for future portability issue.
> Well, I was told differently by a Debian Developer on Linuxtag, who
Who was it ?
> explicitly asked me to look if I could add it (and test it then). My
> brother (who also owns an ibook) had a look and told me it was not a
> simple addition, but we did not push this further.
Sure it is, i am the parted maintainer, and i know what i speak about on
this. It is not implemented, because of the future compatibility concerns of
upstream-lvm chosing a different approach. The fix for the amiga partition
table was trivial, and i have no problem doing lvm installs on pegasos now.
> > Nobody did really find the time to push this, and thus there is no lvm support
> > on powermac (altough there should be no problem on prep and ibm chrp hardware,
> > and i have solution for pegasos too).
> Well, lvm works nicly. The only "trick" is to set it up on the command
> line during the install (i.e., leave the gui for that). There are some
> minor issues in some tools (#281925 and #287670), but they can be
> easily worked around during operation. (I have not tried to reduce the
> size of a LV, though).
Ah, didn't try any of those too, just created the LVM partitions. I don't care
strongly enough to pursue this though, so you are welcome to take this on you
shoulder and become de facto LVM-on-powerpc maintainer. I will code the parted
part of it once a consensus is reached about this with upstream. Please CC me
(or debian-powerpc) on any such discussion though
> > Ok. The main problem is that there is no LVM flag for mac partition tables, i
> > wonder how usefull that is though. Parted is a bit shaky on this, as i believe
> > it should not really be a partition flag, but a partition type.
> Neither there is for alpha. I asked the LVM guys back then, and they
> told me, that the partition type really does not matter, and we've
> installed lvm since then on several alphas, all using BSD disk labels.
Ok, so we should will a bug against partman-lvm in order to get that fixed, i
am all in favor of this approach indeed.
> I don't know the details of partitions on ppc, but using my alpha
Well, powermacs use mac partition tables, prep and IBM chrp use plain mbr's,
and pegasos uses amiga rdb's.
> experience I also chose an "arbitary" partition type (sorry, don't
> know offhand which).
on amiga, i used a LVM partition flag, but in retrospect, the 'LVM\0' and
'RAID' partition table types should be better. I believe on pmac they use some
strings too for this, so best would be to use the right strings, be it only for
documentation purpose. Parted is somewhat broken on this though, as its only
easy way to set partition types is by putting a filesystem on the partition.
Mmm, let me look, ... Indeed the ped_partition_set_system call needs a
filesystem argument :
int ped_partition_set_system (PedPartition* part, PedFileSystemType* fs_type)
Sets the system type on the partition to be fs_type. Note: the
file system may be opened, to get more information about the
file system, e.g. to determine if it's FAT16 or FAT32.
> So in summary: if it can be added easily, IMHO it should, as lvm
> definitly eases system management.
Indeed. Please go ahead and fill a bug report against partman, or start the
discussion about this with the lvm-tools maintainers.