Re: I can't find my scsi hard drives...

2006-03-07 Thread David Gwynne

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



Re: I can't find my scsi hard drives...

2006-03-07 Thread Openbsd User

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?
not just a disk failure but mostly in case my client does something that 
they shouldn't and realize it a few days later. I'm only trying to create a 
archive of backups. So it would backup the sytem every day and every week it 
would save one of the backups to another directory while continuing to 
overwrite the other weekly backups and doing the same with a monthly backup 
while overwriting the weekly backups. So I would have 7 daily backups, 52 
weekly backups and 12 yearly backups when the system is full.


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.
Do I have to parse sudo bioctl ami0 or is there a way to run bioctl and get 
an true/false value for the alarm status? I tried sudo bioctl ami0 -a get 
ami0 but that returns a value reporting wether or not the alarm is enabled.


Thanks!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: I can't find my scsi hard drives...

2006-03-07 Thread Marco Peereboom
If you want backups get a tape drive.  Do not rely on disk for backups,
especially if they are in the same machine.  If you don't know how to do this I
advice you to get some consulting.  You are asking very basic administration
questions and these lists are not the appropriate forum for that.

On Tue, Mar 07, 2006 at 07:52:32AM -0800, Openbsd User wrote:
 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?
 not just a disk failure but mostly in case my client does something that 
 they shouldn't and realize it a few days later. I'm only trying to create a 
 archive of backups. So it would backup the sytem every day and every week 
 it would save one of the backups to another directory while continuing to 
 overwrite the other weekly backups and doing the same with a monthly backup 
 while overwriting the weekly backups. So I would have 7 daily backups, 52 
 weekly backups and 12 yearly backups when the system is full.
 
 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.
 Do I have to parse sudo bioctl ami0 or is there a way to run bioctl and get 
 an true/false value for the alarm status? I tried sudo bioctl ami0 -a get 
 ami0 but that returns a value reporting wether or not the alarm is enabled.
 
 Thanks!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: I can't find my scsi hard drives...

2006-03-07 Thread Openbsd User

If you want backups get a tape drive.  Do not rely on disk for backups,
especially if they are in the same machine.  If you don't know how to do 
this I
advice you to get some consulting.  You are asking very basic 
administration

questions and these lists are not the appropriate forum for that.


I don't have the money for a tape drive. They are expensive. And most people 
are not writing bioctl so these questions are not very basic. Thanks for 
your help before but give me a break here, I'm reading the man pages, I'm 
trying. Basicially you are saying if you don't know the answer then it might 
be a good question. Fuck that.

http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: I can't find my scsi hard drives...

2006-03-06 Thread mickey
On Mon, Mar 06, 2006 at 10:29:31AM -0800, Openbsd User wrote:
 I've got two hard scsi drives in my server but the dmesg only says there is 
 one:
 
 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
 sd0: 69880MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sec, 143114240 sec total
 
 If they are both identical but only one shows up. I never noticed this 
 before. I have three servers with the same problem. Is this just the way 
 scsi drives are handled? I've got another OpenBSD server with two sata 
 drives in it and I can see them both in the dmesg...

you have to set scsi targets to different values on all your drives
on the same scsi bus.

cu
-- 
paranoic mickey   (my employers have changed but, the name has remained)



Re: I can't find my scsi hard drives...

2006-03-06 Thread Openbsd User

From: mickey [EMAIL PROTECTED]
To: Openbsd User [EMAIL PROTECTED]
CC: misc@openbsd.org
Subject: Re: I can't find my scsi hard drives...
Date: Mon, 6 Mar 2006 19:56:58 +0100

On Mon, Mar 06, 2006 at 10:29:31AM -0800, Openbsd User wrote:
 I've got two hard scsi drives in my server but the dmesg only says there 
is

 one:

 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct 
fixed
 sd0: 69880MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sec, 143114240 sec 
total


 If they are both identical but only one shows up. I never noticed this
 before. I have three servers with the same problem. Is this just the way
 scsi drives are handled? I've got another OpenBSD server with two sata
 drives in it and I can see them both in the dmesg...

you have to set scsi targets to different values on all your drives
on the same scsi bus.

cu
--
paranoic mickey   (my employers have changed but, the name has 
remained)



My server is at my collocation facility. Is there a way to find this out 
without actually being there or do I have to go there and shut down the 
machine and open it up?


_
Dont just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




Re: I can't find my scsi hard drives...

2006-03-06 Thread Otto Moerbeek
On Mon, 6 Mar 2006, Openbsd User wrote:

 I've got two hard scsi drives in my server but the dmesg only says there is
 one:
 
 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
 sd0: 69880MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sec, 143114240 sec total

Your card is a RAID card. It is very likely your two dirves have
gotten themselves into the default mirroring setup, forming one
logical drive. 

What does bioctl ami0 say (assuming you have at least 3.8, next time
post a complete dmesg!).

-Otto

 
 If they are both identical but only one shows up. I never noticed this before.
 I have three servers with the same problem. Is this just the way scsi drives
 are handled? I've got another OpenBSD server with two sata drives in it and I
 can see them both in the dmesg...
 
 Help! Please
 
 _
 Dont just search. Find. Check out the new MSN Search!
 http://search.msn.click-url.com/go/onm00200636ave/direct/01/



Re: I can't find my scsi hard drives...

2006-03-06 Thread mickey
On Mon, Mar 06, 2006 at 11:08:03AM -0800, Openbsd User wrote:
 From: mickey [EMAIL PROTECTED]
 To: Openbsd User [EMAIL PROTECTED]
 CC: misc@openbsd.org
 Subject: Re: I can't find my scsi hard drives...
 Date: Mon, 6 Mar 2006 19:56:58 +0100
 
 On Mon, Mar 06, 2006 at 10:29:31AM -0800, Openbsd User wrote:
  I've got two hard scsi drives in my server but the dmesg only says there 
 is
  one:
 
  sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct 
 fixed
  sd0: 69880MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sec, 143114240 sec 
 total
 
  If they are both identical but only one shows up. I never noticed this
  before. I have three servers with the same problem. Is this just the way
  scsi drives are handled? I've got another OpenBSD server with two sata
  drives in it and I can see them both in the dmesg...
 
 you have to set scsi targets to different values on all your drives
 on the same scsi bus.
 
 cu
 --
 paranoic mickey   (my employers have changed but, the name has 
 remained)
 
 
 My server is at my collocation facility. Is there a way to find this out 
 without actually being there or do I have to go there and shut down the 
 machine and open it up?

even more -- you will have to power it off and
pull the drives out. then find out where the jumpers are (:
cu
-- 
paranoic mickey   (my employers have changed but, the name has remained)



Re: I can't find my scsi hard drives...

2006-03-06 Thread Openbsd User

From: Otto Moerbeek [EMAIL PROTECTED]
To: Openbsd User [EMAIL PROTECTED]
CC: misc@openbsd.org
Subject: Re: I can't find my scsi hard drives...
Date: Mon, 6 Mar 2006 20:13:19 +0100 (CET)



On Mon, 6 Mar 2006, Openbsd User wrote:

 I've got two hard scsi drives in my server but the dmesg only says there 
is

 one:

 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct 
fixed
 sd0: 69880MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sec, 143114240 sec 
total


Your card is a RAID card. It is very likely your two dirves have
gotten themselves into the default mirroring setup, forming one
logical drive.

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?

http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: I can't find my scsi hard drives...

2006-03-06 Thread Otto Moerbeek
On Mon, 6 Mar 2006, Openbsd User wrote:

  From: Otto Moerbeek [EMAIL PROTECTED]
  To: Openbsd User [EMAIL PROTECTED]
  CC: misc@openbsd.org
  Subject: Re: I can't find my scsi hard drives...
  Date: Mon, 6 Mar 2006 20:13:19 +0100 (CET)
  
  
  
  On Mon, 6 Mar 2006, Openbsd User wrote:
  
   I've got two hard scsi drives in my server but the dmesg only says there
  is
   one:
  
   sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct fixed
   sd0: 69880MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sec, 143114240 sec
  total
  
  Your card is a RAID card. It is very likely your two dirves have
  gotten themselves into the default mirroring setup, forming one
  logical drive.
  
  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



Re: I can't find my scsi hard drives...

2006-03-06 Thread RedShift

Openbsd User wrote:

From: Otto Moerbeek [EMAIL PROTECTED]
To: Openbsd User [EMAIL PROTECTED]
CC: misc@openbsd.org
Subject: Re: I can't find my scsi hard drives...
Date: Mon, 6 Mar 2006 20:13:19 +0100 (CET)



On Mon, 6 Mar 2006, Openbsd User wrote:

 I've got two hard scsi drives in my server but the dmesg only says 
there is

 one:

 sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00,  SCSI2 0/direct 
fixed
 sd0: 69880MB, 8908 cyl, 255 head, 63 sec, 512 bytes/sec, 143114240 
sec total


Your card is a RAID card. It is very likely your two dirves have
gotten themselves into the default mirroring setup, forming one
logical drive.

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?

Looks like it.
 ami0 0 Online   146695782400 sd0 RAID1

Raid 1 = mirroring

However, I see there's only 69880 MB available (sd0: 69880MB), and your 
drives are both 146 GB (MAXTOR ATLAS10K5_146SCAJNZY: is a 146 GB drive)




Re: I can't find my scsi hard drives...

2006-03-06 Thread Openbsd User

  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


So is there a way to break the raid remotely without taking the server down?

$ cat /etc/fstab
/dev/sd0a / ffs rw 1 1
/dev/sd0g /home ffs rw,nodev,nosuid 1 2
/dev/sd0e /swap ffs rw,nodev,nosuid 1 2
/dev/sd0f /tmp ffs rw,nodev,nosuid 1 2
/dev/sd0j /usr ffs rw,nodev 1 2
/dev/sd0k /usr/local ffs rw,nodev 1 2
/dev/sd0d /var ffs rw,nodev,nosuid 1 2
/dev/sd0h /var/mail ffs rw,nodev,nosuid 1 2
/dev/sd0i /var/www ffs rw,nodev,nosuid 1 2

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?


_
FREE pop-up blocking with the new MSN Toolbar  get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/