This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

trouble with Disklabels, parttime solutions

Compile and development by yourself!
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
jasch
experienced User
experienced User
Posts: 136
Joined: 25 Jun 2012 10:25
Location: Germany
Status: Offline

trouble with Disklabels, parttime solutions

Post by jasch »

Hi there at the moment i´am trying to label all my disks because of the "Problem" with Disks shifting on add Disks.
Just to say i had this problem not way back with freenas 7.2 and my old 1068 Sas controllers(but i cannot really say when it was starting), back then it was like this, the disk order in the controller(bay0-bayx) was the same in Freenas(bay0=da0.....), now the order in Nas4free is not the same then the controller has.
Its even stranger, for example bay3=da6,bay6=da3 but when i change the 2 disks the order in the controller is shifting but not in Nas4free, i mean the disk wich was in bay6 and was da3 is now in bay3 but is still da3.
But ok this was just a sidenote, to get arround any of this Problems, i decided to use Disklabels for all my Disks.
After some trying arround i get i working with some minnor bugs, maybe someone can give me a hand on this.
For my zfs Pools is was quite easy.(i removed all the Disks who where shifting, so i had proper sort for the pools)
Example:Pool Serien da2,da3,da4

Code: Select all

zpool export Serien
glabel label SerienDisk1 da2
glabel label SerienDisk2 da3
glabel label SerienDisk2 da4
editing config.xml
changing under Disk

Code: Select all

<name>da2</name>
<devicespecialfile>/dev/da2</devicespecialfile>
to
<name>SerienDisk1</name>
<devicespecialfile>/dev/label/SerienDisk1</devicespecialfile>
...
under zfs

Code: Select all

<device>/dev/label/da2</device>
<device>/dev/label/da3</device>
<device>/dev/label/da4</device>
to
<device>/dev/label/SerienDisk1</device>
<device>/dev/label/SerienDisk2</device>
<device>/dev/label/SerienDisk3</device>
save and reboot

now its working and ok

Code: Select all

NAME                       STATE     READ WRITE CKSUM
	Serien                     ONLINE       0     0     0
	  raidz1-0                 ONLINE       0     0     0
	    label/SerienDisk1.nop  ONLINE       0     0     0
	    label/SerienDisk2.nop  ONLINE       0     0     0
	    label/SerienDisk3.nop  ONLINE       0     0     0
Image

btw if you made such changes dont touch detect or sync on zfs tab, or import, clear config on Disk managment.
For all labeld Disks there is a cosmetic "Error" with not showing Device model and Serial number anymore(they are still in the config.xml).

For Ufs Disk i run into little Trouble.
For new Disk its easy.Add Disk (Example da0, label Download)
Disk needs to be unmounted

Code: Select all

glabel label Download da0
under Diskmanagment rescan, now the disk schould change from da0 to Download
editing config.xml
changing under Disk

Code: Select all

<name>da0</name>
<devicespecialfile>/dev/da0</devicespecialfile>
to
<name>Download</name>
<devicespecialfile>/dev/label/Download</devicespecialfile>
save
No goto Format tab , under dropdown disk should staying as Download, format Disk, mount Disk, done.

On adding existing Ufs drive without format i run into trouble, i made the same step, but on mount its was give me an error
/dev/Download/Downloadp1: Can't get the UFS ID
dumpfs: /dev/Download/Downloadp1: could not find special device

You need to also glabel the Parition.

Code: Select all

glabel label Download da0
glabel label Download da0p1
This is for Disk with complete Ufs format, Disk with slices it can be different.

This is working but after Restart iget another cosmetical Error.Disk is stated missing under Managment
Mountpoint is ok, can also access disk via Cifs.
Image

There is one more litte Bug then, under Mountpoints The labbels drive is then showing as 0MB (allrdy mounted).
Image

So to get it together its working with minor bugs.
-not showing Device model and Serial number for labbeld Disks
-showing labeld UFS Disks as Missing under Disk Management(but working)
-showing mounted Drives as 0MB under MoutDropdownmenu
-labeld Disks not showing tmep and iostat under Disk info

BTW maybe its also possible ta add some kind of Security switch witch when enabled it doesent overwrite custom labels on detect import ZFS and clear import Diskmanagment.
(if you only import labbeld Disk are still in but are double in under normal dax name.)

Sorry for the long text but maybe it helps someone, or give someone the informations to solve those little bugs.

MFG Alex
Last edited by jasch on 08 Nov 2012 15:38, edited 1 time in total.
XigmaNAS 12.0.0.4 (6625)@PROXMOX 5.V - Supermicro X8DTH-6F | 2x Xeon L5640 | 96GB ECC | LSI 9210-8i|LSI 9500-8e|LSI 9201-16i | 40GBe IB Mellanox |

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: trouble with Disklabels, parttime solutions

Post by daoyama »

jasch wrote: So to get it together its working with minor bugs.
-not showing Device model and Serial number for labbeld Disks
-showing labbeld UFS Disks as Missing under Disk Managemet(but working)
-showing mounted Drives as 0MB under MoutDropdownmenu
It may be a bug :(

Currently, I assume ufsid and gptid is permanent ID(never changed after creation).
But, using user label is useful I think too.
Full support label is hard, but showing S/N, device under mount point may be helpful.

Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

jasch
experienced User
experienced User
Posts: 136
Joined: 25 Jun 2012 10:25
Location: Germany
Status: Offline

Re: trouble with Disklabels, parttime solutions

Post by jasch »

First of all thanks for all the great work, you have put into Nas4free(and Freenas before).
I´am not a really skilled unix or linux guy,i´am just googleing und trying arround(having proper Backups makes this a nobrainer).
If you need more information or something to Test just let me now.(i could also provide direct accessb since my nas has RMM3 Module)

Ps found something more labbeld Disk not showing I/O statistics and Temperature under Disk info.
XigmaNAS 12.0.0.4 (6625)@PROXMOX 5.V - Supermicro X8DTH-6F | 2x Xeon L5640 | 96GB ECC | LSI 9210-8i|LSI 9500-8e|LSI 9201-16i | 40GBe IB Mellanox |

User avatar
daoyama
Developer
Developer
Posts: 394
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: trouble with Disklabels, parttime solutions

Post by daoyama »

While short investigation, it seems label can't be replaced with the special filename.
You can't use label with low level commands, such as smartctl, camcontrol.
At this time, I don't have a solution, but you should not replace the special filename directly.
Under NAS4Free, UFS mount points are never mixed/swapped because it only use UFSID(permanent unique ID).

Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

jasch
experienced User
experienced User
Posts: 136
Joined: 25 Jun 2012 10:25
Location: Germany
Status: Offline

Re: trouble with Disklabels, parttime solutions

Post by jasch »

Thy for the info i will try arround a little bit more, maybe i find something.
XigmaNAS 12.0.0.4 (6625)@PROXMOX 5.V - Supermicro X8DTH-6F | 2x Xeon L5640 | 96GB ECC | LSI 9210-8i|LSI 9500-8e|LSI 9201-16i | 40GBe IB Mellanox |

Post Reply

Return to “Development & Developers”