Are you expecting to use the new drives to replace the old? As in you are seeing system drive failures on your 440?
You could consider using dd to image all of the system drives. Don't copy directories like /dev, only the ones which are actual system disk filesystems (ufs). Consult your df output (or /etc/mnttab) to see what to copy. I'm sure other posters here have more precise help, but we will need some more information from you.
This is a little like restoring a system disk - while the system is still up - to another disk.
Interesting idea.
Are you trying to create two mirrored sets? One containing each of the two current drives and adding one more drive to each? (ie 4 drives in total, creating 2 mirrored devices)
If so, here's an example of how it works. Take care of your device names - I've assuming the names, yours may well be different!
you'd want to create small (a few hundred megs will suffice) partitions on the two current drives to hold metadata for the mirror.
Create the metadatabase (3 copies) on the newly prepared partitions (in this example, it's c0 and s7):
Next, create a stripe/concat device (aka a submirror) for each partition on each disk (the numbering system is mine, you can use something different if you prefer - but I like this one as it's clear where everything goes)
Then create mirror devices (with just one disk in each for now) from each submirror: IMPORTANTIf one of these disks was your root/boot device, use metaroot to set it up to boot:
Now copy the partition tables from each disk to the new partner disk you are installing. You can use prtvtoc and fmthard to do this on the commandline and to make sure they end up identical.
Now that you have your new second submirrors ready, create the stripe/concat submirror devices as before (assuming the new disks are on c1 in this example)
Lastly, you can attach the new submirror to the existing mirror (do these one by one, wait until metastat shows them as completed rathen than syncing before beginning the next - otherwise it'll take waaaaay longer due to the head seeking back and forth like nuts)
At some point you'll want to check your /etc/vfstab looks right (it should have the mirror device names now instead of the /dev/dsk ones), check the /etc/system files looks right (forceload: misc/md_stripe and forceload: misc/md_mirror must be in there, and rootdev:/pseudo/md@0:0,10,blk if you ran metaroot above) and reboot.
I usually do the reboot after creating the single sided mirrors and running metaroot as it just feels like the natural point to do it. You could avoid the reboot possibly by doing umount and mounts to switch devices, but I prefer to know for sure it's going to look right after a reboot.
This should end up creating a series of devices (eg d10), each containing two submirrors (eg d100 and d101). Devices starting with d2 are on your second disk pair, d1 are the first disk pair.
Hi Folks,
I have below files in one directory:
Spiross-MBP:AIRTEMP spirospap$ ls -1
CPK2004001
CPK2004002
CPK2004003
etc...
JFK2003001
JFK2003002
JFK2003003
etc...
TEB1999001
TEB1999002
TEB1999003
etc...
Month/year is in Filename and also in the file Header, first line. (18 Replies)
I want to look into a folder to see if there are any folders within it. If there are, I need to check inside each folder to see if it contains a .pdf file
So
If /myserver/myfolder/
contains a folder AND that folder conatins a .pdf file
do X
Else
do Z
I may have multiple folders and... (4 Replies)
Hi,
I am working on a script that inserts one row of data at the time to a table.
Among the fields of that table is the “serial” which is the auto increment. I need to be able to retrieve last inserted row id to use it for another insert.
To retrieve last row id right after I do successful... (2 Replies)
I need to make it possible to automatically copy files from an external usb hard drive to a directory when i plug it in....if you can point me in the right direction, i would be very grateful....thanks a lot. :confused: (0 Replies)