Re: raid or not raid

2007-05-28 Thread Jerry McAllister
On Mon, May 28, 2007 at 12:11:24AM +0200, Gabriel Rossetti wrote:

 Jerry McAllister wrote:
  On Thu, May 24, 2007 at 06:07:58AM -0500, [EMAIL PROTECTED] wrote:
 

  On 24/05/07, kalin mintchev [EMAIL PROTECTED] wrote:
  
  so nobody on this list knows anything about raid?
  wrong list?
 

  hi all..
 
  i have a box in a remote hosting facility that claims that the machine 
  has

  two discs raided in it but df and fstab show only one disc with a bunch 
  of
  slices.
  under devices there is another name - ad6 - but it's not mounted 
  anywhere.

  the one i see both in df and the fstab is ad4 with one big slice and
  different partitions
 
  they insist there are 2 raided discs in tha machine. the os is 5.4 and i
  think at that point the raid drivers were still considered 
  'experimental'.

  it makes sense to me that if i don't see a second drive in the fstab 
  there
  isn;t any mounting which means that there is no raid going on...
 
  is there any other way i can make sure if raid is actually on?
  would there will be any logs somewhere?
  the machine has been up for about 2 years and the dmesg is long gone...
 
  thanks.
 
  Lots of people here know plenty about RAID,
  but you don't provide very much information.
 
  If dmesg itself returns none of the startup info,
  you can look in /var/log/dmesg.[today|yesterday].
 
  /usr/sbin/pciconf can tell you what controller(s)
  may be attached.
 
  A proper RAID will show up as a single device,
  just like any hard drive (but different).
 
  It does seem odd to me that a (supposed) RAID
  would show up as /dev/ad4.
  
 
  A hardware raid will look like any other drive to the system.
  If it is SATA raid, it should be adN
  It is it SAS raid, it should be daN.
 

 I have an SATA RAID controller (rocketraid 1640) and the drive shows up
 as daN and not adN

That may be correct.You may need to address the raid as /dev/dann
I have not had a SATA raid to see what it did.  I just know that the
SAS raid showed up as da-something (I don't have it available to check.

jerry

 When I tested the controller without the driver loaded the DRIVES showed
 up ad adN, I put
 drives in caps because this is what I think is happening here, the
 driver isn't loaded and/or no
 RAID devices were created, so the RAID controller's drives just show up
 as drives and the
 controller is just used as a non-RAID controller. I suspect this is why
 he sees a second disk.
 
 Gabriel
  Some systems allow you to address the drives as either individual
  drives or as the raid - maybe until you have configured it or
  something.   Anyway, on a Dell 2950 I could see both designations
  but figured out which was the raid and used it and all was fine.
 
  jerry
 

  Possibilities:
  Your RAID really is on /dev/ad4 and /dev/ad6 is
  something unexplained.
  Your RAID controller is unsupported in 5.x and
  not Doing The Right Thing but somehow still (kind
  of) working as a normal [S]ATA controller.
  Your RAID controller is unsupported in 5.x and
  your hosting company realised this and wired
  the shebang up as a normal [S]ATA controller
  because they couldn't get FreeBSD to install
  otherwise.
  There is a RAID controller and there are two disks
  connected to it, but the controller was not set up
  correctly.
  There is a RAID controller and there are two disks
  connected to some other controller which might lead
  to some interesting phone calls.
  Your remote hosting company put a RAID with two
  disks in some random machine and someone else
  is complaining on some other list about the inverse
  of your problem.
 
  -- 
  --
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
  
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
 

 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: raid or not raid

2007-05-27 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of kalin mintchev
 Sent: Thursday, May 24, 2007 4:11 PM
 To: freebsd-questions@freebsd.org
 Cc: [EMAIL PROTECTED]
 Subject: Re: raid or not raid


  On Thu, May 24, 2007 at 06:30:06AM -0400, kalin mintchev wrote:
 
  so nobody on this list knows anything about raid?
  wrong list?
 
   hi all..
  
   i have a box in a remote hosting facility that claims that
 the machine
  has
   two discs raided in it but df and fstab show only one disc with a
  bunch of
   slices.
   under devices there is another name - ad6 - but it's not mounted
  anywhere.
   the one i see both in df and the fstab is ad4 with one big slice and
   different partitions
 
  My (VIA Tech V-RAID) raid disk shows up as ar0, although the ad4 and ad6
  device nodes exist as well.
 
  Do you have the ataraid device in the kernel?

 yes. but isn;t that in by default in 5.4 GENERIC?!

   they insist there are 2 raided discs in tha machine. the os
 is 5.4 and
  i
   think at that point the raid drivers were still considered
   'experimental'.
 
  Then ask them how it's done.
 
   it makes sense to me that if i don't see a second drive in the fstab
  there
   isn;t any mounting which means that there is no raid going on...
 
  If you're seeing an ad device, it's not RAID-ed, AFAIK.
 
   is there any other way i can make sure if raid is actually on?
   would there will be any logs somewhere?
   the machine has been up for about 2 years and the dmesg is long
  gone...
 
  It should be in /var/run/dmesg.boot.

 thanks. i guess that solves the ad6 mistery:

 atapci0: Intel ICH5 UDMA100 controller port
 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
 ata0: channel #0 on atapci0
 ata1: channel #1 on atapci0
 atapci1: Intel ICH5 SATA150 controller port
 0xcc80-0xcc8f,0xcc98-0xcc9b,0xcca0-0xcca7,0xccb0-0xccb3,0xccb8-0xccbf irq
 18 at device 31.2 on pci0
 ata2: channel #0 on atapci1
 ata3: channel #1 on atapci1
 .
 ad4: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at ata2-master
 SATA150
 ad6: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at ata3-master
 SATA150
 Mounting root from ufs:/dev/ad4s1a

 unless at device 31.2 on pci0 points to some RAID evidence - which i
 think it's false - than i read this as the ad6 disk sits there unused.
 am i right?!

 according to pciconf the atapci0 and atapci1 are differnt conrollers -
 EIDE and SATA so they can both be on pci0 as 31.1 and 31.2?! still no RAID
 though...


I've come late to this thread but it's been interesting watching the
speculation.

Yes, they F'd up the installation.  Badly.  But you need to back up every
scrap of data before trying to fix it.  And use FBSD 6.2 on the next one.
There's been lots of driver fixes in the ata driver that you want.

ata raid should show all your data on AR not AD!!  Here's an example
from my mailserver:

mail# cat /etc/fstab
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ar0s1b noneswapsw  0   0
/dev/ar0s1a /   ufs rw  1   1
/dev/ar0s1e /usrufs rw  2   2
/dev/ar0s1d /varufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0
mail#

Also, note the following.  VERY important!

When you go to setup a RAID mirror on a system, using a UDMA or SATA
controller,
(ie: NOT using a RAID5 card or SCSI card or some such) here is what you do.

Start by going into the system RAID BIOS on boot, setup your RAID, then
boot the install disk.  Disks ad4 and ad6 will always show.  If disk ar0
also shows, you can select ar0 and install to that.

IF DISK ar0 DOES NOT SHOW, then your BIOS metadata isn't compatible. STOP.
Reboot system.  GO into BIOS.  DESELECT and DISABLE the RAID.

Boot system with install CD.  At the screen that displays ad4 and ad6,
select
ad4.  Select Minimal install.  Don't bother answering any post install
questions.
Finish install.  Reboot and login to root.  At command line, issue command:

atacontrol create RAID1 ad4 ad6

Immediately reboot from the install CD.  Now, at the disk selection screen
you will see ar0.  Select this.  Delete all existing partitions and recreate
them, install the full system and your in business.

Ted

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: raid or not raid

2007-05-27 Thread kalin mintchev


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of kalin mintchev
 Sent: Thursday, May 24, 2007 4:11 PM
 To: freebsd-questions@freebsd.org
 Cc: [EMAIL PROTECTED]
 Subject: Re: raid or not raid


  On Thu, May 24, 2007 at 06:30:06AM -0400, kalin mintchev wrote:
 
  so nobody on this list knows anything about raid?
  wrong list?
 
   hi all..
  
   i have a box in a remote hosting facility that claims that
 the machine
  has
   two discs raided in it but df and fstab show only one disc with a
  bunch of
   slices.
   under devices there is another name - ad6 - but it's not mounted
  anywhere.
   the one i see both in df and the fstab is ad4 with one big slice
 and
   different partitions
 
  My (VIA Tech V-RAID) raid disk shows up as ar0, although the ad4 and
 ad6
  device nodes exist as well.
 
  Do you have the ataraid device in the kernel?

 yes. but isn;t that in by default in 5.4 GENERIC?!

   they insist there are 2 raided discs in tha machine. the os
 is 5.4 and
  i
   think at that point the raid drivers were still considered
   'experimental'.
 
  Then ask them how it's done.
 
   it makes sense to me that if i don't see a second drive in the
 fstab
  there
   isn;t any mounting which means that there is no raid going on...
 
  If you're seeing an ad device, it's not RAID-ed, AFAIK.
 
   is there any other way i can make sure if raid is actually on?
   would there will be any logs somewhere?
   the machine has been up for about 2 years and the dmesg is long
  gone...
 
  It should be in /var/run/dmesg.boot.

 thanks. i guess that solves the ad6 mistery:

 atapci0: Intel ICH5 UDMA100 controller port
 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
 ata0: channel #0 on atapci0
 ata1: channel #1 on atapci0
 atapci1: Intel ICH5 SATA150 controller port
 0xcc80-0xcc8f,0xcc98-0xcc9b,0xcca0-0xcca7,0xccb0-0xccb3,0xccb8-0xccbf
 irq
 18 at device 31.2 on pci0
 ata2: channel #0 on atapci1
 ata3: channel #1 on atapci1
 .
 ad4: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at
 ata2-master
 SATA150
 ad6: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at
 ata3-master
 SATA150
 Mounting root from ufs:/dev/ad4s1a

 unless at device 31.2 on pci0 points to some RAID evidence - which i
 think it's false - than i read this as the ad6 disk sits there unused.
 am i right?!

 according to pciconf the atapci0 and atapci1 are differnt conrollers -
 EIDE and SATA so they can both be on pci0 as 31.1 and 31.2?! still no
 RAID
 though...


 I've come late to this thread but it's been interesting watching the
 speculation.

 Yes, they F'd up the installation.  Badly.  But you need to back up every
 scrap of data before trying to fix it.  And use FBSD 6.2 on the next one.
 There's been lots of driver fixes in the ata driver that you want.

 ata raid should show all your data on AR not AD!!  Here's an example
 from my mailserver:

 mail# cat /etc/fstab
 # DeviceMountpoint  FStype  Options Dump
 Pass#
 /dev/ar0s1b noneswapsw  0   0
 /dev/ar0s1a /   ufs rw  1   1
 /dev/ar0s1e /usrufs rw  2   2
 /dev/ar0s1d /varufs rw  2   2
 /dev/acd0   /cdrom  cd9660  ro,noauto   0   0
 mail#

 Also, note the following.  VERY important!

 When you go to setup a RAID mirror on a system, using a UDMA or SATA
 controller,
 (ie: NOT using a RAID5 card or SCSI card or some such) here is what you
 do.

 Start by going into the system RAID BIOS on boot, setup your RAID, then
 boot the install disk.  Disks ad4 and ad6 will always show.  If disk ar0
 also shows, you can select ar0 and install to that.

 IF DISK ar0 DOES NOT SHOW, then your BIOS metadata isn't compatible.
 STOP.
 Reboot system.  GO into BIOS.  DESELECT and DISABLE the RAID.

 Boot system with install CD.  At the screen that displays ad4 and ad6,
 select
 ad4.  Select Minimal install.  Don't bother answering any post install
 questions.
 Finish install.  Reboot and login to root.  At command line, issue
 command:

 atacontrol create RAID1 ad4 ad6

 Immediately reboot from the install CD.  Now, at the disk selection screen
 you will see ar0.  Select this.  Delete all existing partitions and
 recreate
 them, install the full system and your in business.

nice...  thank you. i love condensed instructions. saves so much time...



 Ted




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: raid or not raid

2007-05-27 Thread Ted Mittelstaedt


 -Original Message-
 From: kalin mintchev [mailto:[EMAIL PROTECTED]
 Sent: Sunday, May 27, 2007 5:04 AM
 To: Ted Mittelstaedt
 Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org; [EMAIL PROTECTED]
 Subject: RE: raid or not raid


 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of kalin mintchev
  Sent: Thursday, May 24, 2007 4:11 PM
  To: freebsd-questions@freebsd.org
  Cc: [EMAIL PROTECTED]
  Subject: Re: raid or not raid
 
 
   On Thu, May 24, 2007 at 06:30:06AM -0400, kalin mintchev wrote:
  
   so nobody on this list knows anything about raid?
   wrong list?
  
hi all..
   
i have a box in a remote hosting facility that claims that
  the machine
   has
two discs raided in it but df and fstab show only one disc with a
   bunch of
slices.
under devices there is another name - ad6 - but it's not mounted
   anywhere.
the one i see both in df and the fstab is ad4 with one big slice
  and
different partitions
  
   My (VIA Tech V-RAID) raid disk shows up as ar0, although the ad4 and
  ad6
   device nodes exist as well.
  
   Do you have the ataraid device in the kernel?
 
  yes. but isn;t that in by default in 5.4 GENERIC?!
 
they insist there are 2 raided discs in tha machine. the os
  is 5.4 and
   i
think at that point the raid drivers were still considered
'experimental'.
  
   Then ask them how it's done.
  
it makes sense to me that if i don't see a second drive in the
  fstab
   there
isn;t any mounting which means that there is no raid going on...
  
   If you're seeing an ad device, it's not RAID-ed, AFAIK.
  
is there any other way i can make sure if raid is actually on?
would there will be any logs somewhere?
the machine has been up for about 2 years and the dmesg is long
   gone...
  
   It should be in /var/run/dmesg.boot.
 
  thanks. i guess that solves the ad6 mistery:
 
  atapci0: Intel ICH5 UDMA100 controller port
  0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device
 31.1 on pci0
  ata0: channel #0 on atapci0
  ata1: channel #1 on atapci0
  atapci1: Intel ICH5 SATA150 controller port
  0xcc80-0xcc8f,0xcc98-0xcc9b,0xcca0-0xcca7,0xccb0-0xccb3,0xccb8-0xccbf
  irq
  18 at device 31.2 on pci0
  ata2: channel #0 on atapci1
  ata3: channel #1 on atapci1
  .
  ad4: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at
  ata2-master
  SATA150
  ad6: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at
  ata3-master
  SATA150
  Mounting root from ufs:/dev/ad4s1a
 
  unless at device 31.2 on pci0 points to some RAID evidence - which i
  think it's false - than i read this as the ad6 disk sits there unused.
  am i right?!
 
  according to pciconf the atapci0 and atapci1 are differnt conrollers -
  EIDE and SATA so they can both be on pci0 as 31.1 and 31.2?! still no
  RAID
  though...
 
 
  I've come late to this thread but it's been interesting watching the
  speculation.
 
  Yes, they F'd up the installation.  Badly.  But you need to
 back up every
  scrap of data before trying to fix it.  And use FBSD 6.2 on the
 next one.
  There's been lots of driver fixes in the ata driver that you want.
 
  ata raid should show all your data on AR not AD!!  Here's an example
  from my mailserver:
 
  mail# cat /etc/fstab
  # DeviceMountpoint  FStype  Options Dump
  Pass#
  /dev/ar0s1b noneswapsw
 0   0
  /dev/ar0s1a /   ufs rw
 1   1
  /dev/ar0s1e /usrufs rw
 2   2
  /dev/ar0s1d /varufs rw
 2   2
  /dev/acd0   /cdrom  cd9660  ro,noauto
 0   0
  mail#
 
  Also, note the following.  VERY important!
 
  When you go to setup a RAID mirror on a system, using a UDMA or SATA
  controller,
  (ie: NOT using a RAID5 card or SCSI card or some such) here is what you
  do.
 
  Start by going into the system RAID BIOS on boot, setup your RAID, then
  boot the install disk.  Disks ad4 and ad6 will always show.  If disk ar0
  also shows, you can select ar0 and install to that.
 
  IF DISK ar0 DOES NOT SHOW, then your BIOS metadata isn't compatible.
  STOP.
  Reboot system.  GO into BIOS.  DESELECT and DISABLE the RAID.
 
  Boot system with install CD.  At the screen that displays ad4 and ad6,
  select
  ad4.  Select Minimal install.  Don't bother answering any post install
  questions.
  Finish install.  Reboot and login to root.  At command line, issue
  command:
 
  atacontrol create RAID1 ad4 ad6
 
  Immediately reboot from the install CD.  Now, at the disk
 selection screen
  you will see ar0.  Select this.  Delete all existing partitions and
  recreate
  them, install the full system and your in business.

 nice...  thank you. i love condensed instructions. saves so much time...


I should have mentioned that it also isn't necessary to put both disks
on separate

Re: raid or not raid

2007-05-27 Thread Gabriel Rossetti
Jerry McAllister wrote:
 On Thu, May 24, 2007 at 06:07:58AM -0500, [EMAIL PROTECTED] wrote:

   
 On 24/05/07, kalin mintchev [EMAIL PROTECTED] wrote:
 
 so nobody on this list knows anything about raid?
 wrong list?

   
 hi all..

 i have a box in a remote hosting facility that claims that the machine 
 
 has
   
 two discs raided in it but df and fstab show only one disc with a bunch 
 
 of
   
 slices.
 under devices there is another name - ad6 - but it's not mounted 
 
 anywhere.
   
 the one i see both in df and the fstab is ad4 with one big slice and
 different partitions

 they insist there are 2 raided discs in tha machine. the os is 5.4 and i
 think at that point the raid drivers were still considered 
 
 'experimental'.
   
 it makes sense to me that if i don't see a second drive in the fstab 
 
 there
   
 isn;t any mounting which means that there is no raid going on...

 is there any other way i can make sure if raid is actually on?
 would there will be any logs somewhere?
 the machine has been up for about 2 years and the dmesg is long gone...

 thanks.

 
 Lots of people here know plenty about RAID,
 but you don't provide very much information.

 If dmesg itself returns none of the startup info,
 you can look in /var/log/dmesg.[today|yesterday].

 /usr/sbin/pciconf can tell you what controller(s)
 may be attached.

 A proper RAID will show up as a single device,
 just like any hard drive (but different).

 It does seem odd to me that a (supposed) RAID
 would show up as /dev/ad4.
 

 A hardware raid will look like any other drive to the system.
 If it is SATA raid, it should be adN
 It is it SAS raid, it should be daN.

   
I have an SATA RAID controller (rocketraid 1640) and the drive shows up
as daN and not adN
When I tested the controller without the driver loaded the DRIVES showed
up ad adN, I put
drives in caps because this is what I think is happening here, the
driver isn't loaded and/or no
RAID devices were created, so the RAID controller's drives just show up
as drives and the
controller is just used as a non-RAID controller. I suspect this is why
he sees a second disk.

Gabriel
 Some systems allow you to address the drives as either individual
 drives or as the raid - maybe until you have configured it or
 something.   Anyway, on a Dell 2950 I could see both designations
 but figured out which was the raid and used it and all was fine.

 jerry

   
 Possibilities:
 Your RAID really is on /dev/ad4 and /dev/ad6 is
 something unexplained.
 Your RAID controller is unsupported in 5.x and
 not Doing The Right Thing but somehow still (kind
 of) working as a normal [S]ATA controller.
 Your RAID controller is unsupported in 5.x and
 your hosting company realised this and wired
 the shebang up as a normal [S]ATA controller
 because they couldn't get FreeBSD to install
 otherwise.
 There is a RAID controller and there are two disks
 connected to it, but the controller was not set up
 correctly.
 There is a RAID controller and there are two disks
 connected to some other controller which might lead
 to some interesting phone calls.
 Your remote hosting company put a RAID with two
 disks in some random machine and someone else
 is complaining on some other list about the inverse
 of your problem.

 -- 
 --
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

   

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-25 Thread kalin mintchev
 On Thu, 24 May 2007 19:11:27 -0400 (EDT)
 kalin mintchev [EMAIL PROTECTED] wrote:

 unless at device 31.2 on pci0 points to some RAID evidence - which i
 think it's false - than i read this as the ad6 disk sits there unused.
 am i right?!

 FWIW, you can use gstat (as root) to see if a certain geom device (eg, any
 storage ) is being accessed, and its load.


the gstat is pretty cool. it shows something like this:

 L(q)  ops/sr/s   kBps   ms/rw/s   kBps   ms/w   %busy Name
0  6  66278.5  0  00.05.0| ad4
0  6  66278.5  0  00.05.0| ad4s1
0  0  0  00.0  0  00.00.0| ad6
0  0  0  00.0  0  00.00.0| ad4s1a
0  0  0  00.0  0  00.00.0| ad4s1b
0  0  0  00.0  0  00.00.0| ad4s1c
0  0  0  00.0  0  00.00.0| ad4s1d
0  0  0  00.0  0  00.00.0| ad4s1e
0  0  0  00.0  0  00.00.0| ad4s1f
0  6  66278.5  0  00.05.0| ad4s1g


how come there is ad4s1b and ad4s1c when those names don't appear in the
fstab or df?

thanks







 it works at leat on 6.x - not sure about 5.x.



 _
 {Beto|Norberto|Numard} Meijome

 It is a lesson which all history teaches wise men, to put trust in ideas,
 and not in circumstances.
Emerson

 I speak for myself, not my employer. Contents may be hot. Slippery when
 wet. Reading disclaimers makes you go blind. Writing them is worse. You
 have been Warned.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-25 Thread Olivier Nicole
 how come there is ad4s1b and ad4s1c when those names don't appear in the
 fstab or df?

Very often ad4s1b will be the swap and ad4s1c the full slice.

That is not an absolute rule, but it is very much recommended (at
least for ad4s1c) to keep it equivalent to the full slice.

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-25 Thread kalin mintchev
 how come there is ad4s1b and ad4s1c when those names don't appear in the
 fstab or df?

 Very often ad4s1b will be the swap and ad4s1c the full slice.

 That is not an absolute rule, but it is very much recommended (at
 least for ad4s1c) to keep it equivalent to the full slice.

but there is ad4s1 (without [a-g]) - isn;t that the full slice? or ad4s1
is more like ad4 (only one slice) - cause if you notice on the output i
sent in the previous message the kBps value is the same for ad4, ad4s1 and
ad4s1g which (to me) it basically says that only the g partition is being
accessed at that moment.

thanks...





 Olivier
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-25 Thread Norberto Meijome
On Fri, 25 May 2007 15:41:28 +0700 (ICT)
Olivier Nicole [EMAIL PROTECTED] wrote:

  how come there is ad4s1b and ad4s1c when those names don't appear in the
  fstab or df?  
 

because df shows mounted disks, and fstab what to mount. neither of them affect
b (usually swap) or c (as per Olivier below).

you can see b by using the right command, for example, swapinfo:

$ swapinfo
Device  1K-blocks UsedAvail Capacity
/dev/ad0s1b.eli   41943040  4194304 0%


( mine has .eli @ the end because it's an encrypted swap device).

 Very often ad4s1b will be the swap and ad4s1c the full slice.
 
 That is not an absolute rule, but it is very much recommended (at
 least for ad4s1c) to keep it equivalent to the full slice.

indeed :) gstat shows them anyway because they are part of the GEOM subsys - u
just need the right tool  to see them.

Regards,
B
_
{Beto|Norberto|Numard} Meijome

Gravity cannot be blamed for people falling in love.
  Albert Einstein

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-25 Thread Norberto Meijome
On Fri, 25 May 2007 04:37:25 -0400 (EDT)
kalin mintchev [EMAIL PROTECTED] wrote:

replying to your email down the thread...but using this content...

  L(q)  ops/sr/s   kBps   ms/rw/s   kBps   ms/w   %busy Name
 0  6  66278.5  0  00.05.0| ad4

The actual disk, ad4

 0  6  66278.5  0  00.05.0| ad4s1

the first slice in the disk

 0  0  0  00.0  0  00.00.0| ad6
 0  0  0  00.0  0  00.00.0| ad4s1a
 0  0  0  00.0  0  00.00.0| ad4s1b
 0  0  0  00.0  0  00.00.0| ad4s1c
 0  0  0  00.0  0  00.00.0| ad4s1d
 0  0  0  00.0  0  00.00.0| ad4s1e
 0  0  0  00.0  0  00.00.0| ad4s1f
 0  6  66278.5  0  00.05.0| ad4s1g

the g partition in slice 1 of disk ad4.

They all get used (from the GEOM POV) when , for example, userland access the 
fs located in ad4s1g .

clear as mud?  ;)
_
{Beto|Norberto|Numard} Meijome

Your reasoning is excellent -- it's only your basic assumptions that are wrong.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-25 Thread kalin mintchev
 On Fri, 25 May 2007 04:37:25 -0400 (EDT)
 kalin mintchev [EMAIL PROTECTED] wrote:

 replying to your email down the thread...but using this content...

  L(q)  ops/sr/s   kBps   ms/rw/s   kBps   ms/w   %busy Name
 0  6  66278.5  0  00.05.0| ad4

 The actual disk, ad4

 0  6  66278.5  0  00.05.0| ad4s1

 the first slice in the disk

 0  0  0  00.0  0  00.00.0| ad6
 0  0  0  00.0  0  00.00.0| ad4s1a
 0  0  0  00.0  0  00.00.0| ad4s1b
 0  0  0  00.0  0  00.00.0| ad4s1c
 0  0  0  00.0  0  00.00.0| ad4s1d
 0  0  0  00.0  0  00.00.0| ad4s1e
 0  0  0  00.0  0  00.00.0| ad4s1f
 0  6  66278.5  0  00.05.0| ad4s1g

 the g partition in slice 1 of disk ad4.

 They all get used (from the GEOM POV) when , for example, userland access
 the fs located in ad4s1g .

 clear as mud?  ;)

that's what i meant...  well... cool..  thanks to all...
now i have to make some 'interesting' phone calls


 _
 {Beto|Norberto|Numard} Meijome

 Your reasoning is excellent -- it's only your basic assumptions that are
 wrong.

 I speak for myself, not my employer. Contents may be hot. Slippery when
 wet. Reading disclaimers makes you go blind. Writing them is worse. You
 have been Warned.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread kalin mintchev

so nobody on this list knows anything about raid?
wrong list?

 hi all..

 i have a box in a remote hosting facility that claims that the machine has
 two discs raided in it but df and fstab show only one disc with a bunch of
 slices.
 under devices there is another name - ad6 - but it's not mounted anywhere.
 the one i see both in df and the fstab is ad4 with one big slice and
 different partitions

 they insist there are 2 raided discs in tha machine. the os is 5.4 and i
 think at that point the raid drivers were still considered 'experimental'.

 it makes sense to me that if i don't see a second drive in the fstab there
 isn;t any mounting which means that there is no raid going on...

 is there any other way i can make sure if raid is actually on?
 would there will be any logs somewhere?
 the machine has been up for about 2 years and the dmesg is long gone...

 thanks.


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread [EMAIL PROTECTED]

On 24/05/07, kalin mintchev [EMAIL PROTECTED] wrote:


so nobody on this list knows anything about raid?
wrong list?

 hi all..

 i have a box in a remote hosting facility that claims that the machine has
 two discs raided in it but df and fstab show only one disc with a bunch of
 slices.
 under devices there is another name - ad6 - but it's not mounted anywhere.
 the one i see both in df and the fstab is ad4 with one big slice and
 different partitions

 they insist there are 2 raided discs in tha machine. the os is 5.4 and i
 think at that point the raid drivers were still considered 'experimental'.

 it makes sense to me that if i don't see a second drive in the fstab there
 isn;t any mounting which means that there is no raid going on...

 is there any other way i can make sure if raid is actually on?
 would there will be any logs somewhere?
 the machine has been up for about 2 years and the dmesg is long gone...

 thanks.



Lots of people here know plenty about RAID,
but you don't provide very much information.

If dmesg itself returns none of the startup info,
you can look in /var/log/dmesg.[today|yesterday].

/usr/sbin/pciconf can tell you what controller(s)
may be attached.

A proper RAID will show up as a single device,
just like any hard drive (but different).

It does seem odd to me that a (supposed) RAID
would show up as /dev/ad4.

Possibilities:
Your RAID really is on /dev/ad4 and /dev/ad6 is
something unexplained.
Your RAID controller is unsupported in 5.x and
not Doing The Right Thing but somehow still (kind
of) working as a normal [S]ATA controller.
Your RAID controller is unsupported in 5.x and
your hosting company realised this and wired
the shebang up as a normal [S]ATA controller
because they couldn't get FreeBSD to install
otherwise.
There is a RAID controller and there are two disks
connected to it, but the controller was not set up
correctly.
There is a RAID controller and there are two disks
connected to some other controller which might lead
to some interesting phone calls.
Your remote hosting company put a RAID with two
disks in some random machine and someone else
is complaining on some other list about the inverse
of your problem.

--
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread Jack Barnett

[EMAIL PROTECTED] wrote:

On 24/05/07, kalin mintchev [EMAIL PROTECTED] wrote:


so nobody on this list knows anything about raid?
wrong list?

 hi all..

 i have a box in a remote hosting facility that claims that the 
machine has
 two discs raided in it but df and fstab show only one disc with a 
bunch of

 slices.
 under devices there is another name - ad6 - but it's not mounted 
anywhere.

 the one i see both in df and the fstab is ad4 with one big slice and
 different partitions

 they insist there are 2 raided discs in tha machine. the os is 5.4 
and i
 think at that point the raid drivers were still considered 
'experimental'.


 it makes sense to me that if i don't see a second drive in the 
fstab there

 isn;t any mounting which means that there is no raid going on...

 is there any other way i can make sure if raid is actually on?
 would there will be any logs somewhere?
 the machine has been up for about 2 years and the dmesg is long 
gone...


 thanks.



Lots of people here know plenty about RAID,
but you don't provide very much information.

If dmesg itself returns none of the startup info,
you can look in /var/log/dmesg.[today|yesterday].

/usr/sbin/pciconf can tell you what controller(s)
may be attached.

A proper RAID will show up as a single device,
just like any hard drive (but different).

It does seem odd to me that a (supposed) RAID
would show up as /dev/ad4.

Possibilities:
Your RAID really is on /dev/ad4 and /dev/ad6 is
something unexplained.
Your RAID controller is unsupported in 5.x and
not Doing The Right Thing but somehow still (kind
of) working as a normal [S]ATA controller.
Your RAID controller is unsupported in 5.x and
your hosting company realised this and wired
the shebang up as a normal [S]ATA controller
because they couldn't get FreeBSD to install
otherwise.
There is a RAID controller and there are two disks
connected to it, but the controller was not set up
correctly.
There is a RAID controller and there are two disks
connected to some other controller which might lead
to some interesting phone calls.
Your remote hosting company put a RAID with two
disks in some random machine and someone else
is complaining on some other list about the inverse
of your problem.

Also what type of RAID?  If it's Hardware RAID _and_ it's using a 3ware 
card, you can install tw_cli from /usr/ports/sysutils.  It's a nice 
little utility and will show you the status of your units/ports/drives 
and how many drives you have on that controller.







___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread kalin mintchev
 
  i have a box in a remote hosting facility that claims that the machine
 has
  two discs raided in it but df and fstab show only one disc with a
 bunch of
  slices.
  under devices there is another name - ad6 - but it's not mounted
 anywhere.
  the one i see both in df and the fstab is ad4 with one big slice and
  different partitions
 
  they insist there are 2 raided discs in tha machine. the os is 5.4 and
 i
  think at that point the raid drivers were still considered
 'experimental'.
 
  it makes sense to me that if i don't see a second drive in the fstab
 there
  isn;t any mounting which means that there is no raid going on...
 
  is there any other way i can make sure if raid is actually on?
  would there will be any logs somewhere?
  the machine has been up for about 2 years and the dmesg is long
 gone...
 
  thanks.
 

 Lots of people here know plenty about RAID,
 but you don't provide very much information.

ok. fair enough...  thanks.

 If dmesg itself returns none of the startup info,
 you can look in /var/log/dmesg.[today|yesterday].

as i mentioned the machine has been up without reboot for almost 2 years...

 /usr/sbin/pciconf can tell you what controller(s)
 may be attached.

right, i forgot about pciconf...
i can see one SATA and one EIDE controllers. both ATA subclass. no RAID
controllers. nothing about RAID anywhere from pciconf

 A proper RAID will show up as a single device,
 just like any hard drive (but different).

what do you mean by 'but different'? the actual df output lists this:

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s1a290M 81M186M30%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad4s1d989M 50K910M 0%/tmp
/dev/ad4s1f 15G5.0G8.4G37%/usr
/dev/ad4s1e989M 33M877M 4%/var
/dev/ad4s1g126G 90G 25G78%/work

i read it as one disk - ad4 - with one big slice 1 and 5 partitions.
am i wrong? fstab shows same devices.

 It does seem odd to me that a (supposed) RAID
 would show up as /dev/ad4.

please elaborate. do you mean that the raided disks will have another
id/name rather than 'ad'?

 Possibilities:
 Your RAID really is on /dev/ad4 and /dev/ad6 is
 something unexplained.
 Your RAID controller is unsupported in 5.x and
 not Doing The Right Thing but somehow still (kind
 of) working as a normal [S]ATA controller.
 Your RAID controller is unsupported in 5.x and
 your hosting company realised this and wired
 the shebang up as a normal [S]ATA controller
 because they couldn't get FreeBSD to install
 otherwise.
 There is a RAID controller and there are two disks
 connected to it, but the controller was not set up
 correctly.
 There is a RAID controller and there are two disks
 connected to some other controller which might lead
 to some interesting phone calls.
 Your remote hosting company put a RAID with two
 disks in some random machine and someone else
 is complaining on some other list about the inverse
 of your problem.

ok. i guess i'd explore the 'interesting phone calls' one.
if it doesn;t walk like a duck and it doesn;t quack like a duck it must be
some other bird/thing...



 --
 --



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread kalin mintchev

 Also what type of RAID?  If it's Hardware RAID _and_ it's using a 3ware
 card,

doubt it. i don't see anything that ponts to that in the pciconf output..

 you can install tw_cli from /usr/ports/sysutils.  It's a nice
 little utility and will show you the status of your units/ports/drives
 and how many drives you have on that controller.









___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread Derek Ragona

At 05:30 AM 5/24/2007, kalin mintchev wrote:


so nobody on this list knows anything about raid?
wrong list?

 hi all..

 i have a box in a remote hosting facility that claims that the machine has
 two discs raided in it but df and fstab show only one disc with a bunch of
 slices.
 under devices there is another name - ad6 - but it's not mounted anywhere.
 the one i see both in df and the fstab is ad4 with one big slice and
 different partitions

 they insist there are 2 raided discs in tha machine. the os is 5.4 and i
 think at that point the raid drivers were still considered 'experimental'.

 it makes sense to me that if i don't see a second drive in the fstab there
 isn;t any mounting which means that there is no raid going on...

 is there any other way i can make sure if raid is actually on?
 would there will be any logs somewhere?
 the machine has been up for about 2 years and the dmesg is long gone...

 thanks.




It is likely a hardware raid setup in the hardware BEFORE FreeBSD was 
installed.  In this type of setup the RAID array just looks like a regular 
hard disk to the OS.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread [EMAIL PROTECTED]

On 24/05/07, kalin mintchev [EMAIL PROTECTED] wrote:

 
  i have a box in a remote hosting facility that claims that the machine
 has
  two discs raided in it but df and fstab show only one disc with a
 bunch of
  slices.
  under devices there is another name - ad6 - but it's not mounted
 anywhere.
  the one i see both in df and the fstab is ad4 with one big slice and
  different partitions
 
  they insist there are 2 raided discs in tha machine. the os is 5.4 and
 i
  think at that point the raid drivers were still considered
 'experimental'.
 
  it makes sense to me that if i don't see a second drive in the fstab
 there
  isn;t any mounting which means that there is no raid going on...
 
  is there any other way i can make sure if raid is actually on?
  would there will be any logs somewhere?
  the machine has been up for about 2 years and the dmesg is long
 gone...
 
  thanks.
 

. . .

 A proper RAID will show up as a single device,
 just like any hard drive (but different).

what do you mean by 'but different'? the actual df output lists this:

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s1a290M 81M186M30%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad4s1d989M 50K910M 0%/tmp
/dev/ad4s1f 15G5.0G8.4G37%/usr
/dev/ad4s1e989M 33M877M 4%/var
/dev/ad4s1g126G 90G 25G78%/work

i read it as one disk - ad4 - with one big slice 1 and 5 partitions.
am i wrong? fstab shows same devices.

 It does seem odd to me that a (supposed) RAID
 would show up as /dev/ad4.

please elaborate. do you mean that the raided disks will have another
id/name rather than 'ad'?


Not knowing what hardware you have, I would still hazard
that a RAID device will not show up as /dev/adN.
I would guess that the RAID controllers that use cam
might have their devices called by the /dev/daN convention,
but I don't know that.


ok. i guess i'd explore the 'interesting phone calls' one.
if it doesn;t walk like a duck and it doesn;t quack like a duck it must be
some other bird/thing...



I would agree with that.

--
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread [EMAIL PROTECTED]

On 24/05/07, Derek Ragona [EMAIL PROTECTED] wrote:

At 05:30 AM 5/24/2007, kalin mintchev wrote:

so nobody on this list knows anything about raid?
wrong list?

  hi all..
 
  i have a box in a remote hosting facility that claims that the machine has
  two discs raided in it but df and fstab show only one disc with a bunch of
  slices.
  under devices there is another name - ad6 - but it's not mounted anywhere.
  the one i see both in df and the fstab is ad4 with one big slice and
  different partitions
 
  they insist there are 2 raided discs in tha machine. the os is 5.4 and i
  think at that point the raid drivers were still considered 'experimental'.
 
  it makes sense to me that if i don't see a second drive in the fstab there
  isn;t any mounting which means that there is no raid going on...
 
  is there any other way i can make sure if raid is actually on?
  would there will be any logs somewhere?
  the machine has been up for about 2 years and the dmesg is long gone...
 
  thanks.
 
 

It is likely a hardware raid setup in the hardware BEFORE FreeBSD was
installed.  In this type of setup the RAID array just looks like a regular
hard disk to the OS.



Now I'm curious: are there RAID controllers that FreeBSD
just sees as a [S]ATA controller with a [S]ATA disk attached?


--
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread Roland Smith
On Thu, May 24, 2007 at 06:30:06AM -0400, kalin mintchev wrote:
 
 so nobody on this list knows anything about raid?
 wrong list?
 
  hi all..
 
  i have a box in a remote hosting facility that claims that the machine has
  two discs raided in it but df and fstab show only one disc with a bunch of
  slices.
  under devices there is another name - ad6 - but it's not mounted anywhere.
  the one i see both in df and the fstab is ad4 with one big slice and
  different partitions

My (VIA Tech V-RAID) raid disk shows up as ar0, although the ad4 and ad6
device nodes exist as well.

Do you have the ataraid device in the kernel?

  they insist there are 2 raided discs in tha machine. the os is 5.4 and i
  think at that point the raid drivers were still considered
  'experimental'.

Then ask them how it's done.

  it makes sense to me that if i don't see a second drive in the fstab there
  isn;t any mounting which means that there is no raid going on...

If you're seeing an ad device, it's not RAID-ed, AFAIK.

  is there any other way i can make sure if raid is actually on?
  would there will be any logs somewhere?
  the machine has been up for about 2 years and the dmesg is long gone...

It should be in /var/run/dmesg.boot.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpibRZkquGy6.pgp
Description: PGP signature


Re: raid or not raid

2007-05-24 Thread [EMAIL PROTECTED]

On 24/05/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

On 24/05/07, kalin mintchev [EMAIL PROTECTED] wrote:



 please elaborate. do you mean that the raided disks will have another
 id/name rather than 'ad'?

Not knowing what hardware you have, I would still hazard
that a RAID device will not show up as /dev/adN.
I would guess that the RAID controllers that use cam
might have their devices called by the /dev/daN convention,
but I don't know that.


One of those days here, sorry.

The last RAID controller I used under FreeBSD
was a compaq 2i which showed up as /dev/ida0
and (IIRC) the RAID was /dev/idad0 (so idad0s1a,
idad0s1b, and so on).  The disks were all SCSI,
but since none of them were plugged into either
of the (more normal) SCSI controllers there were
no /dev/daN at all.

--
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread John Nielsen
On Thursday 24 May 2007 06:30:06 am kalin mintchev wrote:
 so nobody on this list knows anything about raid?
 wrong list?

  hi all..
 
  i have a box in a remote hosting facility that claims that the machine
  has two discs raided in it but df and fstab show only one disc with a
  bunch of slices.
  under devices there is another name - ad6 - but it's not mounted
  anywhere. the one i see both in df and the fstab is ad4 with one big
  slice and different partitions
 
  they insist there are 2 raided discs in tha machine. the os is 5.4 and i
  think at that point the raid drivers were still considered
  'experimental'.
 
  it makes sense to me that if i don't see a second drive in the fstab
  there isn;t any mounting which means that there is no raid going on...
 
  is there any other way i can make sure if raid is actually on?
  would there will be any logs somewhere?
  the machine has been up for about 2 years and the dmesg is long gone...

My guess would be that it's not actually doing RAID. Real hardware RAID 
controllers either require their own drivers (twe, for instance shows disks 
as twed0, etc) or present disks as SCSI devices (e.g. da0). ATA pseudo-raid 
hardware supported by FreeBSD's ata(4) driver shows both the raw disks (ad4, 
ad6, etc) AND an array device like ar0.

If RAID was set up in the BIOS then FreeBSD is probably ignoring it, perhaps 
because ata(4) doesn't grok the metadata format used by the RAID card.

If I were you I would aim to migrate to gmirror RSN.

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread Jerry McAllister
On Thu, May 24, 2007 at 06:07:58AM -0500, [EMAIL PROTECTED] wrote:

 On 24/05/07, kalin mintchev [EMAIL PROTECTED] wrote:
 
 so nobody on this list knows anything about raid?
 wrong list?
 
  hi all..
 
  i have a box in a remote hosting facility that claims that the machine 
 has
  two discs raided in it but df and fstab show only one disc with a bunch 
 of
  slices.
  under devices there is another name - ad6 - but it's not mounted 
 anywhere.
  the one i see both in df and the fstab is ad4 with one big slice and
  different partitions
 
  they insist there are 2 raided discs in tha machine. the os is 5.4 and i
  think at that point the raid drivers were still considered 
 'experimental'.
 
  it makes sense to me that if i don't see a second drive in the fstab 
 there
  isn;t any mounting which means that there is no raid going on...
 
  is there any other way i can make sure if raid is actually on?
  would there will be any logs somewhere?
  the machine has been up for about 2 years and the dmesg is long gone...
 
  thanks.
 
 
 Lots of people here know plenty about RAID,
 but you don't provide very much information.
 
 If dmesg itself returns none of the startup info,
 you can look in /var/log/dmesg.[today|yesterday].
 
 /usr/sbin/pciconf can tell you what controller(s)
 may be attached.
 
 A proper RAID will show up as a single device,
 just like any hard drive (but different).
 
 It does seem odd to me that a (supposed) RAID
 would show up as /dev/ad4.

A hardware raid will look like any other drive to the system.
If it is SATA raid, it should be adN
It is it SAS raid, it should be daN.

Some systems allow you to address the drives as either individual
drives or as the raid - maybe until you have configured it or
something.   Anyway, on a Dell 2950 I could see both designations
but figured out which was the raid and used it and all was fine.

jerry

 
 Possibilities:
 Your RAID really is on /dev/ad4 and /dev/ad6 is
 something unexplained.
 Your RAID controller is unsupported in 5.x and
 not Doing The Right Thing but somehow still (kind
 of) working as a normal [S]ATA controller.
 Your RAID controller is unsupported in 5.x and
 your hosting company realised this and wired
 the shebang up as a normal [S]ATA controller
 because they couldn't get FreeBSD to install
 otherwise.
 There is a RAID controller and there are two disks
 connected to it, but the controller was not set up
 correctly.
 There is a RAID controller and there are two disks
 connected to some other controller which might lead
 to some interesting phone calls.
 Your remote hosting company put a RAID with two
 disks in some random machine and someone else
 is complaining on some other list about the inverse
 of your problem.
 
 -- 
 --
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread doug

On Thu, 24 May 2007, kalin mintchev wrote:




Also what type of RAID?  If it's Hardware RAID _and_ it's using a 3ware
card,


doubt it. i don't see anything that ponts to that in the pciconf output..


you can install tw_cli from /usr/ports/sysutils.  It's a nice
little utility and will show you the status of your units/ports/drives
and how many drives you have on that controller.



I have a similiar setup and some RAID controller will appear as ad4. I have 
RAID5 on a Dell PE2400. There is no doubt it's RAID since I put the disks in and 
formatted the array. So I am pretty sure :)


This is a fairly old machine and FreeBSD does not support the controller in that 
to do any kind of repairs/changes to the array must be done via the BIOS.


__
The dmesg:

atapci0: GENERIC ATA controller port 
0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device

31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
atapci1: GENERIC ATA controller port 
0xbc60-0xbc6f,0xbc78-0xbc7b,0xbc80-0xbc87,0xbc90-0xbc93,0xbc

98-0xbc9f irq 20 at device 31.2 on pci0
ata2: channel #0 on atapci1
ata3: channel #1 on atapci1
:
ad4: 76293MB WDC WD800JD-75MSA2/10.01E03 [155009/16/63] at ata2-master UDMA33
Mounting root from ufs:/dev/ad4s3a

___
df
Filesystem  1K-blocks UsedAvail Capacity  Mounted on
/dev/ad4s3a50763058900   40812013%/
devfs   110   100%/dev
/dev/ad4s3g  61419970 44879206 1162716879%/home
/dev/ad4s3e507630   70   466950 0%/tmp
/dev/ad4s3f   6090094  1807368  379552032%/usr
/dev/ad4s3d   3045006  1431302  137010451%/var

That said it works perfectly (if invisibly). I have had single disk failures 
over the years and happily raid'ed on until I could swap out the disk and 
rebuild the array. Unfortunately the only thing hot about the swap was my blood 
pressure.


So the answer is you can not tell that its not RAID. If you have a remote 
console and can see the BIOS messages on a reboot - that should clear it up


I hope this helps
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread kalin mintchev
 On Thu, May 24, 2007 at 06:30:06AM -0400, kalin mintchev wrote:

 so nobody on this list knows anything about raid?
 wrong list?

  hi all..
 
  i have a box in a remote hosting facility that claims that the machine
 has
  two discs raided in it but df and fstab show only one disc with a
 bunch of
  slices.
  under devices there is another name - ad6 - but it's not mounted
 anywhere.
  the one i see both in df and the fstab is ad4 with one big slice and
  different partitions

 My (VIA Tech V-RAID) raid disk shows up as ar0, although the ad4 and ad6
 device nodes exist as well.

 Do you have the ataraid device in the kernel?

yes. but isn;t that in by default in 5.4 GENERIC?!

  they insist there are 2 raided discs in tha machine. the os is 5.4 and
 i
  think at that point the raid drivers were still considered
  'experimental'.

 Then ask them how it's done.

  it makes sense to me that if i don't see a second drive in the fstab
 there
  isn;t any mounting which means that there is no raid going on...

 If you're seeing an ad device, it's not RAID-ed, AFAIK.

  is there any other way i can make sure if raid is actually on?
  would there will be any logs somewhere?
  the machine has been up for about 2 years and the dmesg is long
 gone...

 It should be in /var/run/dmesg.boot.

thanks. i guess that solves the ad6 mistery:

atapci0: Intel ICH5 UDMA100 controller port
0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
atapci1: Intel ICH5 SATA150 controller port
0xcc80-0xcc8f,0xcc98-0xcc9b,0xcca0-0xcca7,0xccb0-0xccb3,0xccb8-0xccbf irq
18 at device 31.2 on pci0
ata2: channel #0 on atapci1
ata3: channel #1 on atapci1
.
ad4: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at ata2-master
SATA150
ad6: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at ata3-master
SATA150
Mounting root from ufs:/dev/ad4s1a

unless at device 31.2 on pci0 points to some RAID evidence - which i
think it's false - than i read this as the ad6 disk sits there unused.
am i right?!

according to pciconf the atapci0 and atapci1 are differnt conrollers -
EIDE and SATA so they can both be on pci0 as 31.1 and 31.2?! still no RAID
though...

thanks again...


 Roland
 --
 R.F.Smith   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread Jerry McAllister
On Thu, May 24, 2007 at 07:11:27PM -0400, kalin mintchev wrote:

  On Thu, May 24, 2007 at 06:30:06AM -0400, kalin mintchev wrote:
 
  so nobody on this list knows anything about raid?
  wrong list?
 
   hi all..
  
   i have a box in a remote hosting facility that claims that the machine
  has
   two discs raided in it but df and fstab show only one disc with a
  bunch of
   slices.
   under devices there is another name - ad6 - but it's not mounted
  anywhere.
   the one i see both in df and the fstab is ad4 with one big slice and
   different partitions
 
  My (VIA Tech V-RAID) raid disk shows up as ar0, although the ad4 and ad6
  device nodes exist as well.
 
  Do you have the ataraid device in the kernel?
 
 yes. but isn;t that in by default in 5.4 GENERIC?!
 
   they insist there are 2 raided discs in tha machine. the os is 5.4 and
  i
   think at that point the raid drivers were still considered
   'experimental'.
 
  Then ask them how it's done.
 
   it makes sense to me that if i don't see a second drive in the fstab
  there
   isn;t any mounting which means that there is no raid going on...
 
  If you're seeing an ad device, it's not RAID-ed, AFAIK.
 
   is there any other way i can make sure if raid is actually on?
   would there will be any logs somewhere?
   the machine has been up for about 2 years and the dmesg is long
  gone...
 
  It should be in /var/run/dmesg.boot.
 
 thanks. i guess that solves the ad6 mistery:
 
 atapci0: Intel ICH5 UDMA100 controller port
 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
 ata0: channel #0 on atapci0
 ata1: channel #1 on atapci0
 atapci1: Intel ICH5 SATA150 controller port
 0xcc80-0xcc8f,0xcc98-0xcc9b,0xcca0-0xcca7,0xccb0-0xccb3,0xccb8-0xccbf irq
 18 at device 31.2 on pci0
 ata2: channel #0 on atapci1
 ata3: channel #1 on atapci1
 .
 ad4: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at ata2-master
 SATA150
 ad6: 152587MB WDC WD1600JS-75MHB0/03.01C03 [310019/16/63] at ata3-master
 SATA150
 Mounting root from ufs:/dev/ad4s1a
 
 unless at device 31.2 on pci0 points to some RAID evidence - which i
 think it's false - than i read this as the ad6 disk sits there unused.
 am i right?!

That is what this looks like.   It looks like two 150 GB drives
being handled separately.   The raids I have handled have been SCSI
or SAS, but I presume would be handled the same except switching da to ad.
I have always had SCSI and so I have never had to muck with Master/Slave
but it looks like you have the disks plugged in to channels  0  1 of the
second controller.  That doesn't look like it is set up for raid.
Maybe something needs to be done in BIOS.

I remember, as mentioned before, on the most recent systems I did, that 
both the individual drives and the raid device showed up in the DMESG 
output and it took a while to even notice the small single line with the 
raid device mentioned amidst the mass amount of stuff on the individual 
drives - there were 6.  I almost missed it, but once I found it and used 
it, the system treated things just right.I don't know what would
have happened if I had tried to build a system on the individual drive 0
instead of the raid device, since, fortunately I found it and built
on the raid.


jerry

 
 according to pciconf the atapci0 and atapci1 are differnt conrollers -
 EIDE and SATA so they can both be on pci0 as 31.1 and 31.2?! still no RAID
 though...
 
 thanks again...
 
 
  Roland
  --
  R.F.Smith   http://www.xs4all.nl/~rsmith/
  [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
  pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: raid or not raid

2007-05-24 Thread Norberto Meijome
On Thu, 24 May 2007 19:11:27 -0400 (EDT)
kalin mintchev [EMAIL PROTECTED] wrote:

 unless at device 31.2 on pci0 points to some RAID evidence - which i
 think it's false - than i read this as the ad6 disk sits there unused.
 am i right?!

FWIW, you can use gstat (as root) to see if a certain geom device (eg, any 
storage ) is being accessed, and its load.

it works at leat on 6.x - not sure about 5.x.



_
{Beto|Norberto|Numard} Meijome

It is a lesson which all history teaches wise men, to put trust in ideas, and 
not in circumstances.
   Emerson

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]