I've been testing mirroring root partitions for the past few days within a virtual environment and on an old ML350. However, the live system that this is practice for has two disks, and they're non-identical.
I've done a bit of searching through the forum and see that a lot of people recommend just calculating the partitions for the second disk manually. However, I'm a bit of a noob when it comes to doing so, so was wondering if somebody could offer any advice/help.
Here are the two partition tables as they are at the moment:
Disk 1 (i.e. the live disk):
Disk 2 (the soon to be mirror):
Notice somebody's failed attempt - ominous!
Firstly - am I right in thinking the disks are (on paper) roughly equal in size (i.e. they share a similar number of sectors, and are both 512bytes/sector)?
Secondly, will prtvtoc/fmthard use the sector positions rather than the cylinder counts when labelling the new disk? Because if so am I right in thinking that the unallocated space on the end of c1t1d0 should mean that a straight copy of the VTOCs between disks is possible? (That is, the current disk's assigned partitions don't overflow past the new disks available sectors?)
Any advice would be greatly appreciated - I can only test so much, and unfortunately this part can only be tested on the live system because I don't have unequal disks to test with
If you are sure the disks internals (Disk make,RPM,....) are same then different size wont be a problem ...because mirroring will take the smallest size among the disks
If you are sure the disks internals (Disk make,RPM,....) are same then different size wont be a problem ...because mirroring will take the smallest size among the disks
Do a fmthard of the first disk to second disk.
I'm not sure that they are the same make, but I would presume they're the same RPM - is there anyway to check within Solaris? dmesg or lspci?
I don't know if you're right when you say "mirroring will take the smallest size among the disks" - surely mirroring (or rather, prtvtoc | fmthard) will take the size of the origin disk?
---------- Post updated at 04:37 AM ---------- Previous update was at 04:35 AM ----------
It's the fact that the dimensions of the disks (cylinder, sectors/track, sectors/cylinder etc) that's worrying me.
---------- Post updated at 01:19 PM ---------- Previous update was at 04:37 AM ----------
This problem gets weirder:
So according to that, the disks are identical in size, identical in manufacturer, and are even identical product and revision numbers! Yet somehow they're so different
---------- Post updated at 01:52 PM ---------- Previous update was at 01:19 PM ----------
Well, as expected:
=/
---------- Post updated at 04:26 PM ---------- Previous update was at 01:52 PM ----------
I seem to be talking to myself
But for anyone looking for answers to this in the future, I did the following (after reading an OpenSolaris bug report (bug_id=1193631 - I'm not allowed to post URLs)):
Once that's done, and you've quit without doing save, if you check the partition table, you should see that all the geometry for the drive has now changed:
I have my Ubuntu system nicely tailored to my needs, with specific software installed, and other things removed.
I'd like to build a new PC, and have the identical software configuration on it. Is there some easy way to export the list of installed software to a file? Then have the new machine... (3 Replies)
Hello All,
I am trying to mirror two non-root hard drives using zfs. But "fmthard" fails when I try to copy the vtoc due to disk mismatch. Please help me.
--- iostat command shows the disk to be similiar
--- format command shows disk to be different :confused:
--- c1t2d0 is the active... (8 Replies)
Hi, need some guidance, maybe I don't understand the term 3 or 4 way mirror.
I have 4 disks. All of same capacity. Need to 3-way mirror the disks for the OS using SVM (4 Replies)
Hi All,
I am having hard time in getting two almost identical rows into one, I know how to do if starting word is unique, anyhow this is my problem
Input File:
issue1 5167
dum 1 1 kkk 7888
dum 2 1 ffff 7888
dum 2 2 llll 7888
dum 3 1 eee 7888
issue2 7667
dum 2 1 jjjj 8999
dum 2 2 jjjj... (3 Replies)
Hello Experts,
I have two files called "old" and "new". My old file contains 10 lines and my new file contains 10 + "n" lines.
The first field in both these files contain ID. I sort these two files on ID. I am interested in only the lines that are in the new file and not in old.
I tried... (4 Replies)
Hi.
I have a SLES10 machine which until recently had only one disk. Now there is a second disk which I would like to mirror my OS installation to. I have three partitions, first one for /boot (~100M), the second one for / (~1G) and then the rest as a LVM partition with several volumes under... (0 Replies)
I tarred a directory from a linux server to a solaris server. When I do a du -s -k on the directory, I get almost 150k difference in the file sizes. If I do a ls | wc -l, it is the same. If I look at the size of the individual files, it is the same.
I did an ls on the 2 directories and... (6 Replies)
hello everybody,
I have a system in Solaris 8 with SDS 4.2.1
I need to mirror the system disk which has the following characteristics :
* /dev/rdsk/c0t0d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 133 sectors/track
* 27 tracks/cylinder
* 3591 sectors/cylinder... (3 Replies)
Hi,
I am taking backup in every hr and every day, I want to programmatically check my backup files are identical with original files. Any methods are available in Unix scripts? Any idea.? I don't want to download both and compare, I looking for idea to develop a script to read both files and... (3 Replies)