Opened 2 years ago
Closed 19 months ago
#432 closed defect (worksforme)
Proper drive size not recognized
| Reported by: | bechard | Owned by: | |
|---|---|---|---|
| Priority: | trivial | Milestone: | 8.0-RELEASE |
| Component: | GUI | Version: | 8.0-RELEASE |
| Keywords: | storage drive size | Cc: |
Description
I recently installed FreeNAS 8.0. I have a single 500 GB HD installed for storage and I'm booting up FreeNAS to a separate HD. When I add the volume it properly reads the drive size as about 460 GB. When I check the volume is starts by saying that it cannot read the size of the volume. Eventually it will report it as only 702.5 KB. I have rebooted multiple times, removed & re-added the volume multiple times, and also tried UFS and ZFS. Nothing is working. Someone in the IRC chat said they have seen this but cannot remember the solution.
Change History (5)
comment:1 Changed 2 years ago by bechard
- Component changed from Backend to GUI
- Keywords storage drive size added
- Milestone set to 8.0-RELEASE
- Priority changed from major to trivial
comment:2 Changed 2 years ago by william
comment:3 Changed 2 years ago by bechard
Here is the log just after re-creating the volume which I called TEST this time. I've also tried swapping the drive. Same error.
Jun 17 16:14:33 freenas freenas[1471]: Executing: geom disk list ada1 | grep 'Stripesize: 4096'
Jun 17 16:14:33 freenas freenas[1471]: Executing: geom disk list ada1 | grep 'Sectorsize: 512'
Jun 17 16:14:33 freenas freenas[1471]: Executing: dd if=/dev/zero of=/dev/ada1 bs=1m count=1
Jun 17 19:14:33 freenas freenas: 1+0 records in
Jun 17 19:14:33 freenas freenas: 1+0 records out
Jun 17 19:14:33 freenas freenas: 1048576 bytes transferred in 0.018284 secs (57349118 bytes/sec)
Jun 17 16:14:33 freenas freenas[1471]: Executing: dd if=/dev/zero of=/dev/ada1 bs=1m oseek=diskinfo ada1 | awk '{print int($3 / (1024*1024)) - 4;}'
Jun 17 19:14:33 freenas freenas: dd: /dev/ada1: short write on character device
Jun 17 19:14:33 freenas freenas: dd: /dev/ada1: end of device
Jun 17 19:14:33 freenas freenas: 5+0 records in
Jun 17 19:14:33 freenas freenas: 4+1 records out
Jun 17 19:14:33 freenas freenas: 4218880 bytes transferred in 0.089546 secs (47114127 bytes/sec)
Jun 17 16:14:33 freenas freenas[1471]: Executing: gpart create -s gpt /dev/ada1 && gpart add -t freebsd-swap -l swap-ada1 -s 4194304 ada1 && gpart add -t freebsd-ufs ada1
Jun 17 19:14:33 freenas freenas: ada1 created
Jun 17 19:14:33 freenas freenas: gpart: Input/output error
Jun 17 16:14:33 freenas freenas[1471]: Executing: newfs -U -L TEST /dev/ada1p2
Jun 17 19:14:33 freenas freenas: newfs: /dev/ada1p2: could not find special device
Jun 17 16:14:33 freenas freenas[1471]: Executing: /usr/sbin/service ix-fstab quietstart
Jun 17 16:14:34 freenas freenas[1471]: Executing: /usr/sbin/service swap1 quietstart
Jun 17 16:14:34 freenas freenas[1471]: Executing: /usr/sbin/service mountlate quietstart
comment:4 Changed 21 months ago by delphij
Please try a newer snapshot, I think this have been fixed already.
(gpart: Input/output error looks suspicious, though., it might indicate some other problem)
comment:5 Changed 19 months ago by william
- Resolution set to worksforme
- Status changed from new to closed
Several changes have been made to the middleware, please try 8.0.2-RELEASE, if the problem persists reopen this ticket.
Thank you.

The volume creation is probably failing on backend, the reason might be because the disk is already part of a geom or something...
In BETA3 this should be fixed by avoiding the volume being created...
To confirm, please attach your /var/log/messages right after creating the volume.