From owner-freebsd-geom@FreeBSD.ORG Mon Dec 27 10:34:30 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3106C16A4CF for ; Mon, 27 Dec 2004 10:34:30 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id B796543D5A for ; Mon, 27 Dec 2004 10:34:29 +0000 (GMT) (envelope-from abelousov@gmail.com) Received: by rproxy.gmail.com with SMTP id c16so202324rne for ; Mon, 27 Dec 2004 02:34:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=UmW2m7FawS0oxkkCgd/LhTL3Y4knExfbd/20/oAj6naRwf5Q105eG0VkskjeJo3ZVCLP9hXgIu2xILQmXfRfdp7is2CGYdGNRTVEgX0/WhwdjQ98IboU993rvK5gKQD/JhhXu9u/NMjuP69TdZYX+6LKt4lWNH19VSGCSzfnkk4= Received: by 10.38.151.48 with SMTP id y48mr466222rnd; Mon, 27 Dec 2004 02:34:29 -0800 (PST) Received: by 10.38.151.70 with HTTP; Mon, 27 Dec 2004 02:34:29 -0800 (PST) Message-ID: <2ff9b55d0412270234634d2e96@mail.gmail.com> Date: Mon, 27 Dec 2004 15:34:29 +0500 From: Alexey Belousov To: freebsd-qa@freebsd.org, freebsd-geom@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: 5.3 LiveCD fixit shell geom(8) environment broken? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: c0x@daemon.pp.ru List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2004 10:34:30 -0000 hi All, recently, I played with geom in fixit shell and found some oddity: Fixit# geom mirror load Command 'load' not available. Fixit# sysctl kern.module_path kern.module_path: /boot/kernel;/boot/modules Fixit# ls -la /boot/kernel/ ls: /boot/kernel/: No such file or directory Fixit# ln -s /mnt2/boot/kernel /boot/ Fixit# geom mirror load -v Module available. Done. Fixit# geom mirror dump da0 Unknown command: dump usage: geom mirror help geom mirror list geom mirror load [-v] geom mirror unload [-v] Fixit# ldd `which geom` /mnt2/sbin/geom: libgeom.so.2 => /mnt2/lib/libgeom.so.2 (0x28078000) libsbuf.so.2 => /mnt2/lib/libsbuf.so.2 (0x2807c000) libbsdxml.so.1 => /mnt2/lib/libbsdxml.so.1 (0x2807e000) libutil.so.4 => /mnt2/lib/libutil.so.4 (0x2809d000) libc.so.5 => /mnt2/lib/libc.so.5 (0x280a9000) Fixit# ln -s /mnt2/lib / Fixit# geom mirror dump da0 Metadata on da0: magic: GEOM::MIRROR version: 1 <---snip---> Fixit# Summary: 1. missing geom_*.ko / invalid kern.module_path fix: sysctl kern.module_path=`sysctl -n kern.module_path`\;/mnt2/boot/kernel or simply ln -s /mnt2/boot/kernel /boot/ 2. missing necessary libs in /lib (hardcoded path?) fix: ln -s /mnt2/lib / ----------- cheers,