Gvinum mirror growfs broken HELP, 7.2 RELEASE

2009-11-05 Thread Troy Kocher
Could anyone give me some input on this. .

Issue:  Trying to grow an existing mirrored filesystem with growfs fails. . :

Given:
FreeBSD 7.2-RELEASE (GENERIC) #0: Fri May  1 07:18:07 UTC 2000
-
2 drives:
D data1 State: up   /dev/da1s1  A:
432325/1430506 MB (30%)
D data0 State: up   /dev/da0s1g A:
408351/1406532 MB (29%)

9 volumes:
..
V support_mirrorState: up   Plexes:   2 Size:   2048 MB
..
18 plexes:
..
P support_mirror.p0   C State: up   Subdisks: 1 Size:   2048 MB
P support_mirror.p1   C State: up   Subdisks: 1 Size:   2048 MB
..
18 subdisks:
S support_mirror.p0.s0  State: up   D: data0Size:   2048 MB
S support_mirror.p1.s0  State: up   D: data1Size:   2048 MB
...


Problem Description:

Here are is the list after I made the update of  's1'
9 volumes:

V support_mirrorState: up   Plexes:   2 Size:   4096 MB

18 plexes:
..
P support_mirror.p0   C State: up   Subdisks: 2 Size:   4096 MB
P support_mirror.p1   C State: up   Subdisks: 2 Size:   4096 MB
..

20 subdisks:
..
S support_mirror.p1.s1  State: up   D: data1Size:   2048 MB
S support_mirror.p0.s1  State: up   D: data0Size:   2048 MB
S support_mirror.p0.s0  State: up   D: data0Size:   2048 MB
S support_mirror.p1.s0  State: up   D: data1Size:   2048 MB
..

Then when I try to grow the file system it complains and won't. .

[tao] #growfs /dev/gvinum/support_mirror
We strongly recommend you to make a backup before growing the Filesystem

Did you backup your data (Yes/No) ? Yes
new file systemsize is: 2097152 frags
growfs: wtfs: write error: 8388607: Device not configured

Any help you can provide would be really appreciated . .
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Ezjail, Perl, upgrading best practices advise please

2009-10-02 Thread Troy Kocher
All,
Couple issues:
1) I need some understanding on how to deploy and upgrade perl
properly in this jailed environment.
2) I need some help on my current tangle of Perl library complaints

Issue #1: In a jailed environment how many installations of perl are
recommended (ie 1 host system 2 basejail 3 each jail) ?  My sense
would be that one on the host and one in the basejail, would be the
most efficient.  If that is the case how do I upgrade the perl in the
basejail?  How do I handle different versions of perl installed in
each of the jails?

Issue #2:  My lack of understanding has me in a mess currently.  My
host environment is using (perl-threaded-5.8.9_3), in jail #1 I have
(perl-5.8.9_3) when I try to use cpan here is what happens:

jail1#perl -MCPAN -e 'shell'
Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.9301)
ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)
print() on closed filehandle FOUT at
/usr/local/lib/perl5/5.8.9/Term/ReadLine.pm line 193.
readline() on closed filehandle FIN at
/usr/local/lib/perl5/5.8.9/Term/ReadLine.pm line 301.
print() on closed filehandle FOUT at
/usr/local/lib/perl5/5.8.9/Term/ReadLine.pm line 203.
Terminal does not support GetHistory.
Lockfile removed.

In Jail #2 another issue. . :

jail2#pkg_info |grep perl
mod_perl2-2.0.3_3,3 Embeds a Perl interpreter in the Apache2 server
p5-DBI-1.60.1   The perl5 Database Interface.  Required for DBD::* modules
p5-Devel-Symdump-2.0800 A perl5 module that dumps symbol names or the
symbol table
p5-Error-0.17012Perl module to provide Error/exception support for perl: Er
p5-GD-2.35_1A perl5 interface to Gd Graphics Library version2
p5-GD-Graph-1.44.01_1 Graph plotting module for perl5
p5-MIME-Tools-5.426,2 A set of perl5 modules for MIME
p5-Scalar-List-Utils-1.19,1 Perl subroutines that would be nice to
have in the perl cor
p5-Storable-2.18Persistency for perl data structures
p5-Term-ReadKey-2.30 A perl5 module for simple terminal control
p5-Test-Harness-3.10 Run perl standard test scripts with statistics
p5-Test-Simple-0.80 Basic utilities for writing tests in perl
p5-Time-HiRes-1.9712,1 A perl5 module implementing High resolution
time, sleep, an
perl-5.8.8_1

then I try cpan
jail2# perl -MCPAN -e 'shell'
/libexec/ld-elf.so.1: Shared object libm.so.4 not found, required by perl

Troubleshooting this complaint on jail2 I discovered the time stamp on
the host was different than the time stamp on the basejail.


Anyway I'm puzzled, and I'm not really sure where to go from here. .
I'd appreciate any help..

Thanks
Troy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


loader.conf issues

2008-07-29 Thread Troy Kocher
Listers,

For some reason my kernel setting aren't being recognized. .

tao# more loader.conf
geom_vinum_load=YES
kern.ipc.semmni=256
kern.ipc.semmns=512
kern.ipc.semmnu=256
kern.ipc.semmap=256
kern.ipc.shmall=32768
kern.ipc.shmmax=1

On reboot shmall  shmmax have to be set manually.

What did I do wrong?

Thanks

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


Re: loader.conf issues

2008-07-29 Thread Troy Kocher
On Tue, Jul 29, 2008 at 8:43 AM, Vincent Hoffman [EMAIL PROTECTED] wrote:
 Troy Kocher wrote:

 Listers,

 For some reason my kernel setting aren't being recognized. .

 tao# more loader.conf
 geom_vinum_load=YES
 kern.ipc.semmni=256
 kern.ipc.semmns=512
 kern.ipc.semmnu=256
 kern.ipc.semmap=256
 kern.ipc.shmall=32768
 kern.ipc.shmmax=1

 On reboot shmall  shmmax have to be set manually.

 What did I do wrong?



 Try adding them to /etc/sysctl.conf instead?

 Thanks

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




Thanks I'll give that a try. .

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


Re: FreeBSD 6.2 and VMWare ESX 3.x

2007-09-13 Thread Troy Kocher



From: Mak Kolybabi [EMAIL PROTECTED]
Date: September 13, 2007 11:53:52 AM CDT
To: Bret J. Esquivel [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Subject: Re: FreeBSD 6.2 and VMWare ESX 3.x

On 2007-09-13 11:23, Bret J. Esquivel wrote:

Has anyone successfully been able install FreeBSD on a ESX server? I
have gotten it to work fine on VMWare Workstation, however when  
trying
to install on ESX it will not find the ESX SCSI controller and not  
allow

an install.


I've got FreeBSD 6.2-STABLE running on ESX 3.0.2.
The SCSI controller shown to FreeBSD on my setup is 'LSI Logic'.

HTH




Can you outline the hardware you are using that is successful in  
running FreeBSD 6.2


Thanks
Troy Kocher

_
Scanned by IBM Email Security Management Services 
powered by MessageLabs.

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


lost+found help please

2007-06-22 Thread Troy Kocher
Yesterday my server rebooted for some unknown reason and after fsck-  
ing 4 times I had ALOT of stuff in lost+found.  I really need to try  
and review/recover these files.   Only docs I've found were linux  
centric, and focused on directories and dates.  I can't make out  
either here.


Please take a look at this http://www.mtadistributors.com/listing.txt;

I'd appreciate any advise you may have to offer.

Thanks
Troy Kocher



_
Scanned by IBM Email Security Management Services 
powered by MessageLabs.

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


Fwd: /dev/gvinum missing, ideas please. .

2007-04-17 Thread Troy Kocher

Fixed it. .

Apparently my metadata was corrupt

using. .
dd if=/dev/zero bs=512 count=265 of=/dev/da0s1g

cleaned it and now I'm up. .



Begin forwarded message:



Date: April 17, 2007 8:00:20 AM CDT
To: freebsd-questions@freebsd.org
Subject: Fwd: /dev/gvinum missing, ideas please. .

One other thing I forgot. .

bsd# kldstat
Id Refs AddressSize Name
14 0xc040 70794c   kernel
21 0xc0b08000 11920geom_vinum.ko
31 0xc0b1a000 59f20acpi.ko



Begin forwarded message:


Date: April 16, 2007 11:11:13 PM CDT
To: freebsd-questions@freebsd.org
Subject: /dev/gvinum missing, ideas please. .

I am rebuilding a 6.2 box and want to use growfs to expand the  
jailed filesystems as needed.


I'm doing something wrong b/c /dev/gvinum isn't being created. .  
help. .


Here is what I've done..

Modified the partition I want to use for gvinum. .

bsd# bsdlabel -e /dev/da0s1

# /dev/da0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  104857604.2BSD 2048 16384 8
  b:  8388608  1048576  swap
  c: 25807297320unused0 0 # raw  
part, don't e

dit
  d:  8884224  94371844.2BSD 2048 16384 28552
  e:  1048576 183214084.2BSD 2048 16384 8
  f: 10485760 193699844.2BSD 2048 16384 28552
  g: 2550873988 29855744 vinum


bsd# gvinum
gvinum - l
1 drive:
D main  State: up   /dev/da0s1g A:  
1245543/1245543 MB (100%)


1 volume:
V outward   State: down Plexes:   1  
Size:  0  B


1 plex:
P outward.p0  C State: down Subdisks: 0  
Size:  0  B


0 subdisks:

bsd# newfs -L outward -O 2 -U -o time /dev/gvinum/outward
newfs: /dev/gvinum/outward: could not find special device

There is no /dev/gvinum..

Ideas??






PGP.sig
Description: This is a digitally signed message part


Fwd: /dev/gvinum missing, ideas please. .

2007-04-17 Thread Troy Kocher

One other thing I forgot. .

bsd# kldstat
Id Refs AddressSize Name
14 0xc040 70794c   kernel
21 0xc0b08000 11920geom_vinum.ko
31 0xc0b1a000 59f20acpi.ko



Begin forwarded message:


From: Troy Kocher tkocher(at)mtadistributors(dot)com
Date: April 16, 2007 11:11:13 PM CDT
To: freebsd-questions@freebsd.org
Subject: /dev/gvinum missing, ideas please. .

I am rebuilding a 6.2 box and want to use growfs to expand the  
jailed filesystems as needed.


I'm doing something wrong b/c /dev/gvinum isn't being created. .  
help. .


Here is what I've done..

Modified the partition I want to use for gvinum. .

bsd# bsdlabel -e /dev/da0s1

# /dev/da0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  104857604.2BSD 2048 16384 8
  b:  8388608  1048576  swap
  c: 25807297320unused0 0 # raw  
part, don't e

dit
  d:  8884224  94371844.2BSD 2048 16384 28552
  e:  1048576 183214084.2BSD 2048 16384 8
  f: 10485760 193699844.2BSD 2048 16384 28552
  g: 2550873988 29855744 vinum


bsd# gvinum
gvinum - l
1 drive:
D main  State: up   /dev/da0s1g A:  
1245543/1245543 MB (100%)


1 volume:
V outward   State: down Plexes:   1  
Size:  0  B


1 plex:
P outward.p0  C State: down Subdisks: 0  
Size:  0  B


0 subdisks:

bsd# newfs -L outward -O 2 -U -o time /dev/gvinum/outward
newfs: /dev/gvinum/outward: could not find special device

There is no /dev/gvinum..

Ideas??


Troy Kocher
tkocher(at)mtadistributors(dot)com







PGP.sig
Description: This is a digitally signed message part


Fwd: 6.2 custom kernel build HELP

2007-04-16 Thread Troy Kocher

THANKS so much that was it. . !

Begin forwarded message:


From: Martin Hudec [EMAIL PROTECTED]
Date: April 15, 2007 5:25:23 PM CDT
To: 'FreeBSD Questions' freebsd-questions@freebsd.org
Subject: Re: 6.2 custom kernel build HELP
Reply-To: [EMAIL PROTECTED]

Troy Kocher wrote:
/usr/src/sys/dev/usb/udbp.c:225: undefined reference to  
`ng_parse_int32_type'
udbp.o(.rodata+0x10):/usr/src/sys/dev/usb/udbp.c:227: undefined  
reference to `ng_parse_int32_type'
udbp.o(.rodata+0x24):/usr/src/sys/dev/usb/udbp.c:239: undefined  
reference to `ng_parse_struct_type'
udbp.o(.rodata+0x60):/usr/src/sys/dev/usb/udbp.c:250: undefined  
reference to `ng_parse_int32_type'

*** Error code 1
Stop in /usr/obj/usr/src/sys/SMP_TAOSCSI.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.


options NETGRAPH

is missing in your kernel config. man 4 netgraph for more information.

nice evening,
Martin Hudec





_
Scanned by IBM Email Security Management Services 
powered by MessageLabs.

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


/dev/gvinum missing, ideas please. .

2007-04-16 Thread Troy Kocher
I am rebuilding a 6.2 box and want to use growfs to expand the jailed  
filesystems as needed.


I'm doing something wrong b/c /dev/gvinum isn't being created. . help. .

Here is what I've done..

Modified the partition I want to use for gvinum. .

bsd# bsdlabel -e /dev/da0s1

# /dev/da0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  104857604.2BSD 2048 16384 8
  b:  8388608  1048576  swap
  c: 25807297320unused0 0 # raw  
part, don't e

dit
  d:  8884224  94371844.2BSD 2048 16384 28552
  e:  1048576 183214084.2BSD 2048 16384 8
  f: 10485760 193699844.2BSD 2048 16384 28552
  g: 2550873988 29855744 vinum


bsd# gvinum
gvinum - l
1 drive:
D main  State: up   /dev/da0s1g A:  
1245543/1245543 MB (100%)


1 volume:
V outward   State: down Plexes:   1  
Size:  0  B


1 plex:
P outward.p0  C State: down Subdisks: 0  
Size:  0  B


0 subdisks:

bsd# newfs -L outward -O 2 -U -o time /dev/gvinum/outward
newfs: /dev/gvinum/outward: could not find special device

There is no /dev/gvinum..

Ideas??


Troy Kocher
tkocher(at)mtadistributors(dot)com





PGP.sig
Description: This is a digitally signed message part


6.2 custom kernel build HELP

2007-04-15 Thread Troy Kocher
: SUPER GEM318 0 Fixed Processor SCSI-2 device
ses0: SAF-TE Compliant Device
ses1 at asr0 bus 1 target 6 lun 0
ses1: SUPER GEM318 0 Fixed Processor SCSI-2 device
ses1: SAF-TE Compliant Device
da0 at asr0 bus 0 target 0 lun 0
da0: ADAPTEC RAID-5 3B0A Fixed Direct Access SCSI-2 device
da0: Tagged Queueing Enabled
da0: 1260126MB (2580738048 512 byte sectors: 255H 63S/T 160643C)
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/da0s1a
em0: link state changed to UP



bsd# cat /root/kernels/SMP_TAOSCSI
machine i386
cpu I686_CPU
ident   SMP-TAOSCSI_v1
makeoptions DEBUG=-g# Build kernel with gdb(1)  
debug symbols

options SCHED_4BSD  # 4BSD scheduler
options PREEMPTION  # Enable kernel thread  
preemption

options INET# InterNETworking
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates  
support
options UFS_ACL # Support for access control  
lists
options UFS_DIRHASH # Improve performance on big  
directories

options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFS_ROOT# NFS usable as /, requires  
NFSCLIENT

options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem  
(requires PSEUDOFS)

options PSEUDOFS# Pseudo-filesystem framework
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3  
[KEEP THIS!]

options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options SCSI_DELAY=2000 # Delay (in ms) before  
probing SCSI

options KTRACE  # ktrace(1) support
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real- 
time extensions

options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
options SMP # Symmetric MultiProcessor  
Kernel

device  apic# I/O APIC
device  eisa
device  pci
device  ata
device  atapicd # ATAPI CDROM drives
options ATA_STATIC_ID   # Static device numbering
device  scbus   # SCSI bus (required for SCSI)
device  da  # Direct Access (disks)
device  ses # SCSI Environmental Services (and  
SAF-TE)
device  asr # DPT SmartRAID V, VI and Adaptec  
SCSI RAID

device  atkbdc  # AT keyboard controller
device  atkbd   # AT keyboard
device  kbdmux  # keyboard multiplexer
device  vga # VGA video card driver
device  splash  # Splash screen and screen saver support
device  pmtimer
device  sio # 8250, 16[45]50 based serial ports
device  em  # Intel PRO/1000 adapter Gigabit  
Ethernet Card

device  random  # Entropy device
device  ether   # Ethernet support
device  tun # Packet tunnel.
device  pty # Pseudo-ttys (telnet etc)
device  md  # Memory disks
device  gif # IPv6 and IPv4 tunneling
device  uhci# UHCI PCI-USB interface
device  ohci# OHCI PCI-USB interface
device  ehci# EHCI PCI-USB interface (USB 2.0)
device  usb # USB Bus (required)
device  udbp# USB Double Bulk Pipe devices
device  ugen# Generic
device  uhid# Human Interface Devices
device  ukbd# Keyboard
device  umass   # Disks/Mass storage - Requires scbus  
and da

device  ums # Mouse

Troy Kocher
tkocher(at)mtadistributors(dot)com





PGP.sig
Description: This is a digitally signed message part


Fwd: Jail is pausing . . Ideas please. . ?

2007-04-10 Thread Troy Kocher
 installed ports against a list of security
vulnerabi
postgresql-client-8.1.4 PostgreSQL database (client)
proftpd-1.3.1.r2_3  Highly configurable ftp daemon
rsync-2.6.7_1   A network file distribution/synchronization  
utility

samba-2.2.12_2  A free SMB and CIFS client and server for UNIX
tiff-3.8.0  Tools and library routines for working with TIFF
images
unison-2.13.16_1A user-level file synchronization tool
usermin-1.220_1 Web-based interface for performing some user tasks
vim-lite-7.0.66 Vi workalike, with many additional features
(Lite package
webmin-1.290Web-based interface for system administration for
Unix

[EMAIL PROTECTED] /]# portaudit
Affected package: gnutls-1.2.9
Type of problem: gnutls -- RSA Signature Forgery Vulnerability.
Reference: http://www.FreeBSD.org/ports/portaudit/
64bf6234-520d-11db-8f1a-000a48049292.html

Affected package: samba-2.2.12_2
Type of problem: samba -- integer overflow vulnerability.
Reference: http://www.FreeBSD.org/ports/portaudit/3b3676be-52e1-11d9-
a9e7-0001020eed82.html

2 problem(s) in your installed packages found.

Any ideas you may have on troubleshooting or better yet what is  
causing it  would be

really appreciated.

Troy Kocher
MTA Distributors
tkocher(at)mtadistributors(dot)com




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFGG+CM7N3ahyl93usRAsxpAJ9Pdl1rnDb0GuPmQAnh9s0R8Ou0bQCdFjhz
rw+RpZlZ9Dyc6FBwazy0/3A=
=bT8W
-END PGP SIGNATURE-

_
Scanned by IBM Email Security Management Services 
powered by MessageLabs.

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


Jail is pausing . . Ideas please. . ?

2007-04-06 Thread Troy Kocher
 Vulnerability.
Reference: http://www.FreeBSD.org/ports/portaudit/
64bf6234-520d-11db-8f1a-000a48049292.html

Affected package: samba-2.2.12_2
Type of problem: samba -- integer overflow vulnerability.
Reference: http://www.FreeBSD.org/ports/portaudit/3b3676be-52e1-11d9-
a9e7-0001020eed82.html

2 problem(s) in your installed packages found.

Any ideas you may have on troubleshooting or better yet what is  
causing it  would be

really appreciated.

Troy Kocher
MTA Distributors
tkocher(at)mtadistributors(dot)com



_
Scanned by IBM Email Security Management Services 
powered by MessageLabs.

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