On 07/03/2006, at 6:53 AM, Openbsd User wrote:
> > What does "bioctl ami0" say (assuming you have at least 3.8,
next time
> > post a complete dmesg!).
>
> $ sudo bioctl ami0
> Volume Status Size Device
> ami0 0 Online 146695782400 sd0 RAID1
> 0 Online 146811125760 0:0.0 safte0 <MAXTOR
ATLAS10K5_146SCAJNZY>
> 1 Online 146811125760 0:1.0 safte0 <MAXTOR
ATLAS10K5_146SCAJNZY>
>
> Does this mean that there are two drives in my system working as
raid device?
Yes, a RAID1 config to be precice.
-Otto
in my fstab, I have them all mounted as sd0 but I planned on
writing a backup script to archive the important data to the other
drive. So I need to access sd1. Is that possible without reinstalling?
it seems to me that you are still not understanding what is happening
here. i get the impression that you want to write these backup
scripts to avoid data loss in the event of a disk failure?
you are right about the computer having two physical disks. however,
these are plugged into a raid controller, which is configured to
mirror the two physical disks. the operating system (openbsd) only
sees this mirror, not the actual disks.
if one of the physical disks fails, the raid controller will continue
to happily use the other disk. you wont lose data, and you wont lose
uptime either since the system is still running. to recover from the
disk failure simply swap the bad disk out and the controller should
mirror from the good disk to the new disk and regain its redundancy.
if you're only trying to avoid data loss when a disk fails, then stop
writing your backups scripts and start writing a cronjob that mails
you when bioctl reports one of your disks as failed.
dlg