gpart

From: Matthias Fechner <idefix(at)fechner.net>
Date: Sun, 07 Oct 2012 23:31:58 +0200

Hi,

ich habe ein kleines Problem und bin mir nicht sicher woran es liegt.
Ich habe hier ein FreeBSD 9.1-PRERELEASE.

Alles ist auf einem zfs-root installiert und die Partitionen sind mit
gpart angelegt.

Folgende Partitionen habe ich auf der ersten Festplatte:
gpart list ada0
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 976773134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
   Mediasize: 65536 (64k)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 17408
   Mode: r0w0e0
   rawuuid: f0dfa3e6-d71b-11e1-837e-080027b7ec7b
   rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
   label: boot0
   length: 65536
   offset: 17408
   type: freebsd-boot
   index: 1
   end: 161
   start: 34
2. Name: ada0p2
   Mediasize: 8589934592 (8.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 82944
   Mode: r0w0e0
   rawuuid: 074477a7-d71c-11e1-837e-080027b7ec7b
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap0
   length: 8589934592
   offset: 82944
   type: freebsd-swap
   index: 2
   end: 16777377
   start: 162
3. Name: ada0p3
   Mediasize: 491517827584 (457G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 82944
   Mode: r1w1e1
   rawuuid: 0f7c9416-d71c-11e1-837e-080027b7ec7b
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: disk0
   length: 491517827584
   offset: 8590017536
   type: freebsd-zfs
   index: 3
   end: 976773134
   start: 16777378
Consumers:
1. Name: ada0
   Mediasize: 500107862016 (465G)
   Sectorsize: 512
   Mode: r1w1e2

Ich habe extra Label verwendet, damit ich nicht mit den Devices arbeiten
muss.
Allerdings erscheint das Label disc0 nicht in /dev/gpt.

Andere Labels werden angezeigt, aber disc0 einfach nicht:
1 dr-xr-xr-x 2 root wheel 512 Oct 6 11:07 .
1 dr-xr-xr-x 13 root wheel 512 Oct 6 11:07 ..
0 crw-r----- 1 root operator 0, 131 Oct 6 11:07 boot0
0 crw-r----- 1 root operator 0, 148 Oct 6 11:07 disk1
0 crw-r----- 1 root operator 0, 133 Oct 6 11:07 swap0
0 crw-r----- 1 root operator 0, 146 Oct 6 11:07 swap1

Bei zpool, scheint er auch das Device genommen zu haben und nicht das Label:
[idefix(at)anny ~]$ zpool status -v
  pool: zroot
 state: ONLINE
  scan: none requested
config:

        NAME STATE READ WRITE CKSUM
        zroot ONLINE 0 0 0
          ada0p3 ONLINE 0 0 0

Das zpool hatte ich damals mit den folgenden Befehlen angelegt:
zpool create zroot /dev/gpt/disk0
zpool set bootfs=zroot zroot

Hat jemand eine Idee woran das liegen kann?
(einen Reboot habe ich schon probiert, um sicher zu stellen, das sich
die aktuelle Partitionstabelle im Kernel befindet)

Kann es es nachträglich ändern, das er das Label benutzt und nicht das
Device?

Gruß,
Matthias

-- 
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 07 Oct 2012 - 23:32:16 CEST

search this site