From owner-freebsd-stable@FreeBSD.ORG Sat Mar 10 16:19:15 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3052816A405 for ; Sat, 10 Mar 2007 16:19:15 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.166]) by mx1.freebsd.org (Postfix) with ESMTP id 91FF213C4A3 for ; Sat, 10 Mar 2007 16:19:13 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.13.8/8.13.8) with ESMTP id l2AGJ8TU003298 for ; Sat, 10 Mar 2007 23:19:08 +0700 (KRAT) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.13.8/8.13.8/Submit) id l2AGJ8Aa003297 for stable@freebsd.org; Sat, 10 Mar 2007 23:19:08 +0700 (KRAT) (envelope-from eugen) Date: Sat, 10 Mar 2007 23:19:08 +0700 From: Eugene Grosbein To: stable@freebsd.org Message-ID: <20070310161908.GA3238@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2.2i Cc: Subject: devfs promlem: creating new partition in empty slice X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2007 16:19:15 -0000 Hi! There is FreeBSD 6.2-STABLE (updated yesterday) having single SATA drive. The drive has two equal-sized slices ad4s1 and ad4s2, both marked with sysid 165 (FreeBSD). The system occupies ad4s1 (partitions from a to h), and ad4s2 is empty. This scheme was created at installation time with sysinstall started by system boot CD (official disk1). Now, when the system is up and running, I need to create partitions within slice ad4s2. Questions are: 1. Do I really need 'sysctl kern.geom.debugflags=16' if I do not want to touch MBR or living slice at all, and why, if I do? 2. How should I create new partitions within ad4s2? I've tried to use sysinstall, it fills bsdlabel right but fails to newfs/mount new partitions because device nodes do not exist. So now I have this: # bsdlabel ad4s2 # /dev/ad4s2: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524288 2097152 4.2BSD 0 0 0 b: 2097152 0 swap c: 78702435 0 unused 0 0 # "raw" part, don't edit d: 524288 2621440 4.2BSD 0 0 0 e: 4194304 3145728 4.2BSD 0 0 0 f: 20971520 7340032 4.2BSD 0 0 0 g: 20971520 28311552 4.2BSD 0 0 0 h: 29419363 49283072 4.2BSD 0 0 0 # ls -l /dev/ad4s2* crw-r----- 1 root operator 0, 75 10 อมา 14:53 /dev/ad4s2 crw-r----- 1 root operator 0, 84 10 อมา 14:53 /dev/ad4s2c What should I do now to get needed device nodes? The server is remote one, it runs in production and I'd prefer to not reboot it. Eugene Grosbein