From owner-freebsd-questions@FreeBSD.ORG Wed Mar 5 19:43:28 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7687E5F4; Wed, 5 Mar 2014 19:43:28 +0000 (UTC) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 46C5E3D6; Wed, 5 Mar 2014 19:43:28 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id bj1so1531559pad.16 for ; Wed, 05 Mar 2014 11:43:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3WCk8EOTwkxC6WvOFyWnhpibd8kN9VYfmkyHtnlrDjM=; b=Uo/SsJq6gkLJEkaRrdO9N+GE9Rp1MvTX70uEUYhk3XsBXqKKovmNOZf0m+SkQ1cPlB yFLKUC8rDYZHMRp00dGCKT/ERB95c8ywRt6KATKQKFIM5RTNUZBU98H00P1T9zyUf8YP 9YK1DZO23fJAuH14KR07VvxKEurv1gk0vVIk94vMQ6Zn8UDc48FFEOJ7gD+YqphDuQaD 6yM8Er7HkIpBl68aPkMG9U3QAWuyNkfAK28AF3payAKFc/dHu0YOATNPBHrchDnXfDuZ yatjjZltdAsGRdcuhuJIvTkVA+1ronKwJo93wy21ZJtmfryLnvrcYkZYKnDnLSnRVMaI Kazg== X-Received: by 10.68.224.195 with SMTP id re3mr9229203pbc.93.1394048607988; Wed, 05 Mar 2014 11:43:27 -0800 (PST) Received: from briankrusicw.logan.tv ([64.17.255.138]) by mx.google.com with ESMTPSA id ei4sm11474368pbb.42.2014.03.05.11.43.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 11:43:27 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: mdconfig via rc.conf From: aurfalien In-Reply-To: <18af01cf38a4$b278b1c0$176a1540$@FreeBSD.org> Date: Wed, 5 Mar 2014 11:43:25 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <6292A1D0-80B0-4553-9FC9-CE2BC61EC92C@gmail.com> References: <18af01cf38a4$b278b1c0$176a1540$@FreeBSD.org> To: dteske@FreeBSD.org X-Mailer: Apple Mail (2.1874) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 19:43:28 -0000 On Mar 5, 2014, at 10:56 AM, dteske@FreeBSD.org wrote: >=20 >=20 >> -----Original Message----- >> From: aurfalien [mailto:aurfalien@gmail.com] >> Sent: Tuesday, March 4, 2014 2:14 PM >> To: FreeBSD Mailing List >> Subject: mdconfig via rc.conf >>=20 >> Hi, >>=20 >> Are there any other parameters I would need to setup a ram disk at = boot > time? >>=20 >> I have this in my rc.conf; >>=20 >> mdconfig_md100=3D"-t malloc -s 12G" >>=20 >> I've opted not to mount or format it for now. >>=20 >> But upon boot, I do not see the md100 device. >>=20 >> Is there anything I need in rc.conf to enable this? >>=20 >> Thanks in advance, >>=20 >> - aurf >>=20 > [Devin Teske]=20 >=20 > Sorry for late reply. But here's what you want... >=20 > # In /etc/rc.conf > mdconfig_md0=3D"-t malloc -s 12G" >=20 > # In /etc/fstab > /dev/md0 /mymountpoint ufs rw,noatime 0 0 >=20 > You see... /etc/rc.d/mdconfig will perform "mount -d /dev/md0" to see > if there is a mountpoint configured for md0 in /etc/fstab. >=20 > If "mount -d /dev/md0" reports that there is no entry for md0, then = the > /etc/rc.d/mdconfig script will not mount your device. >=20 > Also, as others have mentioned, you can not (currently) arbitrarily = have > gaps in the numbering system. You have to start with md0 and then use > md1, md2, ad nauseum. The script /etc/rc.d/mdconfig currently stops at > the first undefined value. So in the case of not setting md0 but only = a > single md100, nothing will be done (0 being undefined terminates the > loop). > --=20 > Devin So if I do; mdconfig -a -t swap -s 12G I get /dev/md0 no issues. I chose swap rather then malloc due to RWs = suggestion previously. Keep in mind I don=92t wish to mount it just yet. However if I put the value in rc.conf; mdconfig_md0=3D=93-a -t swap -s 12G=94 I do not see an /dev/md device - aurf "Janitorial Services"