[nflug] quick partition table mirroring

Mark Musone mmusone at shatterit.com
Fri Sep 5 12:34:35 EDT 2008


I think sfdisk will give you what you want..specifically, the -d option:

       -d     Dump  the partitions of a device in a format useful
              as input to sfdisk. For example,
                  % sfdisk -d /dev/hda > hda.out
                  % sfdisk /dev/hda < hda.out


P.S. when you say mirroring, do you mean software raid of single
partitions versus the entire disk? If not, how is this mirroring being
done?

Mark.

-----Original Message-----
From: nflug-bounces at nflug.org [mailto:nflug-bounces at nflug.org] On Behalf
Of Darin Perusich
Sent: Friday, September 05, 2008 12:32 PM
To: nflug at nflug.org
Subject: [nflug] quick partition table mirroring

I'm not sure the subject of this message accurately describes what I'm 
looking but it's kind of close.

I have a Linux server with mirrored drives and one of the drives died. 
I've replaced the dead drive with an identical disk and want to recreate

the partition layout and rebuild the mirrors, simple tasks. Because the 
disks are identical I'd rather not have to manually create all the 
partitions, I want to suck that info from disk1 and apply it to disk2.

On Solaris I'd use prtvtoc from grab the disks partitions and fmthard to

apply it to the new drive but haven't been able to locate equivalents on

  Linux yet. Is anyone aware of how this can be done on Linux?

-- 
Darin Perusich
Unix Systems Administrator
Cognigen Corporation
395 Youngs Rd.
Williamsville, NY 14221
Phone: 716-633-3463
Email: darinper at cognigencorp.com
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug


More information about the nflug mailing list