*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Can't mount UFS disk

Hard disks, HDD, RAID Hardware, disk controllers, SATA, PATA, SCSI, IDE, On Board, USB, Firewire, CF (Compact Flash)
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
waynea
NewUser
NewUser
Posts: 8
Joined: 12 Jul 2015 06:06
Status: Offline

Can't mount UFS disk

#1

Post by waynea »

I have a 2TB drive that was previously part of mirrored pair that I am now trying to turn into a UFS formatted drive that I can copy some files to and then remove and take offsite for backup purposes. Here are the steps I followed.

1) unmount mirror drive.
2) Delete SoftwareRaid volume
3) Format the drive using UFS
4) Mount the drive as UFS.

When it tries to mount, it is returning the following error:

Aug 21 23:42:03 nas4free root: Error: Failed to mount /dev/ufsid/57ba9ce0c9af7b97 using UFS
Aug 21 23:42:03 nas4free root: mount: /dev/ufsid/57ba9ce0c9af7b97: Operation not permitted

I get the same error if I try to manually mount the drive using either it's /dev/da device id or it's /dev/ufsid

Code: Select all

nas4free: /mnt# mount -t ufs /dev/da6p1 /mnt/backup2tb
mount: /dev/da6p1: Operation not permitted
nas4free: /mnt# mount -t ufs /dev/ufsid/57ba9ce0c9af7b97  /mnt/backup2tb
mount: /dev/ufsid/57ba9ce0c9af7b97: Operation not permitted
gpart shows the following for the drive:

Code: Select all

nas4free: /mnt#  gpart show /dev/da6
=>        34  3907029101  da6  GPT  (1.8T)
          34          30       - free -  (15K)
          64  3907029056    1  freebsd-ufs  (1.8T)
  3907029120          15       - free -  (7.5K)

I tried fsck, but it doesn't seem to help:

Code: Select all

nas4free: /mnt# fsck -y /dev/da6p1
** /dev/da6p1 (NO WRITE)

USE JOURNAL? no

** Skipping journal, falling through to full fsck

SETTING DIRTY FLAG IN READ_ONLY MODE

UNEXPECTED SOFT UPDATE INCONSISTENCY
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
3 files, 8209 used, 473032851 free (11 frags, 59129105 blocks, 0.0% fragmentation)
nas4free: /mnt# mount -t ufs /dev/da6p1 /mnt/backup2tb
mount: /dev/da6p1: Operation not permitted
Running Nas4Free 10.3.0.3 - Pilingitam (revision 2870)

Any help would be appreciated!

thanks

Wayne

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5116
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Can't mount UFS disk

#2

Post by raulfg3 »

Read FAQ how to properly wipe a disk prior to reuse it.

FAQ 001 or 129 i do not remember
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

waynea
NewUser
NewUser
Posts: 8
Joined: 12 Jul 2015 06:06
Status: Offline

Re: Can't mount UFS disk

#3

Post by waynea »

I figured the format that I did would take care of that, but anyway. I looked at FAQ 129 and tried to do the dd comands listed.

Code: Select all

nas4free: ~# id
uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)
nas4free: ~#  /bin/dd if=/dev/zero of=/dev/da6 bs=512 count=8192
dd: /dev/da6: Operation not permitted
nas4free: ~#

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5116
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Can't mount UFS disk

#4

Post by raulfg3 »

Try to unmount da6 first.

In your case n4f think that da6 Is mounted an in use so dd do not work.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

waynea
NewUser
NewUser
Posts: 8
Joined: 12 Jul 2015 06:06
Status: Offline

Re: Can't mount UFS disk

#5

Post by waynea »

Ok, I figured it out. I grepped for the disk in dmesg and saw references to the mirror that it had been part of. For some reason GEOM still had it listed as an active DEGRADED mirror. Even though I had already deleted the mirror through the N4F interface.

Code: Select all

nas4free: ~# gmirror status
             Name    Status  Components
mirror/Mirror3TBa  COMPLETE  diskid/DISK-%20%20%20%20%20%20%20%20%20%20%20%20Z1F0CTRY (ACTIVE)
                             diskid/DISK-%20%20%20%20%20%20%20%20%20%20%20%20Z5013B00 (ACTIVE)
mirror/Mirror2TBa  DEGRADED  diskid/DISK-%20%20%20%20%20WD-WMC300365921 (ACTIVE)
mirror/Mirror4TBa  COMPLETE  diskid/DISK-%20%20%20%20%20%20PK1334PEJJMWSS (ACTIVE)
                             diskid/DISK-%20%20%20%20%20%20PK1334PEJH7XUS (ACTIVE)
Mirror2TBa was the previous mirror that I deleted through the N4F interface. I had to stop and destroy the mirror through the gmirror command and then I could wipe and reformat/mount the disk.

Don't know why doing the same functionality through the N4F interface didn't remove it.

Thanks for your help!

Post Reply

Return to “Hard disk & controller”