Ahojte,
Potreboval by som na disku vytvorit particie rovnako velke ako na disku druhom. Tieto disky boli totiz v raide 1 ale jeden disk odisiel tak som ho vymenil. Problem je, ze ak chcem vytvorit particie cez fdisk tak mi dava inu velkost blokov nez na tom druhom funkcnom disku.
Dva disky z raid1:
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
Disk /dev/cciss/c0d2: 146.7 GB, 146778685440 bytes
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d2p1 1 [b]65 522081[/b] fd Linux raid autodetect <<--toto je 509MB
/dev/cciss/c0d2p2 66 17844 142809817+ 8e Linux LVM
Postup tvorby particii
SU-root# fdisk /dev/cciss/c0d0
The number of cylinders for this disk is set to 35132.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-35132, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-35132, default 35132): +509M
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): fd
Changed system type of partition 1 to fd (Linux raid autodetect)
Command (m for help): p
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 1 [b]123 501824[/b] fd Linux raid autodetect* <<-- toto je 509M
Je nejaky command ktorym by som vytvoril totoznu velkost particii aby sedela aj velkost blokov?