Re: Dell H710 and H310 Raid Controller
Does bcm5720 support committed to 9-Stable? On Sun, Nov 4, 2012 at 9:53 PM, Sean Bruno wrote: > On Sun, 2012-11-04 at 05:47 -0800, Omer Faruk SEN wrote: > > It seems right now only way to go with Rx20 Server models is to use > > Intel > > cards (dell provides i350 chipset network interfaces as alternative) > > The Broadcom 5720 support is in current right now. It will not be in > 9.1, but will be available in stable/9 soon-ish. > > Sean > ___ 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"
using AWK
Hi guys How can I read a file which contains a number and assign that number to a variable via awk programming? By the way, I want to use this awk program in a shell script. Thanks in advance ___ 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: using AWK
Hi Jack, On Dec 17, 2012, at 03:39, Jack Mc Lauren wrote: > How can I read a file which contains a number and assign that number to > a variable via awk programming? By the way, I want to use this awk program > in a shell script. I'm actually not sure what you're asking, exactly -- you want the number to go into an awk variable? Or a shell variable? Assuming you want it to go into an awk variable, I would try something like this: getline my_number < filename; close filename; That assumes the filename is stored in the variable named "filename". It puts the number in the awk variable named "my_number". To put that in context, let's say you're getting the filename from $0, and you want to multiply the number by 2 and print it. You might do: filename = $0; getline my_number < filename; close filename; print my_number * 2; Or if I completely misinterpreted your question, let me know :-) ~Ben ___ 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: using AWK
On 12/17/2012 12:39 PM, Jack Mc Lauren wrote: Hi guys How can I read a file which contains a number and assign that number to a variable via awk programming? By the way, I want to use this awk program in a shell script. Thanks in advance ___ 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" A good awk start : http://www.grymoire.com/Unix/Awk.html ___ 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: using AWK
>>Hi Jack, HI > How can I read a file which contains a number and assign that number to > a variable via awk programming? By the way, I want to use this awk program > in a shell script. >>I'm actually not sure what you're asking, exactly -- you want the number >>to go into an awk variable? Or a shell variable? Yes, I want the number to go into an awk variable. >>Assuming you want it to go into an awk variable, I would try something >>like this: >> getline my_number < filename; >> close filename; >>That assumes the filename is stored in the variable named "filename". >>It puts the number in the awk variable named "my_number". >>To put that in context, let's say you're getting the filename from $0, >>and you want to multiply the number by 2 and print it. You might do: >> filename = $0; >> getline my_number < filename; >> close filename; >> print my_number * 2; >>Or if I completely misinterpreted your question, let me know :-) >> ~Ben This is what i wrote: #! /bin/sh filename=$0 awk 'getline no < filename; print no' But when I run this script sh /awk_no.sh /var/no.txt I have this error : awk: syntax error at source line 1 context is getline no < filename; >>> print <<< no awk: bailing out at source line 1 Thank you :) ___ 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"
Unecpected change default route in 9.0, 8.2
Hi, I have diskless routers, on one of theese I have problem, that default gate is changing. Image is clean and updated. There is no route daemon, no snmp, dhclient isnt running. Whith resarch in cooperation in chzech bsd mailing list I get following things: Ifconfig of this machine is: ifconfig -a: em0: flags=8843 metric 0 mtu 1500 options=219b ether 00:25:90:a1:f5:a9 inet 178.255.168.19 netmask 0xf800 broadcast 178.255.175.255 inet6 fe80::225:90ff:fea1:f5a9%em0 prefixlen 64 scopeid 0x1 inet6 2a02:768:0:4000::19 prefixlen 64 nd6 options=21 media: Ethernet autoselect (1000baseT ) status: active em1: flags=8943 metric 0 mtu 1500 options=219b ether 00:25:90:a1:f5:a8 inet6 fe80::225:90ff:fea1:f5a8%em1 prefixlen 64 scopeid 0x3 inet 10.1.11.1 netmask 0xfffc broadcast 10.1.11.3 nd6 options=21 media: Ethernet autoselect (1000baseT ) status: active vlan304: flags=8843 metric 0 mtu 1500 options=3 ether 00:25:90:a1:f5:a8 inet 10.219.11.97 netmask 0xffe0 broadcast 10.219.11.127 inet6 fe80::225:90ff:fea1:f5a8%vlan304 prefixlen 64 scopeid 0xb4 inet 10.9.114.1 netmask 0xfffc broadcast 10.9.114.3 nd6 options=21 media: Ethernet autoselect (1000baseT ) status: active vlan: 304 parent interface: em1 After attack isnot affected. Ip of machine is 178.255.168.19, default route is 178.255.168.254. netstat -nr|less Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default178.255.168.254UGS 0 8766645em0 After change look like this: netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default189.71.208.123 UGS 1 1184931064em0 This is example, ip of gateway is random. route monitor tells (there is other ip, route monitor runs later, on other attack). got message of size 192 on Mon Dec 17 13:19:20 2012 RTM_DELETE: Delete Route: len 192, pid: 21546, seq 1, errno 0, flags: locks: inits: sockaddrs: default 175.139.119.60 default Is possilble, that icmp redirect can change default route? No other user, than me, are logged to system. Thank you Radek ___ 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: svn revision in uname
I hope it will be removed soon, it pollutes the uname -a output. 2012/12/15 Lowell Gilbert > "Anders N." writes: > > > Hi. I've noticed in my "uname -a" on 9.1-RELEASE there is "r243826." > > This is on a system that upgraded from 9.1-RC3 using freebsd-update > > (binary). On another system, upgraded from 9.0-RELEASE via > > freebsd-update (source), there is nothing at all and uname -a looks > > normal. Two other people I asked have r243825 (installed from ISO) and > > r243872 (upgraded from svn). > > > > They're all 9.1-RELEASE, shouldn't they be the same, final version? > > As I understand it, the revision ID refers to the whole repository, not > just a branch. So if you do your own svn checkout tomorrow, you'll get > yet another revision number, even though the files will (probably) be > completely identical to what you checked out yesterday -- ongoing > commits to HEAD will keep kicking the revision number up. > > There is work going on to make system builds completely, bit-for-bit, > repeatable, but that will presumably mean getting rid of this revision > number information, not making it consistent. > ___ > 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" > -- Demelier David ___ 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: using AWK
On Mon, 17 Dec 2012 04:22:21 -0800 (PST), Jack Mc Lauren wrote: > Yes, I want the number to go into an awk variable. > [...] > This is what i wrote: > > > #! /bin/sh > > filename=$0 > awk 'getline no < filename; print no' > > But when I run this script > > sh /awk_no.sh /var/no.txt > > I have this error : > > awk: syntax error at source line 1 > context is > getline no < filename; >>> print <<< no > awk: bailing out at source line 1 > > Thank you :) The error is obvious: You need to transition $filename from the sh level into the awk script, i. e. the file name string (in your example, "/var/no.txt") must be visible inside the awk script. You're using a variable called filename which is uninitialized (empty). You can either define the file name statically in the awk script, or use ${filename} in the script (use double quotes to allow resolution). Also note that $0 is the name by which the script has been called. $1 is the 1st parameter. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: using AWK
On Dec 17, 2012, at 04:22, Jack Mc Lauren wrote: > This is what i wrote: OK -- I'm adjusting my assumptions about what you're trying to do. :-) Bear with me: > #! /bin/sh > > filename=$0 So (a) there's only one input file, not multiple... and (b) it should come from the command line of the shell script wrapper. Right? > awk 'getline no < filename; print no' If there's only one input file, then this is super easy and you don't even need any of the getline or close stuff. Try: filename=$1 awk '{no = $0; print no;}' $filename In the shell script context (outside the awk), $1 refers to the first command line parameter of the script. You don't want $0 there. On the other hand, *inside* the awk part, dollar-sign variables have a completely different meaning. $0 in *awk* (not sh) means "the entire contents of each line of the input file". So if your file had multiple lines, that block would run multiple times. But since I'm guessing your file only has one line (that being the number in question), the awk block will only run once. ~Ben ___ 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"
FreeBSD/EC2 -9.0-Current 2011-01-01 (ami-f4db2a9d)
I'm working my way through a re-education for EC2. I read a lot of posts but find it confusing to keep up with the current state of the art as to what information is applicable and what is not: 1. I had convinced myself that I was being told that I had to use a Windows instance but then found this AMI. It launched for T1.micro, always with the note that it was available for the free-tier which is important to me. Have I been too optimistic or is it, indeed, running with the free-tier restrictions? 2. Unfortunately, after I had spent a couple of hours on installing ports, I installed pkgng. It seemed to install OK but then when I ran pkg2ng it didn't work throwing the following error message twice. /libexec/ld-elf.so.1: Undefined symbol "Quiet" referenced from COPY relocation in /usr/sbin/pkg_info. and then ... Conversion has been successfully finished Your old packages database has been moved to: /var/db/pkg.bak There is no sign of a pkg.bak anywhere on the machine and, of course, pkg_* tools don't work. /var/db/pkg is still fully populated with what looks like the correct files. There is also no perl installed So my question is "Is there any way I can recover pkg_* tools or get pkgng to function? With only a couple of hours in it, I'm tempted to just start over and use one of the RELEASE AMIs. 3. I also noted a thread where Colin Percival talked about an initial launch as c1.medium to set things up and then restarting as t1.micro. Won't this trigger a minimum bill for 1 month being added to my free-tier $0.00? Thanks for any help responses to get me pointed in the right direction. -- Jim Flowers ___ 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: using AWK
On Dec 17, 2012, at 3:39 AM, Jack Mc Lauren wrote: > Hi guys > > How can I read a file which contains a number and assign that number to a > variable via awk programming? By the way, I want to use this awk program in a > shell script. > > Thanks in advance Try this: awk -v file=/etc/ttys 'BEGIN { getline line http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD/EC2 -9.0-Current 2011-01-01 (ami-f4db2a9d)
On 12/17/12 10:19, jflowers wrote: 2. Unfortunately, after I had spent a couple of hours on installing ports, I installed pkgng. It seemed to install OK but then when I ran pkg2ng it didn't work throwing the following error message twice. /libexec/ld-elf.so.1: Undefined symbol "Quiet" referenced from COPY relocation in /usr/sbin/pkg_info. and then ... Conversion has been successfully finished Your old packages database has been moved to: /var/db/pkg.bak There is no sign of a pkg.bak anywhere on the machine and, of course, pkg_* tools don't work. /var/db/pkg is still fully populated with what looks like the correct files. There is also no perl installed To address the pkgng... when you ran pkg2ng all your tools moved to 'pkg add', 'pkg version', etc. -- Yours in Christ, Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1 Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://owl.apotheon.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: using AWK
On Mon, 17 Dec 2012 08:16:26 -0800, Devin Teske wrote: > > On Dec 17, 2012, at 3:39 AM, Jack Mc Lauren wrote: > > > Hi guys > > > > How can I read a file which contains a number and assign that number to a > > variable via awk programming? By the way, I want to use this awk program in > > a shell script. > > > > Thanks in advance > > Try this: > > awk -v file=/etc/ttys 'BEGIN { getline line %s: %s\n", file, line }' Or more verbose: #!/bin/sh filename=$1 echo "file is ${filename} with content:" cat ${filename} echo "calling awk..." awk "BEGIN { getline no < \"${filename}\" close \"${filename}\" print no print no * 2 }" # EXAMPLE: # # # % ./awkvar.sh /tmp/no.txt # file is /tmp/no.txt with content: # 12345 # calling awk... # 12345 # 24690 The example shows how to use the variable inside awk. You could get rid of the getline function in case the file contains only the number you're interested in. If you need further processing of the file, you can do that inside awk (e. g. omitting comment lines, obtain data from a given line number of specific pattern). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ 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: using AWK
On Dec 17, 2012, at 8:23 AM, Polytropon wrote: > On Mon, 17 Dec 2012 08:16:26 -0800, Devin Teske wrote: >> >> On Dec 17, 2012, at 3:39 AM, Jack Mc Lauren wrote: >> >>> Hi guys >>> >>> How can I read a file which contains a number and assign that number to a >>> variable via awk programming? By the way, I want to use this awk program in >>> a shell script. >>> >>> Thanks in advance >> >> Try this: >> >> awk -v file=/etc/ttys 'BEGIN { getline line > %s: %s\n", file, line }' > > Or more verbose: > > > > > #!/bin/sh > > filename=$1 > > echo "file is ${filename} with content:" > cat ${filename} > > echo "calling awk..." > awk -v filename=$filename "BEGIN { >getline no < filename >close filename >print no >print no * 2 > }" > > > > > # EXAMPLE: > # > # > # % ./awkvar.sh /tmp/no.txt > # file is /tmp/no.txt with content: > # 12345 > # calling awk... > # 12345 > # 24690 > > > > The example shows how to use the variable inside awk. You > could get rid of the getline function in case the file > contains only the number you're interested in. If you need > further processing of the file, you can do that inside > awk (e. g. omitting comment lines, obtain data from a given > line number of specific pattern). > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: FreeBSD/EC2 -9.0-Current 2011-01-01 (ami-f4db2a9d)
The ami you are using is obsolete, according to [1] ami-5339bb3a is what you probably want. I am using pkgng with no problems, just launch the ami in a micro instance. No need for workarounds. [1] http://www.daemonology.net/freebsd-on-ec2/ On Mon, Dec 17, 2012 at 6:19 PM, jflowers wrote: > I'm working my way through a re-education for EC2. I read a lot of posts > but find it confusing to keep up with the current state of the art as to > what information is applicable and what is not: > > 1. I had convinced myself that I was being told that I had to use a Windows > instance but then found this AMI. It launched for T1.micro, always with the > note that it was available for the free-tier which is important to me. Have > I been too optimistic or is it, indeed, running with the free-tier > restrictions? > > 2. Unfortunately, after I had spent a couple of hours on installing ports, I > installed pkgng. It seemed to install OK but then when I ran pkg2ng it > didn't work throwing the following error message twice. > > /libexec/ld-elf.so.1: Undefined symbol "Quiet" referenced from COPY > relocation in /usr/sbin/pkg_info. > > and then ... > > Conversion has been successfully finished > Your old packages database has been moved to: /var/db/pkg.bak > > There is no sign of a pkg.bak anywhere on the machine and, of course, pkg_* > tools don't work. /var/db/pkg is still fully populated with what looks like > the correct files. There is also no perl installed > > So my question is "Is there any way I can recover pkg_* tools or get pkgng > to function? With only a couple of hours in it, I'm tempted to just start > over and use one of the RELEASE AMIs. > > 3. I also noted a thread where Colin Percival talked about an initial launch > as c1.medium to set things up and then restarting as t1.micro. Won't this > trigger a minimum bill for 1 month being added to my free-tier $0.00? > > Thanks for any help responses to get me pointed in the right direction. > > -- > Jim Flowers > > ___ > 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" ___ 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"
"last" not showing recent login activity
Hello, on one of my systems I just found out that "last" only shows some old login / logout activity, but not the recent actvities. The strange thing... everytime I log into the system, /var/log/utx.log gets update to the current timestamp (and also grows by some bytes). But "last" only shows very old data... srv# last -f utx.log -d 20121218 matthias pts/3 Mon Dec 3 23:32 still logged in matthias pts/2 Mon Dec 3 23:31 still logged in Is there any reason why I can't see the recent logins there? Which component does write data to utx.log - is this done via syslog or a lower level mechanism? Thanks, Matthias ___ 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"
making a custom iso
Hi , I have just build a custom iso using cd /usr svn co http://svn.freebsd.org/base/stable/9 src cd src make buildworld buildkernel cd release make release make install DESTDIR=/var/freebsd-snapshot Svn Revision is r244359 (9.1-RELEASE is r243825) but after install when i do uname -a I get 9.1-PRERELEASE I think http://svn.freebsd.org/base/stable/9 should be updated to 9-Stable Regards. ___ 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"
HR, legal and business documents in kenya
Get Instant Access to 1,200+ Kenyan Business and Legal Templates. Get over Ksh100,000 worth of document templates for just Ksh 2000 (That's only Ksh2 per doc!) >From contract writing to daily communications, client acquisition, business >management, HR management, accounting and more! Written by lawyers, consultants and specialized professionals, all documents have been formatted with standard fonts and appearance to help you maintain a professional corporate image. View the Full list of Documents you will get: http://www.offdocs.com/document-list.htm Pricing: http://www.offdocs.com/pricing.htm Why create documents from scratch when you can have an entire suite of tried and tested business documents available to you at the click of a button? For more Information Please contact us at i...@offdocs.com ___ 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: "last" not showing recent login activity
On 17/12/2012 18:55, Matthias Petermann wrote: > Hello, > > on one of my systems I just found out that "last" only shows some old > login / logout activity, but not the recent actvities. > > The strange thing... everytime I log into the system, /var/log/utx.log > gets update to the current timestamp (and also grows by some bytes). > > But "last" only shows very old data... > > srv# last -f utx.log -d 20121218 > matthias pts/3 Mon Dec 3 23:32 still > logged in > matthias pts/2 Mon Dec 3 23:31 still > logged in > > Is there any reason why I can't see the recent logins there? Which > component does write data to utx.log - is this done via syslog or a > lower level mechanism? http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/168844 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: "last" not showing recent login activity
On 17/12/2012 21:22, Matthew Seaman wrote: > On 17/12/2012 18:55, Matthias Petermann wrote: >> Hello, >> >> on one of my systems I just found out that "last" only shows some old >> login / logout activity, but not the recent actvities. >> >> The strange thing... everytime I log into the system, /var/log/utx.log >> gets update to the current timestamp (and also grows by some bytes). >> >> But "last" only shows very old data... >> >> srv# last -f utx.log -d 20121218 >> matthias pts/3 Mon Dec 3 23:32 still >> logged in >> matthias pts/2 Mon Dec 3 23:31 still >> logged in >> >> Is there any reason why I can't see the recent logins there? Which >> component does write data to utx.log - is this done via syslog or a >> lower level mechanism? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/168844 Errr... OK. Yours is a different issue with utx.log. It is not syslog that updates utx.log but the various programs like login(1) or sshd(8) that actually handle the authentication when you try and log in. Most applications achieve that via the pam_lastlog(8) module. As to why you cannot see anything in the file beyond a certain point: perhaps the file data got corrupted in the middle? You might be able to tell by examining the file with hd(1) or getent(1) -- try: getent utmpx log /var/log/utx.log You might also fine the getutxent(3) man page enlightening. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matt...@infracaninophile.co.uk signature.asc Description: OpenPGP digital signature
KDE4 has no FolderView in FreeBSD 9.1-RELEASE
Hello, I installed FreeBSD 9.1 4 days ago. After compiling KDE4 I cannot find the fodlerview plasmoid (shouldn't it be installed using the deskutils/kdeplasma- addons port?). I didn't find another port containing the plasmoid in question. In FreeBSD 8.3 I had it in my system... Thanks in advance Elias ___ 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"
Curious question about using zfs send -R and receive on FreeBSD
I recently migrated a machine that was built on a VM to physical hardware using the zfs send -R option against a snapshot of its root zfs setup. I went from smaller drives to larger, both using a mirrored zpool. However the devices were different, the device IDs on the VM were da0 and da1, the device IDs on the physical hardware were ada0 and ada1. I had used labels when creating the gpt layout to plan for this. And all worked great, in fact it was the fastest I have ever converted a virtual machine to a physical machine. After I finished though, I got curious, was it actually necessary for me to mount the new boot zfs partition while running on the live cd and copy the zpool.cache file I had created when creating the zpool or would have the existing cache file that would have been included in the zfs send contained the right information? As the zpool was pointed at the gpt label devices, or was the fact that the size changed enough difference that copying the file was indeed necessary? -- Thanks, Dean E. Weimer http://www.dweimer.net/ ___ 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"
FreeBSD as VMWare guest / disk resizing
Hello everyone - I'm looking for a way to get FreeBSD 8 / 9 to detect that an already existing disk has grown. I have FreeBSD running as a guest within vSphere ESX 5. Here is the output of camcontrol showing how the disks are detected within the OS: [root@QA1HWFBSD83201 ~]# camcontrol inquiry da0 pass0: Fixed Direct Access SCSI-2 device pass0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Command Queueing Enabled In the VM settings I can increase the disk size but I can't seem to find the right command within FreeBSD to force it to detect the new, larger size without a reboot. 'camcontrol rescan all' works great to detect a new drive but doesn't detect a larger disk. Within a Linux distribution like Debian, the following command will detect the larger drive: echo 1 > /sys/class/scsi_device/0:0:0:0/device/rescan I apologize if this has been answered in the archives or online but I just haven't been able to get a definitive answer if this is possible, and how. Thanks so much in advance, Luke ___ 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: FreeBSD as VMWare guest / disk resizing
It can be done but it's not easy and not pretty. You'll have to rewrite the partition scheme to grow *only* the last partition and then use growfs on the last partition to zero the new inodes within its newly defined range. You'll of course need to boot from another medium to do this. I usually use DruidBSD for this: DruidBSD-1.0b1.iso (a tiny 23.5MB ISO that you can write to thumb disk with dd or burn to cd; either works fine) Boot from it and use the tools like "disklabel -e /dev/yourdisk" But… be extremely careful and do your mathematics! I know this isn't a complete step-by-step guide, but I wanted to get the answer out there that this is possible and it's a known quantity, but it can be dangerous if you get the math wrong when editing the disklabel positions, for example. If you can get that part right, the rest is easy (growfs). -- Devin On Dec 17, 2012, at 4:15 PM, Luke Bakken wrote: > Hello everyone - > > I'm looking for a way to get FreeBSD 8 / 9 to detect that an already > existing disk has grown. I have FreeBSD running as a guest within > vSphere ESX 5. Here is the output of camcontrol showing how the disks > are detected within the OS: > > [root@QA1HWFBSD83201 ~]# camcontrol inquiry da0 > pass0: Fixed Direct Access SCSI-2 device > pass0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Command > Queueing Enabled > > In the VM settings I can increase the disk size but I can't seem to > find the right command within FreeBSD to force it to detect the new, > larger size without a reboot. 'camcontrol rescan all' works great to > detect a new drive but doesn't detect a larger disk. Within a Linux > distribution like Debian, the following command will detect the larger > drive: > > echo 1 > /sys/class/scsi_device/0:0:0:0/device/rescan > > I apologize if this has been answered in the archives or online but I > just haven't been able to get a definitive answer if this is possible, > and how. > > Thanks so much in advance, > Luke > ___ > 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" _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ 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: Partitioning - please not that again
Several trials failed, but perhaps the kind of issues do lead to the cause. I'll describe one trial. Power on -> Enter to boot -> Shell -> # sysinstall -> Standard -> set up MBR partition -> ada0 -> keep geometry: yes -> OffsetSize(ST) EndName PType DescSubtype Flags 063 62 - 12unused0 63 121274433 1212574495 ada0s1 8freebsd 165 121274496 250 121274745 - 12unused0 121274746 503862599 625137344 ada0s2 4ext.DOS 5 625137345 5103 625142447 - 12unused0 Q = Finish -> Boot manager: None -> For other trials I also used W instead of Q and/or I deleted and created ada0s1. I always get: "Disc slicing warning: chunk ´ada0s2´ [121274746..625137344] does not start on track boundary" ok --> ok -> create BSD partition: ok -> Disk: ada0 Partition name: adaos1 Free: 121274433 blocks (59216MB) (No Entries before) A = Auto Defaults -> PartMount Size Newfs ada0s1a / 1024MB UFS2 Y ada0s1b swap 4096MB SWAP ada0s1d /var 7916MB UFS2+S Y ada0s1e /tmp 1024MB UFS2+S Y ada0s1f /usr 45156MB UFS2+S Y If I chose Create instead of Auto, there aren't enough MB available, I can chose Auto and than R (delete + merge), than there's enough space to continue with Create. For this trial I only used Auto. -> Q = Finish -> 6 Averaged User -> en Doc -> Port collection: Yes -> ok -> 1 CD/DVD -> "Message: Couldn't create directory /dist: Read-only file system" -> ok -> "Message: Error mounting /dev/cd0 on /dist: No such file or directory (2)" ok -> Adjust media configuration: yes -> Options -> Nothing edited -> Q(uit) -> Cancel -> "Installation...with some errors" (IOW no installation ;) -> ok -> Exit install -> # exit (Exit shell, back to installer) -> I continued this trial with the regular installer. Install -> Keymap..., Hostname..., [*] doc games lib32 ports [ ] src -> Partitioning: Manual -> ada0s1 57GB BSD -> Auto -> ada0 ok -> Partition (not entire Disk) -> Add Partition Type: freebsd Size: 2551kB Mountpoint *?* continuing didn't work Regards, Ralf ___ 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"
i386 vs. amd64
Ever since 8.X (my system is now 9.1-RC3 [done via csup]) been using i386 with the following main ports: x11-wm/xfce4 www/firefox www/linux-f10-flashplugin11 editors/libreoffice www/tomcat-7 www/apace22 devel/aegis (I am the maintainer) devel/fhist devel/cook java/openjdk6 emulation/virtualbox-ose (and additions) print/cups I have avoided amd64 in the past due to some or not all them working, but want to switch if possible because PAE seems to be broken now on i386. So I have the following questions: 1. Will all the above ports (and their dependencies) work on amd64? 2. Is there any way to do a in place switch to amd64 or do I need to rebuild the system from the ground up? 3. In general is amd64 now as capable of handling ports and such as well as i386 does? ___ 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"
using AWK - Thanks :)
Hi all Thank you so much my friends, Ben Frank Polytropon Devin you helped me so much :) ___ 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: "last" not showing recent login activity
Hi Matthew, Zitat von Matthew Seaman : Errr... OK. Yours is a different issue with utx.log. It is not syslog that updates utx.log but the various programs like login(1) or sshd(8) that actually handle the authentication when you try and log in. Most applications achieve that via the pam_lastlog(8) module. As to why you cannot see anything in the file beyond a certain point: perhaps the file data got corrupted in the middle? You might be able to tell by examining the file with hd(1) or getent(1) -- try: getent utmpx log /var/log/utx.log You might also fine the getutxent(3) man page enlightening. Thanks - that's exactly the information I was looking for. I investigated the utx.log with getent and hd. Looks like your guess is proven - it contains definitely more data than last actually shows. I did not find the reason in detail yet but I could track this down to an event occured on the affected machine during the time of the last shown data (had to perform a hardware reset due to a hanging FS snapshot, causing me to do a manual fsck). Kind regards, Matthias ___ 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: i386 vs. amd64
Hi, wasn't the same question here a few days ago? On Tue, 18 Dec 2012 00:16:36 -0500 Aryeh Friedman wrote: > Ever since 8.X (my system is now 9.1-RC3 [done via csup]) been using > i386 with the following main ports: > > x11-wm/xfce4 yes. > www/firefox Yes. > www/linux-f10-flashplugin11 > editors/libreoffice Yes. > www/tomcat-7 > www/apace22 Typo? Apache 2.2 runs. > devel/aegis (I am the maintainer) > devel/fhist > devel/cook > java/openjdk6 > emulation/virtualbox-ose (and additions) > print/cups Yes. The ones I did not answer, I do not have installed. > > I have avoided amd64 in the past due to some or not all them working, > but want to switch if possible because PAE seems to be broken now on > i386. It was a big jump forward when I switched during 8.0 or 8.1. > > So I have the following questions: > > 1. Will all the above ports (and their dependencies) work on amd64? I gave you the answer if I knew one. I general, I do not have problems which are linked to 32 or 64 bits. > 2. Is there any way to do a in place switch to amd64 or do I need to > rebuild the system from the ground up? To my knowledge, it is still a fresh installation. Just download an image and start from there. > 3. In general is amd64 now as capable of handling ports and such as > well as i386 does? I saw that some ports I used to use on i386 went 100% smooth on amd64. I believe that this has improved even further. Just make the jump. Erich ___ 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"