Re: can't mount root during freebsd-update 7.0 - 8.1 on amd64

2010-12-11 Thread Joost Bekkers
On Tue, Dec 07, 2010 at 01:26:56PM -0600, Steve Randall wrote:
   2010/12/5  jo...@jodocus.org:
   Hi
  
   I'm trying to upgrade a amd64 box from 7.0-RELEASE to 8.1-RELEASE with
   freebsd-update. After the first reboot the 8.1R GENERIC kernel loads
   (I'm
   using a custom kernel, so at this point the generic kernel is loaded
   manually)
   It then claims it can't mount /

 Your disk was at one time dangerously dedicated and later converted
 to MBR. But there is still an obsolete BSD label in block 1 of the disk.
 
 # dd if=/dev/zero of=/dev/ad4 seek=1 count=1

Yes, that fixed it. 

Thanks

-- 
greetz Joost
jo...@jodocus.org
___
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


Re: [perl] sysopen(CD, /dev/cd0, O_RDONLY | O_NONBLOCK) fails

2009-03-27 Thread Joost Bekkers
On Fri, March 27, 2009 19:59, Tobias Rehbein wrote:
 Am Thu, Mar 26, 2009 at 10:11:28PM + schrieb Bruce Cran:

 Hm. Tried this and got ineresting results:

 use POSIX;
 sysopen(CD,/dev/cd0, O_RDONLY|O_NONBLOCK) || perror(sysopen)
 works fine, but
 use POSIX;
 sysopen(CD,/dev/cd0, O_RDONLY|O_NONBLOCK)
 print $!
 prints No such file or directory

 Well, I think I'll have to accept that sysopen works but $! does not...
 After
 all sysopen is more important to me ;)

As the perlvar manpage tells us:

  $!  If used numerically, yields the current value of the C errno
  variable, or in other words, if a system or library call fails,
  it sets this variable.  This means that the value of $! is
  meaningful only immediately after a failure.

The value of $! is NOT an indicator of success or failure. It only tells
you why something failed. If something succeeded $! is usualy left
untouched.


Joost.

___
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


Re: Can stock syslog do hostA - fileA?

2009-02-26 Thread Joost Bekkers
On Thu, February 26, 2009 15:19, Paul Halliday wrote:
 I am collecting syslogs from a PIX and a couple of Barracudas. It would
be a lot easier for each to have their own logfile. I have been poking
around a bit; I saw this one:

 +host1 /var/log/host1

 but it doesn't appear to work. Is it being trumped by something else in
the config file? Is the syntax wrong?

I think you're looking for something like this:

!*  # reset any previous program selector. Optional
+host1
*.* /var/log/host1
+*  # reset the host selector. Optional

Also keep in mind the default flags for syslogd include a -s which
prevents syslogd from logging messages from remote machines.

Joost.



___
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


Re: Locked myself out.. AGAIN!!

2008-12-07 Thread Joost Bekkers
On Sun, December 7, 2008 11:04, Redd Vinylene wrote:
 On this dedicated box here I made the mistake of adding a comment to
 root's entry in my password file:

 root:*:0:0::/root:/bin/sh # What I thought would be a harmless comment.

 Now I can't su to root. And my ISP is closed on Sundays. Is there any
 way I can fix this on my own?


Try `su -m` the man page says it will use your current shell instead of
the one in passwd.

good luck.

Joost.


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


Re: FreeBSD and barracudas

2007-10-19 Thread Joost Bekkers
On Fri, October 19, 2007 20:23, Philip M. Gollucci wrote:

 The problem is the barracuda can not get to it.  I actually don't see
 any reason why it should.  Its supposed to merely rewrite the MAC to one of
 the 'Real Servers' when it receives a request for a VIP (Virtual IP).

 Network: 192.168.0.0/22
 Firewall/Gateway: 192.168.0.1
 DNS: 192.168.0.25, 192.168.0.24, 172.28.0.50(different class C)
 Broadcast: 192.168.3.255
 Netmask: 255.255.252.0


 Barracdua WAN: 192.168.0.169
 Barracuda LAN: N/A in DSR mode.
 VIP: 192.168.0.49
 Real Server 1: 192.168.0.50
 Real Server 2: 192.168.t0.51
 


If you're trying to do what I think you're doing (yep, that's a big IF)
you've got things reversed.

Real Server #: should point to the ip address on the PHYSICAL interface
of the Dell(s). The address to add to lo0 is the VIP, in this case
192.168.0.49


Hope this helps.

Joost.

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


Re: Override prompt when deleting a file

2005-11-18 Thread Joost Bekkers
On Fri, Nov 18, 2005 at 02:12:35PM -0500, Robert Ftizpatrick wrote:
 On Fri, 2005-11-18 at 10:34 -0800, Micah wrote:
   I'm sure I can make it happen. My problem is the rsync backup everynight
   fails to delete this and other files like it saying 'Permission denied'.
   So, I am assuming it is because of this issue. The rsync script logs in
   as admin. How can I resolve this?
   
   --
   Robert
  
  If you clear the immutable bit (as root), rsync (as admin) should be 
  able to remove the file as normal.  You'll just have to figure out why 
  the files are immutable in the first place.  You may just be able to 
  clear the immutable bit on all the files and make the problem go away or 
  you may need a more complex solution.
 
 Yeah, I don't know, the rsync script has been running for over a year
 and all of sudden it can't delete files. But I don't think the files are
 immutable. Did my previous post with the listing show this? But I tried
 and still
 
 -bash-2.05b$ ls -lo massage.xls
 -rw-r--r--  1 admin  admin  - 4463104 Aug 29 17:25 massage.xls
 -bash-2.05b$ su
 Password:
 esmtp# chflags -R noschg ./
 esmtp# exit
 -bash-2.05b$ rm massage.xls
 override rw-r--r--  admin/admin for massage.xls?
 

This might sound a bit far fetched, but I can't shake the feeling it might be 
right.
Could it be possible you have 2 admin's in your passwd? vipw doesn't complain 
when you
try something like that, so

Would you mind doing a 'ls -ln' (uid/gid numeric) and the an 'echo $UID' as 
admin.

-- 
greetz Joost
[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: measuring avg cpu speed while powerd(8) is running

2005-08-07 Thread Joost Bekkers
On Sat, Aug 06, 2005 at 07:33:02PM +0200, Philip S. Schulz wrote:
 Joost Bekkers wrote:
 
 Is there a way to calculate (over eg. a 5 minute interval) the average 
 amount the cpu was throttled? In this case by powerd(8).
 
 No, powerd currently reads the CPU usage periodically and adjusts the 
 clock speed based on the current CPU idle value. You can somewhat 
 influence the behavior with the options described in the powerd man page.
  powerd does not keep a history of CPU usage and it does not record the 
 adjustments it makes. However, you could kind of record powerd 
 activities by starting it with the -v option and redirect stdout to a file.

Perhaps I should have said that differently: it is being throttled by powerd.
It doesn't have to do the measuring of the average itself.

 I was thinking there might be a counter/timer which is linked to the cpu 
 clock, but sofar I haven't been able to find one.
 
 Well, you can see the current CPU frequency by looking at dev.cpu.0.freq 
 where 0 is the id of the CPU you want to query.

At the times I take measurements the cpu tends to run at 100%, which would
result in a nice flat line.

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


measuring avg cpu speed while powerd(8) is running

2005-08-06 Thread Joost Bekkers
Hi

Is there a way to calculate (over eg. a 5 minute interval) the average amount
the cpu was throttled? In this case by powerd(8).

I was thinking there might be a counter/timer which is linked to the cpu clock,
but sofar I haven't been able to find one.

thanks

-- 
greetz Joost
[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: ipf + ipfw + divert = no go

2005-05-24 Thread Joost Bekkers
On Tue, May 24, 2005 at 01:38:58PM +0200, Chris Knipe wrote:
 On Tue, May 24, 2005 at 12:56:06PM +0200, Chris Knipe wrote:
  Hi,
  
  Quick question...
  
  dmesg:
  IP Filter: v3.4.35 initialized.  Default = pass all, Logging = enabled
  ipfw2 initialized, divert enabled, rule-based forwarding enabled, default 
  to accept, logging limited to 1024 packets/entry by default
  
  
  shell:
  bash-2.05b# ipfw add 50 fwd 192.168.0.237,3306 tcp from any to x.x.56.178 
  dst-port 3306
  ipfw: getsockopt(IP_FW_ADD): Operation not permitted
  bash-2.05b# whoami
  root
  bash-2.05b#
  
  What gives?  FreeBSD 5.4-STABLE
 
 
 bash-2.05b# ipfw add 50 fwd 1.1.1.1,1 tcp from 1.1.1.1 to 1.1.1.1 dst-port 1
 ipfw: getsockopt(IP_FW_ADD): Operation not permitted
 bash-2.05b# ipfw  add 50 allow ip from me to any
 ipfw: getsockopt(IP_FW_ADD): Operation not permitted
 bash-2.05b#

At what securelevel are you running?

You can use 'sysctl kern.securelevel' to check.

-- 
greetz Joost
[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: options FAST_IPSEC

2004-11-02 Thread Joost Bekkers
On Mon, Nov 01, 2004 at 10:16:47PM -0800, sonjaya wrote:
 
  i try use options VPN di my kernel ( Freebsd 5.2
 release) , and i use options FAST_IPSEC , but every
 make depend get error like this bellow :
 
 
 xform_ipcomp.o(.text+0x16f): undefined reference to
 `M_XDATA'
 xform_ipcomp.o(.text+0x194): undefined reference to
 `crypto_freereq'
 xform_ipcomp.o(.text+0x271): undefined reference to
 `crypto_dispatch'
 ...
 xform_ipcomp.o(.text+0xcd6): undefined reference to
 `crypto_freereq'
 *** Error code 1
 

Did you inlcude 'device crypto'?

see /sys/conf/NOTES for details.

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


Re: Back-up on remote machine

2004-08-05 Thread Joost Bekkers
On Thu, Aug 05, 2004 at 05:58:24PM +0700, Roger Merritt wrote:
 One example I found on the WWW is: tar -czf - /some/file | \
 ssh host.name tar -xzf - -C /destination.
 
 That's not quite what I want, because I don't see any need to untar 
 everything at the far end, but I can't send a file without using some 
 command to ssh.

If all you need is somthing at the other end capturing the data try

... | ssh remotehost cat -  myfile

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


Re: ifconfig in rc.conf network problems

2004-05-30 Thread Joost Bekkers
On Sun, May 30, 2004 at 11:34:43PM +0200, Olaf Hoyer wrote:
 
 2) put the media change in a separate shell script, and throw it unter
 /usr/local/etc/rc.d, so that it will be executed later on
 
 something like:
 
 cat dc0-speedchange.sh
 #!/bin/sh
 ifconfig dc0 media 100baseTX
 

You might want to put stuff like that in /etc/start_if.dc0
It gets executed just before the ip address is set or dhclient
is started.


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


Re: why test(1) works with -eq but not -nq ?

2004-04-21 Thread Joost Bekkers
On Wed, Apr 21, 2004 at 05:09:14PM +0300, Ion-Mihai Tetcu wrote:
 # if [ `cat ports_sup_log | wc -l` -nq 3 ]; then echo 'da'; fi

I think you mean -ne instead of -nq

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


Re: Interpreting ping response? (the POD lives??)

2004-04-13 Thread Joost Bekkers
On Wed, Apr 14, 2004 at 12:08:16AM +0900, Rob wrote:
 
 Kevin D. Kinsey, DaleCo, S.P. wrote:
 can you tell me what might be happening?
 
 [EMAIL PROTECTED] [/home/kdk] [16:25]
 #sudo ping -s 2048 app
 PING app.southuni.com (192.168.0.80): 2048 data bytes
 36 bytes from app.southuni.com (192.168.0.80): Destination Host Unreachable
 
 This may indicate that the computer is behind a firewall, that blocks 
 response
 to ping.
 

If so, it wouldn't indicate the response is being blocked, but the
request.  If the response was being block the icmp message would
go to app.southuni.com, which originated the blocked packet.


 Vr HL TOS  Len   ID Flg  off TTL Pro  cks  Src  Dst  
  4  5  00 05dc 07bd   0   3f  01 1677 192.168.0.2  192.168.0.80

is the ip header of the packet to which the icmp-unreachable message
is a response to. (ie your original ping request)


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


Re: IPX 802.2 nwfs

2004-04-08 Thread Joost Bekkers
On Thu, Apr 08, 2004 at 02:28:51PM +0200, Feczak Szabolcs wrote:
 
 I did
 ifconfig vr0f2 ipx 0
 

Here you tell FreeBSD to use network number 0.

 Although I can reach it from a linux box :
 ifconfig eth0
 eth0  Link encap:Ethernet  HWaddr 00:04:75:71:E9:C4  
   inet addr:192.168.0.217  Bcast:192.168.0.255  Mask:255.255.255.0
   IPX/Ethernet 802.2 addr:0002:00047571E9C4
 

While your linux box is using number 2

Try 'ifconfig vr0f2 ipx 2'


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


Re: IPX 802.2 nwfs

2004-04-08 Thread Joost Bekkers
On Thu, Apr 08, 2004 at 03:13:29PM +0200, Feczak Szabolcs wrote:
 On Thu, Apr 08, 2004 at 03:08:04PM +0200, Joost Bekkers wrote:
  While your linux box is using number 2
 Linux box is a client as well, server is on 
 network 2DB6EBF8 as I see it out, but maybe
 Im wrong
 
  Try 'ifconfig vr0f2 ipx 2'
 
 Meanwhile someone advised to get rid of multiframe types
 compile only 802.2 in, so I did:
 
 # ifconfig vr0 ipx 2

AFAIK this sets ipx network 2 on ETHERNET_II framing, your server
is doing ETHERNET_802.2

To be sure of which network number you should use, type 'config'
on the netware console and look for the nic connected to the segment
your client is connected to.

 # netstat -rn | grep -A 3 IPX
 IPX:
 DestinationGatewayFlagsNetif Expire
 2.*2.c6ee8155bU vr0
 

FYI: you can use the -f option in netstat to filter a protocol (netstat -rnf ipx)


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


debugging a signal 10 while in libc_r

2004-03-15 Thread Joost Bekkers
Hello

I have this multi-threaded app which will crash about once a month. gdb tells me the 
following:

Program terminated with signal 10, Bus error.
(gdb) where
#0  0x817b5a7 in _thread_kern_scheduler ()
#1  0x0 in ?? ()

I have no idea how to continue or even what to look for. Can anybody give me some 
tips/urls?

The app is running on 4.3-R (ancient I know, can't seem to make time for an upgrade)

thanks

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


Re: umass.o error

2004-01-22 Thread Joost Bekkers
On Thu, Jan 22, 2004 at 11:47:54AM +0100, [EMAIL PROTECTED] wrote:
 Hey
 I tried compiling with quota and commented out a few things that i thought i didn't 
 need for the specific box and got this error while doing make.
 
 umass.o: In function `umass_cam_attach_sim':
[...]
 *** Error code 1

Did you read the comment after 'device umass' in your kernel config?

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


Re: Static (incorrect) ARP entry

2003-11-05 Thread Joost Bekkers
On Tue, Nov 04, 2003 at 10:21:19AM +0200, Rolf Mendelsohn wrote:
 
 Default Gateway: 10.8.16.1
 My IP's: 10.8.23.121 - 126
 Subnet Block: 10.8.23.120/29
 

You could try telling the bsd machine the net your default gateway is in is also 
directly connected

route add -net 10.8.16.0/30 -interface de0

for some reason this doesn't work when you use /32 or -host.

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


Re: Syslog and Cisco

2003-11-01 Thread Joost Bekkers
On Sat, Nov 01, 2003 at 11:33:39AM -0600, list wrote:
 I am trying to send cisco's syslog to Syslogd and i have been unsuccessful. I 
 have modified the syslog.conf to list local6.*/var/log/cisco. I have changed 
 rc.conf to start syslog with -a and removed the -s command. I have checked 
 with logger. While using the logger from FreeBsd i am able to log meesage in 
 to the cisco.log file. However from network i am not able to do so. I looked 
 tcpdump see the packets but nothing shows in cisco.log or to all the other 
 log files.
 

You have to specify a 'service' of * on the syslogd commandline (with
the -a option). By default syslogd only accepts packets coming from
the sysog port on the remote host.  Cisco uses a dynamicly allocated
port for sending the logging.

Hope this helps.

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


miniinst and livefs cd merged into a single cd

2003-06-15 Thread Joost Bekkers
Hi

I recently merged the 5.1-RELEASE miniinst and livefs (fixit) cd into a single cd.
And I was wondering if there is any demand for this kind of thing in the
community.

I don't have the resourses to put a file this large (503MB, 308M .gz) online somewhere,
but I'll be happy to upload it someplace where everybody can get at it.

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


ipsec/racoon broken after upgrade to 4.8

2003-04-06 Thread Joost Bekkers
Hello,

After a binary upgrade to 4.8R and making a custom kernel,
racoon exists when trying to create a tunnel:

2003-04-06 11:01:51: DEBUG: algorithm.c:382:alg_oakley_encdef(): encription(des)
/usr/libexec/ld-elf.so.1: racoon: Undefined symbol des_key_sched

I've got these in my kernel config, so that can't be the problem.
options IPSEC   #IP security
options IPSEC_ESP   #IP security (crypto; define w/ IPSEC)
options IPSEC_DEBUG #debug for IP security

Any suggestions?

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


Re: ipsec/racoon broken after upgrade to 4.8

2003-04-06 Thread Joost Bekkers
On Sun, Apr 06, 2003 at 01:19:29AM -0800, Kris Kennaway wrote:
 On Sun, Apr 06, 2003 at 11:09:44AM +0200, Joost Bekkers wrote:
  Hello,
  
  After a binary upgrade to 4.8R and making a custom kernel,
  racoon exists when trying to create a tunnel:
  
  2003-04-06 11:01:51: DEBUG: algorithm.c:382:alg_oakley_encdef(): encription(des)
  /usr/libexec/ld-elf.so.1: racoon: Undefined symbol des_key_sched
 
 Did you upgrade racoon?  If not, it sounds like you're missing the
 compat4x distribution/package which is necessary for binary
 compatibility with older 4.x binaries.
 

I just double checked, I'm running the racoon currently in the ports. 
(racoon-20021120a)
I've also rebuild it after the upgrade, hoping that would help.

It didn't.


hmmm, where did that [EMAIL PROTECTED] come from? It looks cool, but it's wrong.

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


Re: ipsec/racoon broken after upgrade to 4.8 *fixed*

2003-04-06 Thread Joost Bekkers
On Sun, Apr 06, 2003 at 11:45:43AM +0200, Joost Bekkers wrote:
 On Sun, Apr 06, 2003 at 01:19:29AM -0800, Kris Kennaway wrote:
  On Sun, Apr 06, 2003 at 11:09:44AM +0200, Joost Bekkers wrote:
   Hello,
   
   After a binary upgrade to 4.8R and making a custom kernel,
   racoon exists when trying to create a tunnel:
   
   2003-04-06 11:01:51: DEBUG: algorithm.c:382:alg_oakley_encdef(): encription(des)
   /usr/libexec/ld-elf.so.1: racoon: Undefined symbol des_key_sched
  
  Did you upgrade racoon?  If not, it sounds like you're missing the
  compat4x distribution/package which is necessary for binary
  compatibility with older 4.x binaries.
  
 
 I just double checked, I'm running the racoon currently in the ports. 
 (racoon-20021120a)
 I've also rebuild it after the upgrade, hoping that would help.
 
 It didn't.
 
 
 hmmm, where did that [EMAIL PROTECTED] come from? It looks cool, but it's wrong.
 

found it

I still had the openssl port installed

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


Re: moving 'vinum start' forward

2002-12-18 Thread Joost Bekkers
On Tue, Dec 17, 2002 at 11:13:52AM +1030, Greg 'groggy' Lehey wrote:
 On Monday, 16 December 2002 at 10:30:42 +0100, Joost Bekkers wrote:
  On Mon, Dec 16, 2002 at 08:39:28AM +1030, Greg 'groggy' Lehey wrote:
  On Sunday, 15 December 2002 at 20:48:03 +0100, Joost Bekkers wrote:
 
  I've been hacking away at vinum_attach() in sys/dev/vinum/vinum.c
  but I can't seen to get it to work properly (yet)
 
  It needs to be done during system startup.  I have code to do it, I
  just haven't got around to sorting out the other issues that are
  needed in order to do this properly.
 
  Is that code available somewhere or could you send it to me?
 
 I can send it to you, but it's in a bit of a mess, since it's been
 lying there for nearly three years.  I could explain to you what to
 do, but it would take me about as long as really doing it.
 
  I've already got my root partition accessible both directly (so the
  loader can get at it) and as a vinum mirrored volume.
 
 I'd be interested in seeing *your* code.
 

Let me say in advance that it is lacking any form of error checking. I should
also find some way to determine which disk we're booting from, since that is
the only disk that makes sence to read the config from.

  {
char *bootdev[]={/dev/da0,/dev/da1,NULL};
start_config(0);
lock_config();
vinum_scandisk(bootdev,sizeof(bootdev)/sizeof(bootdev[0]));
unlock_config();
finish_config(0);
save_config();
  }  

I've added this bit to the end of vinumattach() which seems to be working.
However the routines in kern/vfs_conf.c are unable to mount a vinum volume. Haven't
had time to really look into that.

-- 
greetz Joost
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: moving 'vinum start' forward

2002-12-16 Thread Joost Bekkers
On Mon, Dec 16, 2002 at 08:39:28AM +1030, Greg 'groggy' Lehey wrote:
 On Sunday, 15 December 2002 at 20:48:03 +0100, Joost Bekkers wrote:
 
  I've been hacking away at vinum_attach() in sys/dev/vinum/vinum.c
  but I can't seen to get it to work properly (yet)
 
 It needs to be done during system startup.  I have code to do it, I
 just haven't got around to sorting out the other issues that are
 needed in order to do this properly.

Is that code available somewhere or could you send it to me?

I've already got my root partition accessible both directly (so the
loader can get at it) and as a vinum mirrored volume.

The only thing stopping me (as far as I can see) is vinum starting
too late.

thanks

-- 
greetz Joost
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



moving 'vinum start' forward

2002-12-15 Thread Joost Bekkers
Hello  

Does anybody know a way to get vinum to load its configuration
before root is mounted?

I've been hacking away at vinum_attach() in sys/dev/vinum/vinum.c
but I can't seen to get it to work properly (yet)

--
greetz Joost
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message