Questions about camcontrol, hot-swapping, ciss and Compaq SmartArray

2008-03-10 Thread Josh Endries

Hello,

Today I saw that one of my disks seems to be dead/dying in a RAID 5 array I 
have:

http://pastebin.ca/937249

snip
loki.domain.int ciss0: *** Fatal drive error, SCSI port 1 ID 0
loki.domain.int (da1:ciss0:0:1:0): WRITE(10). CDB: 2a 0 c ae 3f d0 0 0 20 0
loki.domain.int (da1:ciss0:0:1:0): CAM Status: SCSI Status Error
loki.domain.int (da1:ciss0:0:1:0): SCSI Status: Check Condition
loki.domain.int (da1:ciss0:0:1:0): MEDIUM ERROR asc:11,0
loki.domain.int (da1:ciss0:0:1:0): Unrecovered read error
loki.domain.int (da1:ciss0:0:1:0): Retrying Command (per Sense Data)
/snip

I see messages for port 0 only, but varying ID 0-3, and I'm not sure what that 
means (partition?). After a while the error messages went away, though the 
disks were/are still being used. I found cciss_vol_status online but it says the 
volume is OK (not degraded), which doesn't really make sense to me:


# cciss_vol_status /dev/ciss0
/dev/ciss0: (Smart Array 642) RAID 0 Volume 0(?) status: OK.
/dev/ciss0: (Smart Array 642) RAID 5 Volume 1(?) status: OK.

Is there a way I can tell which port/disk is bad from these messages?

Assuming I can determine which disk it is, do I need to do anything in the OS 
before/after I swap out a drive? I've seen people talk about rescanning and 
running other camcontrol commands before...


Any other tips?

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


ACL mask problems

2007-10-09 Thread Josh Endries

Hello,

I'm getting quite annoyed at ACLs. I don't understand why this is 
happening: I have a directory that gets subdirectories created by a web 
script, but for some reason those directories have different 
permissions. Here is the parent's default ACL, which as I understand it 
should be what subdirectories are created with:


# getfacl -d private/logs/mail/2007
#file:private/logs/mail/2007
#owner:1005
#group:1005
user::rwx
user:www:rwx
user:rsync:rwx
group::rwx
mask::rwx
other::---

This is the ACL of a directory created by the script:

# getfacl private/logs/mail/2007/10
#file:private/logs/mail/2007/10
#owner:1005
#group:1005
user::rwx
user:www:rwx# effective: r-x
user:rsync:rwx  # effective: r-x
group::rwx  # effective: r-x
mask::r-x
other::---

This unfortunately prevents Apache from writing it's log files. Why did 
the mask change? I know there's some link between the mask and group 
permissions, or something weird like that, but I thought group being rwx 
and mask rwx would cause the new mask to also be rwx...maybe other is 
causing the issue? That seems pretty dumb to me. I've read various pages 
on ACLs, including the handbook, and I haven't been able to understand 
this. :(


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


Trouble making packages, wrong path

2007-01-04 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just created a new jail for a pkg repo and I'm trying to make
packages, but it isn't using the correct path. I've tried all sorts of
things to get it to work correctly but it insists on making packages in
/usr/ports/section/port/ instead of /usr/ports/packages/All. I have
another jail (pkg repo) that works which I've copied files from to try
and fix it but it doesn't work. It's driving me batty. What would cause
it to put the files in the wrong place? I've tried setting env vars all
over the place but nothing seems to work.

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFFnVtjV/+PyAj2L+IRAiUXAKCxER7Fhomd3bw+DKEdybkqi+bx3gCfbksT
Gw26L/KoxgDWYKsg2At7AO0=
=PTZJ
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems booting on a Compaq DL360 (P21 version)

2006-10-23 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ted Mittelstaedt wrote:
 Pull the disk set in the running system and put it in the non-running
 system and see if it boots, if it does, try putting the disks that came
 out of the non-running system into the running system and seeing if you
 can install on them.

I tried using the working computer's disks (they are all Compaq brand)
in the non-working machine and they wouldn't boot. Just now I took the
non-working computer's disks, put them into the working machine and
installed to them. I rebooted (in the working machine) and it worked,
then moved the disks back to the non-working machine and booted that,
and no luck. Same _ screen, no booting. :(

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (FreeBSD)

iD4DBQFFPOgeV/+PyAj2L+IRAgFXAJ92tOch5p8Hqf7M8yzxPfbwf+GTOwCWJ0bW
xlr0OdXj0oLQSeYUH94NnA==
=KLZS
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems booting on a Compaq DL360 (P21 version)

2006-10-20 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I recently got two of these old machines used. One installed and runs
fine, but the other... I've been working on it for three days now and I
can't get it to boot. I can install just fine from the CD (using 6.1-R),
but upon reboot it goes past the RAID init and gets to a blank screen
with only _ in the top-left corner, beeps twice, and sits there. The
good machine does beeps also, but continues booting. This one sits
there for a few minutes and then gives me a non-system disk error; it
doesn't seem to find anything to boot from.

I've tried resetting the dip switch for configuration and doing the
system erase and using the SmartStart CD to initialize it before
installing. It wants to know which OS when I do this and I've tried
Linux, Windows 2000 Server and Other, and none of them work... I haven't
gone through all the (dozens of) options. The RAID array seems to work,
no disk problems writing during install and nothing reported in the
SmartStart utility.

I've read threads about ACPI problems with 6.0 but I don't think I'm
even getting that far. :( I tried taking the two disks from the working
machine and putting them into the non-working one and it didn't work, I
still get the _ screen and it doesn't move on from there. I'm installing
simply by using A for auto-slices and A for auto-filesystems and
installing the standard MBR.

Has anyone seen this or successfully installed on a DL360 (g1 I think,
P21 BIOS)? If so, is there a certain setting, OS or otherwise, that I
might need to do?

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFFOSfdV/+PyAj2L+IRApfRAKCG/sv2EHVF6/CqJ5m/qWp/N0S7hwCeLeqb
J8PyjnftvHo1dNXDwF1tBuc=
=BHT/
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RAID online capacity expansion

2006-06-20 Thread Josh Endries

Hello,

Has anyone out there successfully done an online expansion of a RAID 
array in FreeBSD? How is it done and with what hardware did it work? 
From what I can gather, it's not possible. Aside from the fact that 
fdisk(8) says Editing an existing slice will most likely result in the 
loss of all data in that slice, growfs(8) says it cannot enlarge a 
mounted filesystem. disklabel seems to be okay with making live changes, 
but I haven't tested it.


Is there any way to do this in FreeBSD or is Linux+LVM the way to go?

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


Installing a custom kernel with sysinstall over NFS

2006-03-27 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I have NFS+PXE installs working, but I need quotas enabled. I haven't
seen any way to do this other than a custom kernel, so I need to have
sysinstall push a custom build kernel out instead of the default one. I
copied the disc1 ISO to a directory, /var/export/6.0-RELEASE, and I need
to update this with my custom kernel but I don't really know how. I
found where it keeps the base distribution gz files, now how do I get
my new kernel into there?

I read online about making a release, and it seems I should go into my
/usr/src and do a make release chrootdir=/var/export/6.0-RELEASE, is
this correct or is there an easier way to do this? The machine isn't too
fast, it takes overnight to build a kernel, so if there's a better way
that would rock. I could copy my files and make my own gz's but I'm
hoping there's a better way, or a way to fetch a different kernel, or
something.

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFEKF24V/+PyAj2L+IRAmo4AJ4sARPUBGPlIAsKHxGUSFEO5NgrxQCfeXAc
nU5UrDcblkM5VOG2SyQhCec=
=7/fG
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Adding lines to /etc/rc.conf during sysinstall wihout being REMOVED

2005-12-16 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Does anyone know the correct way to add lines to rc.conf without
sysinstall commenting them out and prepending REMOVED to them,
during an automated install.cfg routine? Currently I have a pkg I
made that adds stuff like ntp.conf and rc.conf, but all the lines in
my custom rc.conf are removed after the script finishes.

I looked through the code for sysinstall but didn't see any way to
disable this behavior (my C isn't very good). What would be the
correct way to do this? I'm now having my pkg install a rc.d script
which cat's  /etc/rc.conf...

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDovfOV/+PyAj2L+IRAjzcAJ4lJm+8vIP3QLy/DmuxTB0b4APp1gCfbhI1
waoWrsCORg3CiQMVToAFEaI=
=RlT3
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adding lines to /etc/rc.conf during sysinstall wihout being REMOVED

2005-12-16 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Erik Nørgaard wrote:
 Josh Endries wrote:
 
 Does anyone know the correct way to add lines to rc.conf without
 sysinstall commenting them out and prepending REMOVED to them,
 during an automated install.cfg routine? Currently I have a pkg I
 made that adds stuff like ntp.conf and rc.conf, but all the lines in
 my custom rc.conf are removed after the script finishes.

 could you post your install.cfg?

Here is my install.cfg:

debug=YES
#nonInteractive=YES
#noWarn=YES

disk=ad0
partition=all
bootManager=standard
diskPartitionEditor
#diskPartitionWrite

ad0s1-2=swap 4194304 none
ad0s1-1=ufs 524288 /
ad0s1-3=ufs 19531250 /home 1
ad0s1-4=ufs 2097152 /tmp 1
ad0s1-5=ufs 19531250 /usr 1
ad0s1-6=ufs 0 /var 1
diskLabelEditor
diskLabelCommit

hostname=test
netDev=vr0
nfs=192.168.0.3:/var/export/6.0-RELEASE/
tryDHCP=YES
mediaSetNFS

#nameserver=192.168.0.7

dists=base
distSetCustom

installCommit

package=portupgrade
packageAdd
package=sudo
packageAdd
package=stunnel
packageAdd
package=syslog-ng
packageAdd

command=cp /dist/pkgtools.conf /usr/local/etc
system
command=sed -i '' 's/md5/blf/' /etc/login.conf
system
command=cap_mkdb /etc/login.conf
system
command=pkg_add /dist/packages/All/my_base.tgz
system

shutdown

This is the plist for my_base.tgz (warning, it's my first package
attempt :)):

@name my_base
@cwd /etc
@srcdir /tmp/my_base
ntp.conf
rc.conf
@cwd /usr/local
@srcdir /tmp/my_base
etc/syslog-ng/syslog-ng.conf
etc/stunnel/stunnel.conf
@exec ln /usr/local/etc/rc.d/syslog-ng.sh.sample
/usr/local/etc/rc.d/syslog-ng.sh

/tmp/my_base/etc/rc.conf:

sshd_enable=YES
sshd_flags=-p 
ntpd_enable=YES
stunnel_enable=YES
syslogd_enable=NO

After sysinstall's shutdown and reboot, it comments out these
lines (using #REMOVED: %s). Converting them to something like this
in install.cfg didn't help, regardless of quotes:

command=echo sshd_enable=YES  /etc/rc.conf
system

Thanks,
Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDow6wV/+PyAj2L+IRAt/xAKCLUjw7cn9CXjyo23aOsVewSQoc5QCgquKL
UCf3w0TzJx115E4f2aCKve0=
=biMR
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sysinstall swap node problem

2005-12-13 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

So anyone have a resolution to this problem asked last year:

http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/040502.html
http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/042082.html

I'm having the same problem but haven't figured it out, maybe it's
just a bug in sysinstall? If I don't use diskLabelCommit and wait
until installCommit later it continues, but that doesn't make sense
to me; there's no more disk setup type stuff afterwards, just
packages. Bleh.

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDn0ZOV/+PyAj2L+IRApntAKCdI/5p4VRqGwaF/UcYeYNBLnzePwCeMcjd
C6cSGU+SdKR/Z7tlrpkIisM=
=v6yS
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sysinstall swap node problem

2005-12-13 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Josh Endries wrote:
 I'm having the same problem but haven't figured it out, maybe it's
 just a bug in sysinstall? If I don't use diskLabelCommit and wait
 until installCommit later it continues, but that doesn't make sense
 to me; there's no more disk setup type stuff afterwards, just
 packages. Bleh.

Sorry the command to remove is diskPartitionWrite, not diskLabelCommit.

J
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDn0jOV/+PyAj2L+IRAgBfAJ49pAd24PlSjnDcXWoNDWm4S+KEDgCeN3Hc
Et0fGtvES0Td0hMypF8uUZw=
=hO1y
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


iSCSI support

2005-11-21 Thread Josh Endries
I read in the status report that work is being done on iSCSI, which
is awesome. We're putting in a SAN at work, starting at probably 8 TB
and growing. I'm currently looking at a Coraid AoE
(ATA-over-Ethernet) solution since it seems to have good support for
FreeBSD and Windows drivers in the works. On the other hand, iSCSI
has Windows support and FreeBSD in the works.

Has anyone out there had experience with either iSCSI or Coraid/AoE
on FreeBSD for a SAN? I'd like to know what NICs/HBAs and stuff works
well and what doesn't, if anyone has experience with it.

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


Plasmon UDO drive?

2005-11-17 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

Does anyone know if Plasmon USO drives work with FreeBSD? They're
SCSI WORM devices. Are there any other WORM devices that do?

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDfJ01V/+PyAj2L+IRAvXVAJ40R4H0EwxiF4OQVdT2LP2DTGRj2QCfRhwe
u1+IZMPwmMQ6N/56fg4x+pI=
=SuHg
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Dialogic 4-port modem PCI cards?

2005-06-21 Thread Josh Endries
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I have an Intel Dialogic D/4PCI 4-port modem and I'm wondering if
anyone knows whether I can get it working on FreeBSD. I haven't
touched a modem in probably 15 years and I've forgotten most
everyting heh. It works on Linux, via Intel's software, but I've
tried googling and looking through the hardware list and kernel
files but haven't found anything.

Josh
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCuG/gV/+PyAj2L+IRAjCjAJ0fBdJCInLCsuOHIWN459Ltf5iK+gCeLEdk
SxvFYxswO3luYg92kSw/fDI=
=hUGl
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD in a SAN environment

2004-11-22 Thread Josh Endries
Hello,
We are looking at putting in a SAN and I would like to know if anyone 
has any experience with using FreeBSD on a SAN. From Googling I've found 
some (old) references to some hardware working...

Qlogic ISP 2300 PCI FC-AL adapter connected to EMC/Clariion
Qlogic ISP 2200 PCI FC-AL adapter
Myricom Lanai 4.1 SAN adapter (M2M-PCI32C)
Myricom Lanai 4.1 LAN adapter (M2F-PCI32)
Myricom Lanai 5.2 SAN adapter
Last I looked there wasn't anything on the hardware list regarding SAN 
HBAs, switches, etc.. I'm wondering if anyone has used anything else 
(more recent) or has current information about FreeBSD on SANs.

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