What does "scrub" and "export" mean?

Status
Not open for further replies.

strawdog74

Dabbler
Joined
May 23, 2012
Messages
42
Sorry for the ridiculously N00b questions, but I have searched and cannot seem to find a consistent answer :-

1. What does scrubbing a volume on FreeNAS actually do? (answers vary from cleansing to formatting)
2. What does exporting a volume on FreeNAS actually do? (answers vary from dismounting to erasing)

If I "export" my HDD1 drive WITHOUT checking "MARK THE DISK AS NEW" box, will I be able to re-import the drive along with my data at a later date? I am terrified of inadvertently deleting/formatting/erasing data on my hard disk...
 

strawdog74

Dabbler
Joined
May 23, 2012
Messages
42
After some experimentation, I think I have determined the following :-

SCRUB = Clean volume
EXPORT = Unmount volume, with option of formatting/erasing

The only problem I found was that re-importing the ZFS volume after export was not possible, as ZFS was not an option in FreeNAS-8.0.4-RELEASE-p2-x86 (11367). It gave "The selected disks were not verified for this import rules." error. Also, creating a new volume also resulted in the dreaded "Middleware Error" as it seems the GPT is corrupt.

Not sure what to do now...as the import facility just doesn't seem to work on ZFS (or NTFS) volumes.
 

strawdog74

Dabbler
Joined
May 23, 2012
Messages
42
Thankyou William. I did try that but it is not listing any volumes, possibly due to active zpool or gpart for hdd0:-


[root@freenas] /dev# gmirror status
[root@freenas] /dev# gpart show
=> 63 8375094 da0 MBR (4.0G)
63 1930257 1 freebsd [active] (943M)
1930320 63 - free - (32K)
1930383 1930257 2 freebsd (943M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 4470165 - free - (2.1G)

=> 0 1930257 da0s1 BSD (943M)
0 16 - free - (8.0K)
16 1930241 1 !0 (943M)

=> 34 488397101 ada0 GPT (233G)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 484202703 2 freebsd-zfs (231G)

=> 34 3907029101 ada1 GPT (1.8T)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834703 2 freebsd-zfs (1.8T)

=> 34 1953458109 da1 GPT (931G)
34 94 - free - (47K)
128 4194304 1 freebsd-swap (2.0G)
4194432 1949263711 2 freebsd-zfs (929G)

[root@freenas] /dev# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
hdd0 230G 420K 230G 0% ONLINE /mnt
hdd1 1.82T 666G 1.17T 35% ONLINE /mnt
usb 929G 666G 263G 71% ONLINE /mnt
[root@freenas] /dev# camcontrol devlist
<VB0250EAVER HPG0> at scbus0 target 0 lun 0 (ada0,pass0)
<WDC WD20EARX-00PASB0 51.0AB51> at scbus1 target 0 lun 0 (ada1,pass1)
<Imation Flash Drive 1.00> at scbus6 target 0 lun 0 (da0,pass2)
<WD My Passport 0730 1012> at scbus7 target 0 lun 0 (pass3,da1)
<WD SES Device 1012> at scbus7 target 0 lun 1 (pass4,ses0)

According to GUI, I only have "hdd1" and "usb" listed.

Any idea how to completely remove hdd0 from the system so that I can auto-import it?
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Yeah, GUI cannot import already imported zpools...

from cli:

# zpool export hdd0

Then it should appear in Auto Import list.
 
Status
Not open for further replies.
Top