Where’s my drives?

This is just rough notes for myself.

List the gpart output for each drive in my system.

for drive in $(sysctl -n kern.disks)
do
  gpart show $drive
done
gpart: No such geom: da11.
=>        40  9767541088  da10  GPT  (4.5T)
          40     8392664        - free -  (4.0G)
     8392704  9758048256     3  freebsd-zfs  (4.5T)
  9766440960     1100168        - free -  (537M)

=>       40  976773088  da9  GPT  (466G)
         40       2008       - free -  (1.0M)
       2048  838860800    1  freebsd-zfs  (400G)
  838862848  137910280       - free -  (66G)

gpart: No such geom: da8.
=>        40  9767541088  da7  GPT  (4.5T)
          40     8392664       - free -  (4.0G)
     8392704  9758048256    3  freebsd-zfs  (4.5T)
  9766440960     1100168       - free -  (537M)

=>        40  9767541088  da6  GPT  (4.5T)
          40     8392664       - free -  (4.0G)
     8392704  9758048256    3  freebsd-zfs  (4.5T)
  9766440960     1100168       - free -  (537M)

=>        34  9767541101  da5  GPT  (4.5T)
          34     8390622       - free -  (4.0G)
     8390656  9758048256    3  freebsd-zfs  (4.5T)
  9766438912     1102223       - free -  (538M)

gpart: No such geom: da4.
=>        40  9767541088  da3  GPT  (4.5T)
          40     8392664       - free -  (4.0G)
     8392704  9758048256    3  freebsd-zfs  (4.5T)
  9766440960     1100168       - free -  (537M)

=>        40  9767541088  da2  GPT  (4.5T)
          40     8392664       - free -  (4.0G)
     8392704  9758048256    3  freebsd-zfs  (4.5T)
  9766440960     1100168       - free -  (537M)

=>        40  9767541088  da1  GPT  (4.5T)
          40     8392664       - free -  (4.0G)
     8392704  9758048256    3  freebsd-zfs  (4.5T)
  9766440960     1100168       - free -  (537M)

=>       40  976773088  da0  GPT  (466G)
         40       2008       - free -  (1.0M)
       2048  838860800    1  freebsd-zfs  (400G)
  838862848  137910280       - free -  (66G)

=>       40  488397088  ada1  GPT  (233G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048   41943040     2  freebsd-swap  (20G)
   41945088  446451712     3  freebsd-zfs  (213G)
  488396800        328        - free -  (164K)

=>       40  488397088  ada0  GPT  (233G)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048   41943040     2  freebsd-swap  (20G)
   41945088  446451712     3  freebsd-zfs  (213G)
  488396800        328        - free -  (164K)

gpart: No such geom: nvd1.
=>       40  488397088  nvd0  GPT  (233G)
         40  488397088     1  freebsd-zfs  (233G)

Or better still:

for drive in $(sysctl -n kern.disks)
do
  gpart show $drive
done | grep 'No such'
gpart: No such geom: da11.
gpart: No such geom: da8.
gpart: No such geom: da4.
gpart: No such geom: nvd1.

So what about those four drives:

[slocum dan ~] % sudo diskinfo da11 da8 da4 nvd1
da11	512	5000981078016	9767541168	4096	0	608001	255	63
da8	512	5000981078016	9767541168	4096	0	608001	255	63
da4	512	5000981078016	9767541168	4096	0	608001	255	63
nvd1	512	240057409536	468862128	0	0

Let’s look in /var/run/dmesg.boot:

da11 at mpr0 bus 0 scbus7 target 31 lun 0
da11:  Fixed Direct Access SPC-4 SCSI device
da11: Serial Number 989UK04ZFB9G
da11: 600.000MB/s transfers
da11: Command Queueing enabled
da11: 4769307MB (9767541168 512 byte sectors)

da8 at mpr0 bus 0 scbus7 target 27 lun 0
da8:  Fixed Direct Access SPC-4 SCSI device
da8: Serial Number 653DK7WAFS9A
da8: 600.000MB/s transfers
da8: Command Queueing enabled
da8: 4769307MB (9767541168 512 byte sectors)

da4 at mpr0 bus 0 scbus7 target 19 lun 0
da4:  Fixed Direct Access SPC-4 SCSI device
da4: Serial Number 988DK097FB9G
da4: 600.000MB/s transfers
da4: Command Queueing enabled
da4: 4769307MB (9767541168 512 byte sectors)

nvd1:  NVMe namespace
nvd1: 228936MB (468862128 512 byte sectors)

nvd1 is definitely part of a zpool:

[slocum dan ~] % zpool status nvd
  pool: nvd
 state: ONLINE
  scan: scrub repaired 0B in 00:03:50 with 0 errors on Mon Sep 12 04:24:49 2022
config:

	NAME                                    STATE     READ WRITE CKSUM
	nvd                                     ONLINE       0     0     0
	  mirror-0                              ONLINE       0     0     0
	    nvd0p1                              ONLINE       0     0     0
	    diskid/DISK-C26D07890DC400015192p1  ONLINE       0     0     0

errors: No known data errors

Let’s look at some GEOM labels:

[slocum dan ~] % glabel list | less
Geom name: nvd1
Providers:
Geom name: nvd1
Providers:
1. Name: diskid/DISK-C26D07890DC400015192
   Mediasize: 240057409536 (224G)
   Sectorsize: 512
   Mode: r1w1e2
   secoffset: 0
   offset: 0
   seclength: 468862128
   length: 240057409536
   index: 0
Consumers:
1. Name: nvd1
   Mediasize: 240057409536 (224G)
   Sectorsize: 512
   Mode: r1w1e3

So why no partitions on nvd1.

I guess I gave all of the drive to ZFS. I don’t usually do that.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment