Invariant problem

All your general support questions for OpenZFS on OS X.

Invariant problem

Postby mortengh » Sat Aug 29, 2015 10:45 am

Hello!

I am running OpenZFS-1.3.1-r2 on MacOSX-10.10.5.

How do I refer the devices when using invariant disks? I wanted to offline one of the disks:

Code: Select all
# zpool status -v USBFlash
  pool: USBFlash
 state: ONLINE
  scan: none requested
config:

   NAME                                  STATE     READ WRITE CKSUM
   USBFlash                              ONLINE       0     0     0
     raidz1-0                            ONLINE       0     0     0
       Ultra_Fit-4C530001030723114380:1  ONLINE       0     0     0
       Ultra_Fit-4C531001450723114014:1  ONLINE       0     0     0
       Ultra_Fit-4C530001060723114024:1  ONLINE       0     0     0

errors: No known data errors
bash-3.2# zpool offline USBFlash Ultra_Fit-4C531001450723114014:1
cannot offline Ultra_Fit-4C531001450723114014:1: no such device in pool
bash-3.2# zpool offline USBFlash Ultra_Fit-4C531001450723114014\:1
cannot offline Ultra_Fit-4C531001450723114014:1: no such device in pool
bash-3.2# zpool offline USBFlash /var/run/disk/by-serial/Ultra_Fit-4C531001450723114014
Ultra_Fit-4C531001450723114014    Ultra_Fit-4C531001450723114014:1  Ultra_Fit-4C531001450723114014:9
bash-3.2# zpool offline USBFlash /var/run/disk/by-serial/Ultra_Fit-4C531001450723114014\:
Ultra_Fit-4C531001450723114014:1  Ultra_Fit-4C531001450723114014:9
bash-3.2# zpool offline USBFlash /var/run/disk/by-serial/Ultra_Fit-4C531001450723114014\:1
cannot offline /var/run/disk/by-serial/Ultra_Fit-4C531001450723114014:1: no such device in pool
bash-3.2# ls -al /var/run/disk/by-serial/Ultra_Fit-4C531001450723114014\:1
lrwxr-xr-x  1 root  daemon  12 Aug 29 20:30 /var/run/disk/by-serial/Ultra_Fit-4C531001450723114014:1 -> /dev/disk3s1
bash-3.2# zpool offline USBFlash disk3s1
cannot offline disk3s1: no such device in pool
bash-3.2# zpool offline USBFlash /dev/disk3s1
cannot offline /dev/disk3s1: no such device in pool


I tried just about any idea I could find. How to do this correctly?

Best regards,
- Morten Green Hermansen, Fanitas
mortengh
 
Posts: 4
Joined: Thu May 22, 2014 5:04 am

Re: Invariant problem

Postby haer22 » Sat Aug 29, 2015 2:57 pm

check out:
Code: Select all
ls -R /var/run/disk


You'll get a list of all the aliases of your disk. One of them will match whatever zpool status says.
haer22
 
Posts: 123
Joined: Sun Mar 23, 2014 2:13 am

Re: Invariant problem

Postby lundman » Sat Aug 29, 2015 3:41 pm

You can also use zpool status -g and -L for different outputs. The -g as in guid, will always work
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Invariant problem

Postby mortengh » Sat Aug 29, 2015 8:55 pm

Thanks lundman!

That fixed it for me!

- Morten
mortengh
 
Posts: 4
Joined: Thu May 22, 2014 5:04 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 19 guests