[DRBD-user] Problem with disk geometry

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Fri Sep 5 15:40:18 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Theophanis Kontogiannis wrote:
> 3. fdisk reports
> 
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 16 heads, 63 sectors/track, 155061 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
> 
> and the disk turns up like:
> 
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 208 104800+ fd Linux raid autodetect
> /dev/hda2 209 20554 10254384 fd Linux raid autodetect
> /dev/hda3 20555 24500 1988784 83 Linux
> /dev/hda4 24501 155061 65802744 83 Linux
> 
> 
> The result is that I cannot create the same layout on the disk as the 
> old disk.
> The _old disk_ was like that:
> 
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 13 104391 fd Linux raid autodetect
> /dev/hda2 14 1288 10241437+ fd Linux raid autodetect
> /dev/hda3 1289 1543 2048287+ 82 Linux swap / Solaris
> /dev/hda4 1544 9729 65754045 83 Linux

afairc one can overwrite the geometry to some extend, but i do not know
about the impact (e.g. performance, etc.) and in some manuals one can
read about potential disk damage (never encounterred it though)

i normally do an "sfdisk -d /dev/old | sfdisk /dev/new" where i
replace old and new with the old and new harddisk.

please research a little if this is working with your disks. of course,
you will have to do it on your own risk :)

cheers,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________



More information about the drbd-user mailing list