0

Simple question, today making iostat on netbsd machine I see..

    iostat 2 3
          tty              ld0               ld1               dk0               dk1               dk2               dk3               dk4               cd0             CPU
     tin  tout  KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s  us ni sy in id

---explanation---

ld0 is the first virtio hd
ld1 is the second virtio hd
cd0 is the first SATA cdrom

what is dk1-4?

eyoung100
  • 6,252
  • 23
  • 53
elbarna
  • 12,695

1 Answers1

0

Solution found..gpt. I usually use "disklabel" to create bsd slice, but this create MBR partition. To create gpt partition on disk (really simple..1G on virtio disk)

gpt destroy ld1||echo "Not gpt!"
gpt create ld1
gpt add -a 2m -l TRY -t ffs -s 1G ld1

Iostat confirm operation ok (a new dk appear, dk5)

      tty              ld0               ld1               dk0               dk1               dk2               dk3               dk4               cd0               dk5             CPU
 tin  tout  KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s  us ni sy in id
   1    42 15.59    2 0.036  44.95    0 0.018  2.000    1 0.000  13.82    1 0.010  1.571    0 0.000  13.99    1 0.012  19.90    1 0.015  4.000    0 0.000  0.000    0 0.000   0  0  0  0 100
elbarna
  • 12,695