1753761 Members
4927 Online
108799 Solutions
New Discussion юеВ

disklabel create/copy

 
Paul Wasik
Frequent Advisor

disklabel create/copy

hello, I'm working an exadata storage node issue with the boot disk mirrors ... a raid1 set where one disk was pulled and replaced ... without further action. RHEL 5.

so I need to do the further action which I belive to be as simpe as create/write a new disklable to the effected device and run mdadm utility commands. I need help with the disklabel. fdisk, parted..... what about sfdisk ?

first of all I don't know what type of disk label it is (dos,sun,bsd,other) ... I also don't know how to properly re4plicate the existing (or rather other mirror's) disklabel. see good disklabel below.

please advise on how to replicate the 'good' disklabel (c0d1) to the "new" disklabel (c0d0).



other questions: how to determine exact type of disklabel on a disk? how to set a partion as bootable?



please advise.


thanks
2 REPLIES 2
Paul Wasik
Frequent Advisor

Re: disklabel create/copy

good disklabel:



Disk /dev/cciss/c0d1: 1000.1 GB, 1000171331584 bytes
255 heads, 32 sectors/track, 239394 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d1p1 * 1 32 130544 fd Linux raid autodetect
/dev/cciss/c0d1p2 33 33 4080 83 Linux
/dev/cciss/c0d1p3 34 231941 946184640 83 Linux
/dev/cciss/c0d1p4 231942 239394 30408240 5 Extended
/dev/cciss/c0d1p5 231942 234512 10489664 fd Linux raid autodetect
/dev/cciss/c0d1p6 234513 237082 10485584 fd Linux raid autodetect
/dev/cciss/c0d1p7 237083 237596 2097104 fd Linux raid autodetect
/dev/cciss/c0d1p8 237597 238110 2097104 fd Linux raid autodetect
/dev/cciss/c0d1p9 238111 238624 2097104 fd Linux raid autodetect
/dev/cciss/c0d1p10 238625 238799 713984 fd Linux raid autodetect
/dev/cciss/c0d1p11 238800 239394 2427584 83 Linux
Paul Wasik
Frequent Advisor

Re: disklabel create/copy

the process for "miroring" exadata cell OS disks IS WAY NOT STRAIGHT FORWARD. found that I had to pull the disk from ASM, then pull the disk from the cell disk config ... and then a one command re-enable did all the disklabel work ... but it took a L O N G time to get the disk pulled out and then "balanced" back in.