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

Re: Welches FS für große Volumes?



> > So erstelle ich also eine gpt partition.
> > parted -s /dev/sda mklabel gpt
> > und kann die dann ins LVM direkt einhängen?
>
> Das erzeugt erst einmal eine GPT. Darin erzeugst du eine Partition mit
> dem Label "lvm". Die muss dann mit pvcreate bearbeitet werden. Das
> Ergebnis kannst du dann in eine VolumeGroup einhängen.
>
> > Wenn ich euch richtig verstanden habe, MBR-Partitionstabelle kann ich
> > nicht verwenden wenn mein LVM größer als 2TB wird? Oder wenn eine
> > physikalische Platte größer als 2TB ist?
>
> Letzteres. Die Größe deines LVMs bzw. einer Volume darin wird nur von
> der physical extend size bestimmt. Auch hier lauert eine Falle: die
> Default-PE-Größe reicht nur für LV-Größen bis zu 255GB!
>
> Da man heute mehr will, muss man beim Anlegen einer VG dies bereits
> berücksichtigen. Ich empfehle die PEs auf 128MB oder sogar 256MB zu
> legen.


Ok das werde ich beкrücksichtigen.
Denn noch habe ich noch probleme bei der Partitionierung.
Ich gehe so vor:

parted

(parted) mklabel gpt
(parted) mkpartfs primary lvm 0 160000
File system type?  [ext2]? ext3
Start? yes
Error: Invalid number.
(parted) print

Disk /dev/sdb: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start  End  Size  File system  Name  Flags

Wenn ich ext2 anstatt lvm auswähle dann geht es.

und hier steht:

http://www.gnu.org/software/parted/manual/html_chapter/parted_2.html

mkpart part-type [fs-type] start end

   Creates a new partition, without creating a new file system on
that partition. This is useful for creating partitions for file
systems (or LVM, etc.) that Parted doesn't support. You may specify a
file system type, to set the appropriate partition code in the
partition table for the new partition. fs-type is required for data
partitions (i.e., non-extended partitions). start and end are the
offset from the beginning of the disk, that is, the "distance" from
the start of the disk.

   part-type is one of: primary, extended, logical. Extended and
logical are only used for msdos and mips disk labels.

   fs-type must be on of these supported file systems:

       * ext2
       * fat32
       * fat16
       * HFS
       * linux-swap
       * NTFS
       * reiserfs
       * ufs

also kein LVM.. was nun?

Grüße
Vladislav

Reply to: