Hard drive will not format XFS


Go to solution Solved by JorgeB,

Recommended Posts

Hello, I am having some issues with formatting a drive to put in my array.

When I try to format it with unassigned devices it will error out and log to System Log.

Jan 27 10:17:06 UNRaidServer unassigned.devices: Format device '/dev/sdb'.
Jan 27 10:17:06 UNRaidServer unassigned.devices: Device '/dev/sdb' block size: 11721045168.
Jan 27 10:17:06 UNRaidServer unassigned.devices: Clearing partition table of disk '/dev/sdb'.
Jan 27 10:17:06 UNRaidServer unassigned.devices: Clear partition result: 1+0 records in 1+0 records out 2097152 bytes (2.1 MB, 2.0 MiB) copied, 0.0165884 s, 126 MB/s
Jan 27 10:17:08 UNRaidServer unassigned.devices: Reloading disk '/dev/sdb' partition table.
Jan 27 10:17:08 UNRaidServer unassigned.devices: Reload partition table result: /dev/sdb:  re-reading partition table
Jan 27 10:17:08 UNRaidServer unassigned.devices: Creating Unraid compatible gpt partition on disk '/dev/sdb'.
Jan 27 10:17:10 UNRaidServer unassigned.devices: Create gpt partition table result: Creating new GPT entries in memory. The operation has completed successfully. 
Jan 27 10:17:12 UNRaidServer unassigned.devices: Reloading disk '/dev/sdb' partition table.
Jan 27 10:17:12 UNRaidServer unassigned.devices: Reload partition table result: /dev/sdb:  re-reading partition table
Jan 27 10:17:12 UNRaidServer unassigned.devices: Formatting disk '/dev/sdb' with 'xfs' filesystem.
Jan 27 10:17:12 UNRaidServer unassigned.devices: Format drive command: /sbin/mkfs.xfs -f '/dev/sdb1' 2>&1

Jan 27 10:17:14 UNRaidServer unassigned.devices: Format disk '/dev/sdb' with 'xfs' filesystem failed: Error accessing specified device /dev/sdb1: No such file or directory Usage: mkfs.xfs /* blocksize */#011#011[-b size=num] /* config file */#011[-c options=xxx] /* metadata */#011#011[-m crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1, #011#011#011    inobtcount=0|1,bigtime=0|1] /* data subvol */#011[-d agcount=n,agsize=n,file,name=xxx,size=num, #011#011#011    (sunit=value,swidth=value|su=num,sw=num|noalign), #011#011#011    sectsize=num /* force overwrite */#011[-f] /* inode size */#011[-i perblock=n|size=num,maxpct=n,attr=0|1|2, #011#011#011    projid32bit=0|1,sparse=0|1] /* no discard */#011[-K] /* log subvol */#011[-l agnum=n,internal,size=num,logdev=xxx,version=n #011#011#011    sunit=value|su=num,sectsize=num,lazy-count=0|1] /* label */#011#011[-L label (maximum 12 characters)] /* naming */#011#011[-n size=num,version=2|ci,ftype=0|1] /* no-op info only */#011[-N] /* prototype file */#011[-p fname] /* quiet */#011#011[-q] /* realtime subvol */#011[-r extsize=num,size=num,rtdev=xxx] /* sectorsize */#011[-s size=num] /* version */#011#011[-V] #011#011#011devicename <d

 

I attached my diagnostics zip as well if that will be of any help. 

Thank you.

 

unraidserver-diagnostics-20230127-1020.zip

Link to comment
6 minutes ago, JorgeB said:

The output suggests the partition is not getting created, reboot and try again, if the same post the output of

fdisk -l /dev/sdb

 


Rebooted, same error. Ran fdisk -l /dev/sdb

 

Disk /dev/sdb: 5.46 TiB, 6001175126016 bytes, 11721045168 sectors
Disk model: HUS726060ALE610 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Link to comment
20 minutes ago, itimpi said:

It might be worth seeing if you can complete an extended SMART test on that drive.

 

BTW:  Your disk2 is not looking very healthy with lots of reallocated sectors and pending sectors so it probably should be replaced.

 

Okay I will run an extended SMART and I am aware of disk 2, that is what I am in the process of doing, been putting it off but I am attempting to work on that.

EDIT: Given its a 6TB drive, the ext. SMART is going to take a while.

Edited by HunterClipper
Link to comment
20 hours ago, HunterClipper said:

 

Okay I will run an extended SMART and I am aware of disk 2, that is what I am in the process of doing, been putting it off but I am attempting to work on that.

EDIT: Given its a 6TB drive, the ext. SMART is going to take a while.

Update: the Ext. SMART test came back with zero errors.

 

I haven't got a chance to get into the bios yet do to life being busy but I will update when I do that too.

 

Thanks again for the advice and know how.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.