-
blue-cat
If i want `zpool labelclear`, how do i define the device for this?
-
jclulow
blue-cat: You could start with "zpool import" (as root), which should find any ZFS pools that _could_ be imported and print them. You can also look at the output of "diskinfo", which should list disks that the system can see.
-
blue-cat
zpool import says rpool ONLINE c1d0 OLPINE
-
blue-cat
*in config:
-
blue-cat
but i still don't understand what im supposed to specify as a device.
-
blue-cat
`zpool labelclear -f c1d0` failed to clear label for /dev/dsk/c1d0s0
-
blue-cat
why doesn't it work
-
blue-cat
-
blue-cat
why is that?
-
blue-cat
Does someone know?
-
gitomat
[illumos-gate] 16663 pmap heap overflow if new LWP appears -- Andy Fiddaman <illumos⊙fn>
-
sommerfeld
blue-cat: try 'zpool labelclear /dev/rdsk/c1d0s0'.
-
sommerfeld
in addition to the "zpool import" thing mentioned above, you can check for the presence of a ZFS label in a partition with "zdb -l"
-
sommerfeld
try something like 'zdb -l /dev/rdsk/c1d0s0'
-
jclulow
The fact that it's listing as "rpool" suggests you're booted from that pool
-
jclulow
I think?
-
jclulow
Oh I suppose it would say ONLINE in the import output just because it's not DEGRADED/FAULTED
-
andyf
It might be that the device is not c1d0 in whatever is currently booted
-
andyf
or, more likely, it's not a whole disk pool, so the pool might be on s1
-
blue-cat
sommerfeld: # zpool labelclear -f /dev/rdsk/c1d0s0 returns: failed to clear label for /dev/rdsk/c1d0s0
-
blue-cat
`# zdb -l /dev/dsk/c1d0` returns failed to unpack label 0 failed to unpack label 1 failed to unpack label 2 failed to unpack label 3
-
blue-cat
same for `# zdb -l /dev/dsk/c1d0s0`
-
blue-cat
sad
-
tsoome
how many disks and pools you have? if you have just 2 disks and 2 pools (one rpool used for current OS instance), then check which disk is used for rpool and labelclear the other disk (get name from output of format or iostat -n or diskinfo)
-
gitomat
[illumos-gate] 16610 headers, symbol-tests should know about c17, POSIX 2024 -- Robert Mustacchi <rm⊙fo>
-
gitomat
[illumos-gate] 16624 Want support for FD_CLOFORK and friends -- Robert Mustacchi <rm⊙fo>
-
gitomat
[illumos-gate] 14237 Want support for pthread_cond_clockwait() and friends -- Robert Mustacchi <rm⊙fo>
-
gitomat
[illumos-gate] 16635 want SO_PROTOCOL socket option support -- Robert Mustacchi <rm⊙fo>
-
gitomat
[illumos-gate] 16636 want ptsname_r -- Robert Mustacchi <rm⊙fo>
-
richlowe
rmustacc: nice
-
rmustacc
It's a start at least. More to come when I get some more time.
-
blue-cat
tsoome: im from usb. and i cant labelclear
-
blue-cat
i sent a link with the output and few messages
-
blue-cat
it was about failed for some unknown reason
-
tsoome
yes, I understand that you do get errors from labelclear. btw, what do you get from zdb -l /dev/dsk/c1d0s1 (assuming there is c1d0)?
-
blue-cat
outputs some text, not failed
-
tsoome
there are your labels then.
-
tsoome
in short, labelclear has bug. it would be nice if you can report the problem
illumos.org/issues
-
blue-cat
tsoome supposedly it should work with the s1 omitted
-
tsoome
exactly.
-
blue-cat
I also don't understand why the import doesn't show s1
-
tsoome
because the pool is created on "whole" device, in which case the slice name is omitted.
-
blue-cat
im not sure about that honestly
-
tsoome
with zdb -l, you can see the whole disk flag is 1 and you can also see the full disk name with slice included
-
blue-cat
zdb -l failed labels for whole disk as i mentioned before
-
tsoome
yes, thats why I did ask output from zdb -l /dev/dsk/c1d0s1
-
blue-cat
-
tsoome
also, if you check the partition table on that disk, you would see ESP (EFI System Partition) on s0
-
blue-cat
yeah
-
blue-cat
they're talking about the lack of wipefs in link i shared
-
blue-cat
even though yesterday and the day before yesterday, people here told me otherwise.
-
tsoome
why call it wipefs, if it wont touch data in partition? and why you need wipefs, if you have dd:P (
man7.org/linux/man-pages/man8/wipefs.8.html)
-
blue-cat
wipefs is wipefs not dd
-
blue-cat
i dont mean lack
-
blue-cat
wrong word
-
blue-cat
i dont know english good