Re: Can't access a music CD

2011-10-10 Thread Frank Shute
On Sun, Oct 09, 2011 at 08:33:01PM -0500, Michael D. Norwick wrote:

 Good Day;
 
 Since installing FreeBSD 9-beta2 (now 9-beta3) I have not been able to 
 play a music cd with the dvd writer on this laptop.  It is a Dell 
 Latitude D630.  I have built several new worlds and kernels with the 
 following devices enabled in the kernel config.;
 
 devicescbus# SCSI bus (required for ATA/SCSI)
 devicech# SCSI media changers
 deviceatapicam
 deviceda# Direct Access (disks)
 devicesa# Sequential Access (tape etc)
 devicecd# CD
 devicepass# Passthrough device (direct ATA/SCSI access)
 deviceses# SCSI Environmental Services (and SAF-TE)
 
 $uname -a
 
 FreeBSD ..net 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Sat Oct  8 
 19:48:29 CDT 2011 
 michael@..net:/usr/obj/usr/src/sys/KERNEL_100811  amd64
 
 This kernel was built after a recent csup and portsnap fetch.  The 
 buildworld and buildkernel steps have executed several times without 
 error.  A recent portupgrade only updated a couple of applications.
 
 dmesg says this;
 
 cd0 at ata0 bus 0 scbus1 target 0 lun 0
 cd0: TSSTcorp DVD+-RW TS-L632H D300 Removable CD-ROM SCSI-0 device
 cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
 cd0: Attempt to query device size failed: NOT READY, Medium not present 
 - tray closed
 
 and /boot/loader.conf says this;
 
 linux_load=YES
 atapicam_load=YES
 
 With a music CD in the drive /var/log/messages says this;
 
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): READ(10). CDB: 28 0 
 0 0 0 0 0 0 40 0
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): CAM status: SCSI 
 Status Error
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): SCSI status: Check 
 Condition
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): SCSI sense: ILLEGAL 
 REQUEST asc:64,0 (Illegal mode for this track)
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): cddone: got error 
 0x6 back
 
 and /etc/devfs.conf says this;
 
 # Commonly used by many ports
 #link   acd0cdrom
 linkcd0 cdrom
 own cd0 root:wheel
 permcd0 0660
 
 I think I might be missing something in /etc/devfs.conf.  man devfs.conf 
 or the handbook did not get me any closer to a solution.
 
 It worked under 8.2 on this machine.
 
 Thank You for the help.
 

What does:

$ ls -l /dev | grep cd

give you?

I assume you're a member of wheel.

Give cdcontrol(1) a go if the above looks ok.

Make sure your volume isn't turned right down! (mixer(1))

Have you checked out that your sound card is configured ok?

$ cat /dev/sndstat


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




pgpRKSrdVB1e0.pgp
Description: PGP signature


Re: need help with pf configuration

2011-10-10 Thread Victor Sudakov
Matthew Seaman wrote:
  
 I need no details, just a general hint how to setup such security
 levels, preferably independent of actual IP addressses behind the
 interfaces (a :network macro is not always sufficient).

You may use urpf-failed instead :network
urpf-failed: Any source address that fails a unicast reverse path
forwarding (URPF) check, i.e. packets coming in on an interface
other than that which holds the route back to the packet's source
address.
   
   Excuse me, I do not see how this is relevant to my question (allowing
   traffic to be initiated from a more secure interface to a less secure
   interface and not vice versa).
  Sorry, you can't do this with pf, ipf or ipfw (the 3 firewalls in
  FreeBSD). There is no concept of security level at all, you must specify
  on each interface the traffic allowed (in input and output).
  
  My reply was about the use of the interface:network addresses.
 
 pf has the concept of packet tagging.  So you can write a small rule to
 tag traffic crossing eg. your set of internal interfaces and then write
 one ruleset to filter all that traffic identified by tag.
 
 Quoting pf.conf(5):  This can be used, for example, to
provide trust between interfaces and to determine if packets
have been processed by translation rules.

I guess the tagging feature can be useful. Thank you for the hint. If
I come up with a working ruleset, I'll post it here.


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
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


ruby 1.9 with nonblocking connection

2011-10-10 Thread Subbsd
Hello,

I'm trying to use selenium in ruby (ruby-1.9.2.290_2,1) script, but
get an error like this:


/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/common/socket_poller.rb:63:in
`connect_nonblock': Invalid argument - connect(2) (Errno::EINVAL)
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/common/socket_poller.rb:63:in
`listening?'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/common/socket_poller.rb:23:in
`block in connected?'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/common/socket_poller.rb:86:in
`with_timeout'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/common/socket_poller.rb:23:in
`connected?'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/firefox/launcher.rb:75:in
`connect_until_stable'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/firefox/launcher.rb:37:in
`block in launch'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in
`locked'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/firefox/launcher.rb:32:in
`launch'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/firefox/bridge.rb:19:in
`initialize'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/common/driver.rb:29:in
`new'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver/common/driver.rb:29:in
`for'
       from 
/usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/webdriver.rb:81:in
`for'
       from test.rb:8:in `main'


at the 63 I see the following line on socket_poller.rb:


62          begin
63            sock.connect_nonblock sockaddr
64          rescue Errno::EINPROGRESS

any idea of what could be the reason for such behavior? Thanks.
___
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: two networks in one server?

2011-10-10 Thread krad
On 9 October 2011 12:38, Matthew Seaman m.sea...@infracaninophile.co.ukwrote:

 On 09/10/2011 10:36, pepe wrote:
  I'm just asking before trying if it possible to use two network uplinks
 in
  one server so other would be just backup way in?
  I have currently connection from two ISPs and server is up with one
  connection. Is it possible to add another nic and wire that to connection
  from another isp? So isp 1 would be in normal use in/out, but isp 2 could
 be
  used connecting in?

 This is a very commonly asked question around the Internet.

 The answer is -- it's a lot harder to do properly than you might think.
  Requires understanding Internet routing protocols like BGP and you will
 need the cooperation of both ISPs to make it all work.

 However there is a light version which might work for you.  Keywords
 here are policy based routing.  In this case you can use firewall
 software to forward packets by an alternate gateway.  This only affects
 the outward path from your system: no good at all if all the incoming
 traffic is using an uplink that fails, but you can use it to load
 balance across multiple links.

Cheers,

Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



There is a simpler version now in freebsd. You could spawn an additional
version of sshd with the setfib command, and have a different default route
in the relevant fib table. If you have a bunch of services you need to run
like that maybe you could wrap them up in a jail and use the fib on the
jail. Have a look at setfib.

NOTE: it appears you need to set a compile time option for your kernel
options ROUTETABLES=X where X is the number of routing tables you require
___
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: need help with pf configuration

2011-10-10 Thread Victor Sudakov
Nikos Vassiliadis wrote:
 
 I have a configuration with 2 inside interfaces, 1 outside and 1 dmz
 interface. The traffic should be able to flow
 
 1) from inside1 to any (and back)
 2) from inside2 to any (and back)
 3) from dmz to outside only (and back).
 
 I need no details, just a general hint how to setup such security
 levels, preferably independent of actual IP addressses behind the
 interfaces (a :network macro is not always sufficient).
 
 You may use urpf-failed instead :network
 urpf-failed: Any source address that fails a unicast reverse path
 forwarding (URPF) check, i.e. packets coming in on an interface other
 than that which holds the route back to the packet's source address.
 
 Excuse me, I do not see how this is relevant to my question (allowing
 traffic to be initiated from a more secure interface to a less secure
 interface and not vice versa).
 
 
 What if you combine macros and lists?
 The ruleset below seems scalable to any number of interfaces.
 
 inside1 = em1
 inside2 = em2
 dmz = em0
 insides = { $inside1:network $inside2:network }

The problem is, there could be several routed networks behind the
inside interfaces. Not all inside networks are directly connected, and
the :network macro works only for directly connected interfaces,
right?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
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: need help with pf configuration

2011-10-10 Thread Patrick Lamaiziere
Le Mon, 10 Oct 2011 14:10:53 +0700,
Victor Sudakov suda...@sibptus.tomsk.ru a écrit :

 The problem is, there could be several routed networks behind the
 inside interfaces. Not all inside networks are directly connected, and
 the :network macro works only for directly connected interfaces,
 right?

Rigth, this is why I suggest urpf-failed instead.

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


Re: Can't access a music CD

2011-10-10 Thread Michael D. Norwick

On 10/10/11 01:37, Frank Shute wrote:

On Sun, Oct 09, 2011 at 08:33:01PM -0500, Michael D. Norwick wrote:

Good Day;

Since installing FreeBSD 9-beta2 (now 9-beta3) I have not been able to
play a music cd with the dvd writer on this laptop.  It is a Dell
Latitude D630.  I have built several new worlds and kernels with the
following devices enabled in the kernel config.;

devicescbus# SCSI bus (required for ATA/SCSI)
devicech# SCSI media changers
deviceatapicam
deviceda# Direct Access (disks)
devicesa# Sequential Access (tape etc)
devicecd# CD
devicepass# Passthrough device (direct ATA/SCSI access)
deviceses# SCSI Environmental Services (and SAF-TE)

$uname -a

FreeBSD ..net 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Sat Oct  8
19:48:29 CDT 2011
michael@..net:/usr/obj/usr/src/sys/KERNEL_100811  amd64

This kernel was built after a recent csup and portsnap fetch.  The
buildworld and buildkernel steps have executed several times without
error.  A recent portupgrade only updated a couple of applications.

dmesg says this;

cd0 at ata0 bus 0 scbus1 target 0 lun 0
cd0:TSSTcorp DVD+-RW TS-L632H D300  Removable CD-ROM SCSI-0 device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
- tray closed

and /boot/loader.conf says this;

linux_load=YES
atapicam_load=YES

With a music CD in the drive /var/log/messages says this;

Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): READ(10). CDB: 28 0
0 0 0 0 0 0 40 0
Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): CAM status: SCSI
Status Error
Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): SCSI status: Check
Condition
Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): SCSI sense: ILLEGAL
REQUEST asc:64,0 (Illegal mode for this track)
Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): cddone: got error
0x6 back

and /etc/devfs.conf says this;

# Commonly used by many ports
#link   acd0cdrom
linkcd0 cdrom
own cd0 root:wheel
permcd0 0660

I think I might be missing something in /etc/devfs.conf.  man devfs.conf
or the handbook did not get me any closer to a solution.

It worked under 8.2 on this machine.

Thank You for the help.


What does:

$ ls -l /dev | grep cd

give you?

I assume you're a member of wheel.

Give cdcontrol(1) a go if the above looks ok.

Make sure your volume isn't turned right down! (mixer(1))

Have you checked out that your sound card is configured ok?

$ cat /dev/sndstat


Regards,


$ ls -l /dev | grep cd
crw-rw-rw-  1 root  wheel   0, 119 Oct 10 04:29 cd0
lrwxr-xr-x  1 root  wheel3 Oct 10 04:29 cdrom - cd0

$ cdcontrol status
Audio status = 21void, current track = 1, current position = 0:00.09
Media catalog is active, number 0826663409727\000\013
Left volume = 216, right volume = 216
$ cdcontrol reset
cdcontrol: Inappropriate ioctl for device
$ cdcontrol play
$ cdcontrol status
Audio status = 17playing, current track = 1, current position = 1:05.18
No media catalog info available
Left volume = 216, right volume = 216

$ tail /var/log/messages
Oct 10 04:30:50 bucksnort kernel: (cd0:ata0:0:0:0): cddone: got error 
0x6 back
Oct 10 04:30:55 bucksnort dbus[1953]: [system] Activated service 
'org.freedesktop.SystemToolsBackends.SMBConfig' failed: Launch helper 
exited with unknown return code 255
Oct 10 04:30:55 bucksnort dbus[1953]: [system] Activated service 
'org.freedesktop.SystemToolsBackends.NFSConfig' failed: Launch helper 
exited with unknown return code 255
Oct 10 04:30:56 bucksnort dbus[1953]: [system] Activating service 
name='org.gnome.SettingsDaemon.DateTimeMechanism' (using servicehelper)
Oct 10 04:30:56 bucksnort dbus[1953]: [system] Successfully activated 
service 'org.gnome.SettingsDaemon.DateTimeMechanism'
Oct 10 04:37:41 bucksnort kernel: (cd0:ata0:0:0:0): MODE_SENSE(6) 
failed, increasing minimum CDB size to 10 bytes
Oct 10 04:39:43 bucksnort kernel: (cd0:ata0:0:0:0): READ SUB-CHANNEL. 
CDB: 42 2 40 2 0 0 0 0 18 0
Oct 10 04:39:43 bucksnort kernel: (cd0:ata0:0:0:0): CAM status: SCSI 
Status Error
Oct 10 04:39:43 bucksnort kernel: (cd0:ata0:0:0:0): SCSI status: Check 
Condition
Oct 10 04:39:43 bucksnort kernel: (cd0:ata0:0:0:0): SCSI sense: ILLEGAL 
REQUEST asc:0,11 (Audio play operation in progress)


Still will not play.  Tried 2 different CD's.

Thank You,

Michael
___
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't access a music CD

2011-10-10 Thread Frank Shute
On Mon, Oct 10, 2011 at 04:47:40AM -0500, Michael D. Norwick wrote:

 On 10/10/11 01:37, Frank Shute wrote:
 On Sun, Oct 09, 2011 at 08:33:01PM -0500, Michael D. Norwick wrote:
 Good Day;
 
 Since installing FreeBSD 9-beta2 (now 9-beta3) I have not been able to
 play a music cd with the dvd writer on this laptop.  It is a Dell
 Latitude D630.  I have built several new worlds and kernels with the
 following devices enabled in the kernel config.;
 
 devicescbus# SCSI bus (required for ATA/SCSI)
 devicech# SCSI media changers
 deviceatapicam
 deviceda# Direct Access (disks)
 devicesa# Sequential Access (tape etc)
 devicecd# CD
 devicepass# Passthrough device (direct ATA/SCSI access)
 deviceses# SCSI Environmental Services (and SAF-TE)
 
 $uname -a
 
 FreeBSD ..net 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Sat Oct  8
 19:48:29 CDT 2011
 michael@..net:/usr/obj/usr/src/sys/KERNEL_100811  amd64
 
 This kernel was built after a recent csup and portsnap fetch.  The
 buildworld and buildkernel steps have executed several times without
 error.  A recent portupgrade only updated a couple of applications.
 
 dmesg says this;
 
 cd0 at ata0 bus 0 scbus1 target 0 lun 0
 cd0:TSSTcorp DVD+-RW TS-L632H D300  Removable CD-ROM SCSI-0 device
 cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
 cd0: Attempt to query device size failed: NOT READY, Medium not present
 - tray closed
 
 and /boot/loader.conf says this;
 
 linux_load=YES
 atapicam_load=YES
 
 With a music CD in the drive /var/log/messages says this;
 
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): READ(10). CDB: 28 0
 0 0 0 0 0 0 40 0
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): CAM status: SCSI
 Status Error
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): SCSI status: Check
 Condition
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): SCSI sense: ILLEGAL
 REQUEST asc:64,0 (Illegal mode for this track)
 Oct  9 20:19:01 bucksnort kernel: (cd0:ata0:0:0:0): cddone: got error
 0x6 back
 
 and /etc/devfs.conf says this;
 
 # Commonly used by many ports
 #link   acd0cdrom
 linkcd0 cdrom
 own cd0 root:wheel
 permcd0 0660
 
 I think I might be missing something in /etc/devfs.conf.  man devfs.conf
 or the handbook did not get me any closer to a solution.
 
 It worked under 8.2 on this machine.
 
 Thank You for the help.
 
 What does:
 
 $ ls -l /dev | grep cd
 
 give you?
 
 I assume you're a member of wheel.
 
 Give cdcontrol(1) a go if the above looks ok.
 
 Make sure your volume isn't turned right down! (mixer(1))
 
 Have you checked out that your sound card is configured ok?
 
 $ cat /dev/sndstat
 
 
 Regards,
 
 $ ls -l /dev | grep cd
 crw-rw-rw-  1 root  wheel   0, 119 Oct 10 04:29 cd0
 lrwxr-xr-x  1 root  wheel3 Oct 10 04:29 cdrom - cd0
 
 $ cdcontrol status
 Audio status = 21void, current track = 1, current position = 0:00.09
 Media catalog is active, number 0826663409727\000\013
 Left volume = 216, right volume = 216
 $ cdcontrol reset
 cdcontrol: Inappropriate ioctl for device
 $ cdcontrol play
 $ cdcontrol status
 Audio status = 17playing, current track = 1, current position = 1:05.18
 No media catalog info available
 Left volume = 216, right volume = 216

This looks like it's playing. Is the CD/DVD drive active?

 
 $ tail /var/log/messages
 Oct 10 04:30:50 bucksnort kernel: (cd0:ata0:0:0:0): cddone: got error 
 0x6 back
 Oct 10 04:30:55 bucksnort dbus[1953]: [system] Activated service 
 'org.freedesktop.SystemToolsBackends.SMBConfig' failed: Launch helper 
 exited with unknown return code 255
 Oct 10 04:30:55 bucksnort dbus[1953]: [system] Activated service 
 'org.freedesktop.SystemToolsBackends.NFSConfig' failed: Launch helper 
 exited with unknown return code 255
 Oct 10 04:30:56 bucksnort dbus[1953]: [system] Activating service 
 name='org.gnome.SettingsDaemon.DateTimeMechanism' (using servicehelper)
 Oct 10 04:30:56 bucksnort dbus[1953]: [system] Successfully activated 
 service 'org.gnome.SettingsDaemon.DateTimeMechanism'
 Oct 10 04:37:41 bucksnort kernel: (cd0:ata0:0:0:0): MODE_SENSE(6) 
 failed, increasing minimum CDB size to 10 bytes
 Oct 10 04:39:43 bucksnort kernel: (cd0:ata0:0:0:0): READ SUB-CHANNEL. 
 CDB: 42 2 40 2 0 0 0 0 18 0
 Oct 10 04:39:43 bucksnort kernel: (cd0:ata0:0:0:0): CAM status: SCSI 
 Status Error
 Oct 10 04:39:43 bucksnort kernel: (cd0:ata0:0:0:0): SCSI status: Check 
 Condition
 Oct 10 04:39:43 bucksnort kernel: (cd0:ata0:0:0:0): SCSI sense: ILLEGAL 
 REQUEST asc:0,11 (Audio play operation in progress)

Again, looks like it's playing

 
 Still will not play.  Tried 2 different CD's.
 
 Thank You,

If the drive is active and you're not getting sound out:

What does:

$ mixer



$ cat /dev/sndstat

show?


Regards,


-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




pgpN1jzab84LU.pgp
Description: PGP 

using /sbin/gpart to add GPT volume

2011-10-10 Thread n dhert
I have a FreebSD 8.2 machine with 12 1-Tb disks used for making backups.
This is RAID6 with 2 volumes 200GB (system) and 8800 GB (for backup data)
When this machine was installed (jan 2009), I use standard BSD install to
put the system on the 200GB volume

Then I used  /sbin/gpt then to make the second volume available for freeBSD
(since volume 2 is 2Tbyte  gpt was needed)

The situation is now:
Filesystem  1024-blocks   Used  Avail Capacity  Mounted on
/dev/da0s1a 2026030 279538158441015%/
devfs 1  1  0   100%/dev
/dev/da0s1e20308398512   18683216 0%/tmp
/dev/da0s1f957272049599272   7846975611%/usr
/dev/da0s1d203083981517948   17165780 8%/var
/dev/da1p1   8323314852 6484140424 117330924085%/home

I see /sbin/gpt no longer exists, but has been replaced by /sbin/gpart

$ gpart show
=   63  390624696  da0  MBR  (186G)
 63  3906204121  freebsd  [active]  (186G)
  390620475   4284   - free -  (2.1M)

=0  390620412  da0s1  BSD  (186G)
  04194304  1  freebsd-ufs  (2.0G)
4194304  104857600  2  freebsd-swap  (50G)
  109051904   41943040  4  freebsd-ufs  (20G)
  150994944   41943040  5  freebsd-ufs  (20G)
  192937984  197682428  6  freebsd-ufs  (94G)

= 34  17187494333  da1  GPT  (8.0T)
   34  171874943331  freebsd-ufs  (8.0T)
shows my disks ..


I have free slots for extra disks, If I add disks and make a third RAID6
volume   (da2)
then with gpart I should be able to make a file system of that and mount it
e.g. under /home2 via something like:
# gpart create -s GPT da2
# gpart add -t efi da2(type efi is a tytpe where GPT partitioning scheme
is used (man gpart))
# gpart show
# newfs /dev/da2p1
# mkdir /home2
# mount /dev/da2p1 /home2
(and edit /etc/vfstab for mounting at boot)

I just wanted to try that out op a PC (is already a triple boot: OpenSUSE,
Windows and FreeBSD 8.2)
Using a CD GParted, I freed up some space so that I have an unallocated
space of 970 MB and rebooted the machine in FreeBSD
# sysinstall / Configure / FDisk shows me:
--
Disk name:  ad0FDISK Partition
Editor
DISK Geometry:  79780 cyls/16 heads/63 sectors = 80418240 sectors (39266MB)

Offset   Size(ST)End Name  PType   Desc  Subtype
Flags
 0 63 62- 12 unused0
63   22233897   22233959ad0s1  4 NTFS/HPFS/QNX7
  22233960   29639736   51873695ad0s3  8freebsd  165
  51873696189   51873884- 12 unused0
  51873885   26539380   78413264ad0s2  4 extended DOS, LBA   15
  784132651992060   80405324ad0s4  4 ext2fs  131
  80405325  12915   80418239- 12 unused0
--
 (ad0s1 is my Windows, ad0s3 my freebsd, ad0s2 is my OpenSUSE)
 ad0s4 is my free space

gpart so far shows  (nothing created yet in the unallocated space)
$ gpart show
=  63  80418177  ad0  MBR  (38G)
63  222338971  ntfs  (11G)
  22233960  296397363  freebsd  [active]  (14G)
  51873696   189   - free -  (95K)
  51873885  265393802  !15  (13G)
  78413265   19920604  !131  (973M)
  80405325 12915   - free -  (6.3M)
=   0  26539380  ad0s2  EBR  (13G)
 0   2072385  1  !130  (1.0G)
   2072385  18249840  32896  !131  (8.7G)
  2035   6152895  322576  !131  (2.9G)
  26475120 64260 - free -  (31M)
=   0  29639736  ad0s3  BSD  (14G)
 0   1048576  1  freebsd-ufs  (512M)
   1048576   1994384  2  freebsd-swap  (974M)
   3042960   3092480  4  freebsd-ufs  (1.5G)
   6135440   1048576  5  freebsd-ufs  (512M)
   7184016  22455720  6  freebsd-ufs  (11G)

now I try to create
# gpart create -s GPT ad0s4
gpart: provider: Device not configured

What's wrong?
Well, I see that in 2009 when I used /sbin/gpt, I did try that out also on a
PC, and then used   # gpt create -f /dev/ad0s4
where option -f then meant:  an existing MBR is destroyed and any partitions
described by the MBR are lost.

Must I do a # gpart destroy -F
before # gpart create ...
or what ?

I'm not at all familiar with gpart usage ...
and would like neither to screw up my  PC, nor screw up my backup-system ...
___
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: question

2011-10-10 Thread Matthew Seaman
On 10/10/2011 18:06, Kiril Georgiev wrote:
 Hi, is it possible to make me a subdomain ( A HOST ) by type
 kiril.FreeBSD.org

What benefit would that bring to the FreeBSD project?

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: using /sbin/gpart to add GPT volume

2011-10-10 Thread ill...@gmail.com
On 10 October 2011 11:33, n dhert ndhert...@gmail.com wrote:
 I have a FreebSD 8.2 machine with 12 1-Tb disks used for making backups.
 now I try to create
 # gpart create -s GPT ad0s4
 gpart: provider: Device not configured

(NB I do not have a multi-boot system with an
MBR scheme on it, so I'm not clear on the pre-
cise details)
You want some variation of
# gpart add -t freebsd-ufs ad0[s4]

create is for the disk-wise scheme
add is for the individual slices/partitions

Again, I haven't played with gpart on an MBR disk,
so be careful.

Aso, if you're muddling with the boot disk, you may
have to work in single-user mode.

-- 
--
___
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


Notice about your recent message to dev-h...@subversion.tigris.org

2011-10-10 Thread admin
We are sorry, but this discussion does not exist. Your recent message to 
(Returned mail: Data format error) was rejected.
___
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


Problems removing non-empty directory through NFS

2011-10-10 Thread freebsd
I have a NFS server configured on FreeBSD 9.0 Beta2 that only serves a  
share through NFS v3 TCP. All the processes ( mountd, rpcbind, lockd,  
etc ) are started with -h local ip on both the server and the clients.


The NFS clients range from FreeBSD 6.1 to 8.2.

On all the clients, it is impossible for me to erase a directory that  
contains other data and is from that NFS share. I get this error:



rm -rf nick/
rm: fts_read: Input/output error

same is true if I give the full path:

rm -rf /usr/nfs.mount/nick
rm: fts_read: Input/output error

if the directory is empty, I can use rm -rf or rmdir without problems.

Besides this I can read all the files, erase files, chmod, chown, etc  
without any problem. I just can't erase directories.


Running a truss on the rm -rf shows ( towards the end ):



lseek(4,0x0,SEEK_SET)= 0 (0x0)
close(4) = 0 (0x0)
stat(new,{mode=drwx-- ,inode=53090640,size=512,blksize=4096}) = 0 (0x0)
open(new,O_NONBLOCK,027757765430)  = 4 (0x4)
fstat(4,{mode=drwx-- ,inode=53090640,size=512,blksize=4096}) = 0 (0x0)
fcntl(4,F_SETFD,FD_CLOEXEC)  = 0 (0x0)
fstatfs(0x4,0xbfbfe8c0)  = 0 (0x0)
fstat(4,{mode=drwx-- ,inode=53090640,size=512,blksize=4096}) = 0 (0x0)
fchdir(0x4)  = 0 (0x0)
getdirentries(0x4,0x8051000,0x1000,0x8050014)= 512 (0x200)
getdirentries(0x4,0x8051000,0x1000,0x8050014)= 0 (0x0)
lseek(4,0x0,SEEK_SET)= 0 (0x0)
close(4) = 0 (0x0)
open(..,O_RDONLY,00)   = 4 (0x4)
fstat(4,{mode=drwx-- ,inode=53090635,size=512,blksize=4096}) = 0 (0x0)
fchdir(0x4)  = 0 (0x0)
close(4) = 0 (0x0)
rmdir(0x80525a8) = 0 (0x0)
unlink(dovecot.index.log)  = 0 (0x0)
unlink(dovecot.index.cache)= 0 (0x0)
unlink(dovecot-uidlist)= 0 (0x0)
unlink(dovecot.index.log.2)= 0 (0x0)
unlink(dovecot.index)  = 0 (0x0)
open(..,O_RDONLY,00)   ERR#5 'Input/output error'
rm: write(2,rm: ,4)= 4 (0x4)
fts_readwrite(2,fts_read,8)= 8 (0x8)
: write(2,: ,2)= 2 (0x2)
Input/output error
write(2,Input/output error\n,19)   = 19 (0x13)
exit(0x1)
process exit, rval = 256



There are no errors visible on the server.

Here is the output of nfsstat on the server:


Server Info:
  Getattr   SetattrLookup  Readlink  Read WriteCreate  
   Remove
107929047  19257084 240622998   121  11209701  19004949 0   
 8754163
   Rename  Link   Symlink Mkdir Rmdir   Readdir  RdirPlus  
   Access
  4115334   110898338  1845  15557465  14771644 0  
110311954

MknodFsstatFsinfo  PathConfCommit
0   449246247 0  14146384
Server Ret-Failed
0
Server Faults
0
Server Cache Stats:
   Inprog  Idem  Non-idemMisses
0 0 0 579078451
Server Write Gathering:
 WriteOps  WriteRPC   Opsaved
 19004949  19004949 0


Anyone has any ideas what might be causing this ?


___
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 /sbin/gpart to add GPT volume

2011-10-10 Thread n dhert
In jan 2009 when /sbin/gpt still existed, this is what I did on a multi-boot
test PC, after creatng unallocated spac, booting into my freebsd partition:

# sysinstall
Disk name:  ad0FDISK Partition
Editor
DISK Geometry:  5005 cyls/255 heads/63 sectors = 80405325 sectors (39260MB)
Offset   Size(ST)End Name  PType   Desc  Subtype
Flags
 0 63 62- 12 unused0
63   29414952   29415014ad0s1  4 NTFS/HPFS/QNX7
  294150153116610   32531624ad0s4  4 ext2fs  131
  32531625 62   32531686- 12 unused0
  32531687   14313853   46845539ad0s3  8freebsd  165
  46845540   33559785   80405324ad0s2  4 extended DOS, LBA   15
  80405325  12915   80418239- 12 unused0
ad0s4 was the unallocated space
# gpt create -f /dev/ad0s4
# gpt show /dev/ad0s4
start size  index  contents
01 PMBR
11 Pri GPT header
2   32 Pri GPT table
   34  3116543
  3116577   32 Sec GPT table
  31166091 Sec GPT header

# gpt add /dev/ad0s4
/dev/ad0s4p1 added
# gpt show /dev/ad0s4
start size  index  contents
01 PMBR
11 Pri GPT header
2   32 Pri GPT table
   34  3116543  1  GPT part - FreeBSD UFS/UFS2
  3116577   32 Sec GPT table
  31166091 Sec GPT header
# newfs /dev/ad0s4p1
# mkdir /ghome
# mount /dev/ad0s4p1 /ghome
# df -k
Filesystem   1024-blocksUsed   Avail Capacity  Mounted on
/dev/ad0s3a   380654  170430  17977249%/
devfs  1   1   0   100%/dev
/dev/ad0s3e   317166  56  291738 0%/tmp
/dev/ad0s3f  5144698 3167822 156530267%/usr
/dev/ad0s3d   571118   28080  497350 5%/var
/dev/ad0s4p1 1504908   4 1384512 0%/ghome
My problem is, what are the equivalent instructions using  gpart ???




2011/10/10 ill...@gmail.com ill...@gmail.com

 On 10 October 2011 11:33, n dhert ndhert...@gmail.com wrote:
  I have a FreebSD 8.2 machine with 12 1-Tb disks used for making backups.
  now I try to create
  # gpart create -s GPT ad0s4
  gpart: provider: Device not configured

 (NB I do not have a multi-boot system with an
 MBR scheme on it, so I'm not clear on the pre-
 cise details)
 You want some variation of
 # gpart add -t freebsd-ufs ad0[s4]

 create is for the disk-wise scheme
 add is for the individual slices/partitions

 Again, I haven't played with gpart on an MBR disk,
 so be careful.

 Aso, if you're muddling with the boot disk, you may
 have to work in single-user mode.

 --
 --

___
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