From owner-freebsd-questions@FreeBSD.ORG Sat Apr 10 14:45:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8853816A4CE for ; Sat, 10 Apr 2004 14:45:16 -0700 (PDT) Received: from smtp.thilelli.net (jgabel.net1.nerim.net [80.65.226.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6173F43D1F for ; Sat, 10 Apr 2004 14:45:15 -0700 (PDT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id ABA8E78C4A for ; Sat, 10 Apr 2004 23:45:15 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 44702-04-2 for ; Sat, 10 Apr 2004 23:45:14 +0200 (CEST) Received: from webmail.thilelli.net (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with SMTP id CC88778C43 for ; Sat, 10 Apr 2004 23:45:14 +0200 (CEST) Received: from 192.168.0.105 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Sat, 10 Apr 2004 23:45:14 +0200 (CEST) Message-ID: <50911.192.168.0.105.1081633514.squirrel@webmail.thilelli.net> In-Reply-To: References: <50127.192.168.0.105.1081599736.squirrel@webmail.thilelli.net> Date: Sat, 10 Apr 2004 23:45:14 +0200 (CEST) From: "Julien Gabel" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at thilelli.net Subject: Re: Can't *write* to a hard disk, not even a slice using fdisk(8). X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2004 21:45:16 -0000 >> Here is my problem. I had a hard disk for one year now, working together >> with an other identical disk in a _hard_ mirror. > What's a '_hard_ mirror'? How did you set it up? I want to say that it is a mirror created with a hardware HighPoint HPT374 (channel 2+3) UDMA133 controller ; not created using software, like vinum for example. >> - But when I tried to create a slice on it, I get: >> # fdisk -BI ad10 >> ******* Working on device /dev/ad10 ******* >> fdisk: can't write fdisk partition table: Operation not permitted > GEOM doesn't let you touch the disk if some partition is mounted off it. > Try setting kern.geom.debugflags to 1 There is no partition mounted on it because the miror is actually breack, so this disk is totally not used at this time. Before that, a /home was mounted on the device corresponding to the mirror, i.e. /dev/ar1 (which was made from /dev/ad8 + /dev/ad10). Actually, and because I had some activity on this machine, I made the /home partition available under the /dev/ad8 device alone, which is the other identical disk which previously formed the mirror and works like a charm. I changed the sysctl's flag : # sysctl kern.geom.debugflags=1 kern.geom.debugflags: 0 -> 1 But when I try : # fdisk -BI ad10 ******* Working on device /dev/ad10 ******* fdisk: can't write fdisk partition table: Operation not permitted I just get these messages via syslog : # tail -8 /var/log/messages Apr 10 23:39:04 bento kernel: g_slice_config(ad10, 0, 0) Apr 10 23:39:04 bento kernel: g_slice_config(ad10, 1, 0) Apr 10 23:39:04 bento kernel: g_slice_config(ad10, 2, 0) Apr 10 23:39:04 bento kernel: g_slice_config(ad10, 3, 0) Apr 10 23:39:04 bento kernel: g_slice_config(ad10, 0, 1) Apr 10 23:39:04 bento kernel: g_slice_config(ad10, 1, 1) Apr 10 23:39:04 bento kernel: g_slice_config(ad10, 2, 1) Apr 10 23:39:04 bento kernel: g_slice_config(ad10, 3, 1) >> 3/ Anything else to say to diagnose my problem? > Please show us /etc/fstab and the output of mount # grep /home /etc/fstab #/dev/ar1s1d /home ufs rw,nosuid,nodev,noexec,userquota 2 2 /dev/ad8s1d /home ufs rw,nosuid,nodev,noexec,userquota 2 2 # mount /dev/ar0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad8s1d on /home (ufs, local, nodev, noexec, nosuid, with quotas, soft-updates) /dev/ar0s1e on /tmp (ufs, local, nodev, nosuid, soft-updates) /dev/ar0s1f on /usr (ufs, local, soft-updates) /dev/ar0s1d on /var (ufs, local, noexec, soft-updates) Because the problematic disk is not actually used, I can try some commands on it if someone think it may be interesting. Thanks for your help, -- -jpeg.