8.0.1 beta1 Swap size dropped

Status
Not open for further replies.

marcusmarcus

Explorer
Joined
May 27, 2011
Messages
89
Code:
FreeNAS# gpart list
Geom name: ada0
state: OK
fwheads: 16
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Mode: r1w1e0
   rawuuid: e9871a1d-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-ada1
   length: 1073741824
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 2097279
   start: 128
2. Name: ada0p2
   Mediasize: 1999325109760 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: e9a4dde8-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: ada1
   length: 1999325109760
   offset: 1073807360
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 2097280
Consumers:
1. Name: ada0
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r2w2e4

Geom name: ada1
state: OK
fwheads: 16
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada1p1
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Mode: r1w1e0
   rawuuid: ea251bd4-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-ada3
   length: 1073741824
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 2097279
   start: 128
2. Name: ada1p2
   Mediasize: 1999325109760 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: ea316550-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: ada3
   length: 1999325109760
   offset: 1073807360
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 2097280
Consumers:
1. Name: ada1
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r2w2e4

Geom name: ada2
state: OK
fwheads: 16
fwsectors: 63
last: 3915071
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada2s1
   Mediasize: 488194560 (466M)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 165
   length: 488194560
   offset: 32256
   type: freebsd
   index: 1
   end: 953567
   start: 63
2. Name: ada2s2
   Mediasize: 488194560 (466M)
   Sectorsize: 512
   Mode: r1w0e2
   attrib: active
   rawtype: 165
   length: 488194560
   offset: 488259072
   type: freebsd
   index: 2
   end: 1907135
   start: 953631
3. Name: ada2s3
   Mediasize: 1548288 (1.5M)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 165
   length: 1548288
   offset: 976453632
   type: freebsd
   index: 3
   end: 1910159
   start: 1907136
4. Name: ada2s4
   Mediasize: 21159936 (20M)
   Sectorsize: 512
   Mode: r1w1e2
   rawtype: 165
   length: 21159936
   offset: 978001920
   type: freebsd
   index: 4
   end: 1951487
   start: 1910160
Consumers:
1. Name: ada2
   Mediasize: 2004516864 (1.9G)
   Sectorsize: 512
   Mode: r2w1e5

Geom name: ada3
state: OK
fwheads: 16
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada3p1
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Mode: r1w1e0
   rawuuid: e9dffb7d-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-ada2
   length: 1073741824
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 2097279
   start: 128
2. Name: ada3p2
   Mediasize: 1999325109760 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: e9ec0733-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: ada2
   length: 1999325109760
   offset: 1073807360
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 2097280
Consumers:
1. Name: ada3
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r2w2e4

Geom name: ada4
state: OK
fwheads: 16
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada4p1
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Mode: r0w0e0
   rawuuid: e93f0234-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-ada0
   length: 1073741824
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 2097279
   start: 128
2. Name: ada4p2
   Mediasize: 1999325109760 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: e949bbdf-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: ada0
   length: 1999325109760
   offset: 1073807360
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 2097280
Consumers:
1. Name: ada4
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r1w1e3

Geom name: ada2s1
state: OK
fwheads: 16
fwsectors: 63
last: 953504
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada2s1a
   Mediasize: 488186368 (466M)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 0
   length: 488186368
   offset: 8192
   type: !0
   index: 1
   end: 953504
   start: 16
Consumers:
1. Name: ada2s1
   Mediasize: 488194560 (466M)
   Sectorsize: 512
   Mode: r0w0e0

Geom name: ada2s2
state: OK
fwheads: 16
fwsectors: 63
last: 953504
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada2s2a
   Mediasize: 488186368 (466M)
   Sectorsize: 512
   Mode: r1w0e2
   rawtype: 0
   length: 488186368
   offset: 8192
   type: !0
   index: 1
   end: 953504
   start: 16
Consumers:
1. Name: ada2s2
   Mediasize: 488194560 (466M)
   Sectorsize: 512
   Mode: r1w0e2
 

Milhouse

Guru
Joined
Jun 1, 2011
Messages
564
I also have missing swap - in my case all 8 disks, not just one disk.

I tried to update to 8.0.1-BETA via the GUI from 8.0-RELEASE and the update hosed the system (wouldn't even complete the boot properly - see 8.0.1-BETA announce thread for info). I then installed 8.0.1-BETA on to a fresh USB key, applied my latest 8.0-RELEASE config and it's apparent that 8.0.1-BETA is not setup to import 8.0-RELEASE config databases - missing tables, plus an unhandled exception when accessing the GUI via a browser so completely useless.

Reverting back to 8.0-RELEASE and re-applying the 8.0-RELEASE config was also a miserable failure - config restoration really needs a lot more testing and made more robust if this software is to be trusted, the configs we backup are not worth snot when restoring them results in an unusable system.

Finally I had no other choice but to install 8.0.1-BETA on to a fresh USB again, and "automatically import" the 8.0-RELEASE ZFS volumes (and manually reconfigure everything else). All now seems OK, but there is no swap at all - not that I care about the swap, but the importer is clearly not doing it's job as it's not imported any of the 2GB swap from any of the 8 disks (16GB swap in total). Which kind of makes a mockery of why we have to suffer this swap partition in the first place. :)

If you want any info to help resolve the issue for future builds let me know, though I'm not that bothered about restoring the swap to be honest. For reference I have a single pool with two vdevs, the first vdev consists of 4x2TB Samsung HD204UI F4 disks with RAIDZ1 (da0-da3), the second vdev consists of 4x500GB Samsung HM500JI disks with RAIDZ1 (da4-da7).

Output from the database...
Code:
freenas# sqlite3 /data/freenas-v1.db "select * from storage_disk;"
Disabled|30|{devicename}gpt/da0|1|Disabled|Auto|Member of share raidz1|1||1|gpt/da0
Disabled|30|{devicename}gpt/da1|1|Disabled|Auto|Member of share raidz1|1||2|gpt/da1
Disabled|30|{devicename}gpt/da2|1|Disabled|Auto|Member of share raidz1|1||3|gpt/da2
Disabled|30|{devicename}gpt/da3|1|Disabled|Auto|Member of share raidz1|1||4|gpt/da3
Disabled|30|{devicename}gpt/da4|1|Disabled|Auto|Member of share raidz1|1||5|gpt/da4
Disabled|30|{devicename}gpt/da5|1|Disabled|Auto|Member of share raidz1|1||6|gpt/da5
Disabled|30|{devicename}gpt/da6|1|Disabled|Auto|Member of share raidz1|1||7|gpt/da6
Disabled|30|{devicename}gpt/da7|1|Disabled|Auto|Member of share raidz1|1||8|gpt/da7


and gpart list for the first disk:
Code:
freenas# gpart list da0
Geom name: da0
state: OK
fwheads: 255
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Mode: r0w0e0
   rawuuid: de25b2a5-691a-11e0-95fe-001b2188359c
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-da0
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: da0p2
   Mediasize: 1998251367936 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: de2b79e7-691a-11e0-95fe-001b2188359c
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: da0
   length: 1998251367936
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 4194432
Consumers:
1. Name: da0
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r1w1e3
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Code:
FreeNAS# gpart list
Geom name: ada0
state: OK
fwheads: 16
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Mode: r1w1e0
   rawuuid: e9871a1d-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-ada1
   length: 1073741824
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 2097279
   start: 128
2. Name: ada0p2
   Mediasize: 1999325109760 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: e9a4dde8-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: ada1
   length: 1999325109760
   offset: 1073807360
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 2097280
Consumers:
1. Name: ada0
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r2w2e4

Geom name: ada1
state: OK
fwheads: 16
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada1p1
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Mode: r1w1e0
   rawuuid: ea251bd4-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-ada3
   length: 1073741824
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 2097279
   start: 128
2. Name: ada1p2
   Mediasize: 1999325109760 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: ea316550-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: ada3
   length: 1999325109760
   offset: 1073807360
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 2097280
Consumers:
1. Name: ada1
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r2w2e4

Geom name: ada2
state: OK
fwheads: 16
fwsectors: 63
last: 3915071
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada2s1
   Mediasize: 488194560 (466M)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 165
   length: 488194560
   offset: 32256
   type: freebsd
   index: 1
   end: 953567
   start: 63
2. Name: ada2s2
   Mediasize: 488194560 (466M)
   Sectorsize: 512
   Mode: r1w0e2
   attrib: active
   rawtype: 165
   length: 488194560
   offset: 488259072
   type: freebsd
   index: 2
   end: 1907135
   start: 953631
3. Name: ada2s3
   Mediasize: 1548288 (1.5M)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 165
   length: 1548288
   offset: 976453632
   type: freebsd
   index: 3
   end: 1910159
   start: 1907136
4. Name: ada2s4
   Mediasize: 21159936 (20M)
   Sectorsize: 512
   Mode: r1w1e2
   rawtype: 165
   length: 21159936
   offset: 978001920
   type: freebsd
   index: 4
   end: 1951487
   start: 1910160
Consumers:
1. Name: ada2
   Mediasize: 2004516864 (1.9G)
   Sectorsize: 512
   Mode: r2w1e5

Geom name: ada3
state: OK
fwheads: 16
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada3p1
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Mode: r1w1e0
   rawuuid: e9dffb7d-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-ada2
   length: 1073741824
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 2097279
   start: 128
2. Name: ada3p2
   Mediasize: 1999325109760 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: e9ec0733-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: ada2
   length: 1999325109760
   offset: 1073807360
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 2097280
Consumers:
1. Name: ada3
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r2w2e4

Geom name: ada4
state: OK
fwheads: 16
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada4p1
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Mode: r0w0e0
   rawuuid: e93f0234-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-ada0
   length: 1073741824
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 2097279
   start: 128
2. Name: ada4p2
   Mediasize: 1999325109760 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: e949bbdf-6784-11e0-916c-6cf049df499f
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: ada0
   length: 1999325109760
   offset: 1073807360
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 2097280
Consumers:
1. Name: ada4
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r1w1e3

Geom name: ada2s1
state: OK
fwheads: 16
fwsectors: 63
last: 953504
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada2s1a
   Mediasize: 488186368 (466M)
   Sectorsize: 512
   Mode: r0w0e0
   rawtype: 0
   length: 488186368
   offset: 8192
   type: !0
   index: 1
   end: 953504
   start: 16
Consumers:
1. Name: ada2s1
   Mediasize: 488194560 (466M)
   Sectorsize: 512
   Mode: r0w0e0

Geom name: ada2s2
state: OK
fwheads: 16
fwsectors: 63
last: 953504
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada2s2a
   Mediasize: 488186368 (466M)
   Sectorsize: 512
   Mode: r1w0e2
   rawtype: 0
   length: 488186368
   offset: 8192
   type: !0
   index: 1
   end: 953504
   start: 16
Consumers:
1. Name: ada2s2
   Mediasize: 488194560 (466M)
   Sectorsize: 512
   Mode: r1w0e2

sqlite3 /data/freenas-v1.db "update storage_disk set disk_identifier='{uuid}e949bbdf-6784-11e0-916c-6cf049df499f' where id=4;"

Then finally you should be ready to go...
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
I also have missing swap - in my case all 8 disks, not just one disk.

I tried to update to 8.0.1-BETA via the GUI from 8.0-RELEASE and the update hosed the system (wouldn't even complete the boot properly - see 8.0.1-BETA announce thread for info). I then installed 8.0.1-BETA on to a fresh USB key, applied my latest 8.0-RELEASE config and it's apparent that 8.0.1-BETA is not setup to import 8.0-RELEASE config databases - missing tables, plus an unhandled exception when accessing the GUI via a browser so completely useless.

Reverting back to 8.0-RELEASE and re-applying the 8.0-RELEASE config was also a miserable failure - config restoration really needs a lot more testing and made more robust if this software is to be trusted, the configs we backup are not worth snot when restoring them results in an unusable system.

Finally I had no other choice but to install 8.0.1-BETA on to a fresh USB again, and "automatically import" the 8.0-RELEASE ZFS volumes (and manually reconfigure everything else). All now seems OK, but there is no swap at all - not that I care about the swap, but the importer is clearly not doing it's job as it's not imported any of the 2GB swap from any of the 8 disks (16GB swap in total). Which kind of makes a mockery of why we have to suffer this swap partition in the first place. :)

If you want any info to help resolve the issue for future builds let me know, though I'm not that bothered about restoring the swap to be honest. For reference I have a single pool with two vdevs, the first vdev consists of 4x2TB Samsung HD204UI F4 disks with RAIDZ1 (da0-da3), the second vdev consists of 4x500GB Samsung HM500JI disks with RAIDZ1 (da4-da7).

Output from the database...
Code:
freenas# sqlite3 /data/freenas-v1.db "select * from storage_disk;"
Disabled|30|{devicename}gpt/da0|1|Disabled|Auto|Member of share raidz1|1||1|gpt/da0
Disabled|30|{devicename}gpt/da1|1|Disabled|Auto|Member of share raidz1|1||2|gpt/da1
Disabled|30|{devicename}gpt/da2|1|Disabled|Auto|Member of share raidz1|1||3|gpt/da2
Disabled|30|{devicename}gpt/da3|1|Disabled|Auto|Member of share raidz1|1||4|gpt/da3
Disabled|30|{devicename}gpt/da4|1|Disabled|Auto|Member of share raidz1|1||5|gpt/da4
Disabled|30|{devicename}gpt/da5|1|Disabled|Auto|Member of share raidz1|1||6|gpt/da5
Disabled|30|{devicename}gpt/da6|1|Disabled|Auto|Member of share raidz1|1||7|gpt/da6
Disabled|30|{devicename}gpt/da7|1|Disabled|Auto|Member of share raidz1|1||8|gpt/da7


and gpart list for the first disk:
Code:
freenas# gpart list da0
Geom name: da0
state: OK
fwheads: 255
fwsectors: 63
last: 3907029134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Mode: r0w0e0
   rawuuid: de25b2a5-691a-11e0-95fe-001b2188359c
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-da0
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: da0p2
   Mediasize: 1998251367936 (1.8T)
   Sectorsize: 512
   Mode: r1w1e2
   rawuuid: de2b79e7-691a-11e0-95fe-001b2188359c
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: da0
   length: 1998251367936
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 3907029134
   start: 4194432
Consumers:
1. Name: da0
   Mediasize: 2000398934016 (1.8T)
   Sectorsize: 512
   Mode: r1w1e3

In case you didn't know, its a beta test version, not even a RC (release candidate), and it is not supposed to be installed in production systems, there is a reason, and a good one for that, as you saw by yourself...

I can help you restore the swap partitions if you like but my advise is to wait a BETA2... There will be a tool to export a ZFS and import it back...
 

Milhouse

Guru
Joined
Jun 1, 2011
Messages
564
In case you didn't know, its a beta test version, not even a RC (release candidate), and it is not supposed to be installed in production systems, there is a reason, and a good one for that, as you saw by yourself...

I can help you restore the swap partitions if you like but my advise is to wait a BETA2... There will be a tool to export a ZFS and import it back...

Rest assured it wasn't a production system as I am only playing with 8.0-RELEASE since FN8 still doesn't provide what I consider the minimum for a "Production" system (SMART alerts, local and network UPS support etc.).

I was however a little distressed (embarrassed?) to discover that applying a valid 8.0-RELEASE config to a fresh 8.0-RELEASE install results in an unusable system - this is a basic failure in a released build, and something I might tolerate in a Beta but probably not an RC and certainly not RELEASE.

By all means please suggest how to recover the swap partitions by posting the details and I'll give it a go, but as I said previously I don't much care for the swap partitions in the first place and perhaps BETA2 will import the swap partitions correctly.
 

marcusmarcus

Explorer
Joined
May 27, 2011
Messages
89
sqlite3 /data/freenas-v1.db "update storage_disk set disk_identifier='{uuid}e949bbdf-6784-11e0-916c-6cf049df499f' where id=4;"

Then finally you should be ready to go...
Thanks, That resolved it. Backup to the full swap space. Greatly appreciate your help! Keep up the good work.
 
Status
Not open for further replies.
Top