Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gparted abnormal with zfs partition
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Thu Aug 16, 2018 11:11 am    Post subject: gparted abnormal with zfs partition Reply with quote

Hello,

I installed a zfs stripe on one of the partitions of my disk, just because I need to access that partition r/w when I boot OSX.

Now, gparted shows the whole disk occupied by that zfs partition.

However, parted correctly shows:

Code:
# parted -l /dev/sda
Model: ATA Crucial_CT2050MX (scsi)
Disk /dev/sda: 2050GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                  Flags
 1      20.5kB  210MB   210MB   fat32           EFI System Partition  boot, esp
 2      210MB   175GB   174GB                   MACOSX
 3      175GB   238GB   62.9GB  ext4
 8      667GB   685GB   17.2GB  linux-swap(v1)
 6      685GB   792GB   107GB   ext4
 7      792GB   834GB   41.9GB  ext4
 4      834GB   2050GB  1217GB


and fdisk:
Code:
# fdisk -l
Disk /dev/sda: 1.9 TiB, 2050408636416 bytes, 4004704368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: ....... (obfuscated)

Device          Start        End    Sectors   Size Type
/dev/sda1          40     409639     409600   200M EFI System
/dev/sda2      409640  341006335  340596696 162.4G unknown
/dev/sda3   341006336  463886335  122880000  58.6G Linux filesystem
/dev/sda4  1628020736 4004704255 2376683520   1.1T Linux filesystem
/dev/sda6  1337206784 1546100735  208893952  99.6G Linux filesystem
/dev/sda7  1546100736 1628020735   81920000  39.1G Linux filesystem
/dev/sda8  1303652352 1337206783   33554432    16G Linux swap

Partition table entries are not in disk order.


Gparted is very convenient for confortably manipulating partitions and I would like to have it back. Can anybody help, please?

TIA
jss
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Thu Aug 23, 2018 6:10 am    Post subject: Reply with quote

Can you explain it further?

Which version of parted?

Maybe test the Live CD of Gparted. Here: https://gparted.sourceforge.io/
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Thu Aug 23, 2018 11:41 am    Post subject: Reply with quote

I'm not seeing any zfs partitions here, they should be of type BF01.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Thu Aug 23, 2018 11:55 am    Post subject: Reply with quote

Just a wild guess: check if gparted reads GPT partition table too... or MBR.

++
Gi)
Back to top
View user's profile Send private message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Thu Aug 23, 2018 12:03 pm    Post subject: Reply with quote

Hello,

Thank you both for replying.

I've downloaded gparted-live-0.31.0-1-amd64.iso, dd to a usb stick but it hangs on boot, probably because my mac has dual gpu's, which creates a mess on linux boot. For booting gentoo, I have to switch-off the radeon gpu and boot with the integrated intel, tweaking a few kernel parameters that I had a lot of trouble to discover.

Anyway:
Code:
[I] sys-block/gparted
     Available versions:  0.27.0 ~0.28.1 0.29.0 {btrfs cryptsetup dmraid f2fs fat hfs jfs kde mdadm ntfs policykit reiser4 reiserfs udf xfs}
     Installed versions:  0.29.0(18:20:13 01/05/18)(policykit -btrfs -cryptsetup -dmraid -f2fs -fat -hfs -jfs -kde -mdadm -ntfs -reiser4 -reiserfs -udf -xfs)
     Homepage:            http://gparted.sourceforge.net/
     Description:         Gnome Partition Editor

[I] sys-block/parted
     Available versions:  3.2-r1^t ~3.2-r2^t ~3.2_p19-r1^t (~)3.2_p20-r1^t {+debug device-mapper nls readline selinux static-libs}
     Installed versions:  3.2_p20-r1^t(13:54:05 01/05/18)(debug nls readline -device-mapper -selinux -static-libs)
     Homepage:            https://www.gnu.org/software/parted
     Description:         Create, destroy, resize, check, copy partitions and file systems


And:
Code:
# zpool status
  pool: zmac
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
   still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
   the pool may no longer be accessible by software that does not support
   the features. See zpool-features(5) for details.
  scan: none requested
config:

   NAME        STATE     READ WRITE CKSUM
   zmac        ONLINE       0     0     0
     sda4      ONLINE       0     0     0

errors: No known data errors

So, no doubt the zfs partition exists. I don't know why the type does not show.

I could upload a picture of gparted somewhere, please just give me a link.

Rgds,
jss
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Thu Aug 23, 2018 12:19 pm    Post subject: Reply with quote

So it's sda4... okay. That said, I would agree that it looks fine in parted and fdisk aside from the wrong type being used. Not sure why gparted would see this wrong, although I did see that fdisk says your partition table isn't ordered correctly. If that's the cause I'd say that's a bug in gparted. :?

Do you have another gui program installed like gnome-disks? I'd be interested to see if they see it wrong too.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Thu Aug 23, 2018 3:43 pm    Post subject: Reply with quote

The actual version of Gparted is 0.32.0.

Maybe this version works.

And your partition table is jumbled.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
Location: Dallas area

PostPosted: Thu Aug 23, 2018 3:48 pm    Post subject: Reply with quote

gparted probably is behaving the way it is because of the use flags that were enabled when it was compiled.

parted is a different critter entirely

Edit to add: and I'm not even sure if gparted would ever show zfs properly as there isn't a use flag for it.
Code:
 + + btrfs     : <unknown>
 - - dmraid    : <unknown>
 - - f2fs      : <unknown>
 - - fat       : <unknown>
 - - hfs       : <unknown>
 - - jfs       : <unknown>
 - - kde       : Add support for KDE (K Desktop Environment)
 - - mdadm     : <unknown>
 + + ntfs      : <unknown>
 - - policykit : Enable PolicyKit authentication support
 - - reiser4   : <unknown>
 + + reiserfs  : <unknown>
 - - xfs       : <unknown>

_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Thu Aug 23, 2018 8:31 pm    Post subject: Reply with quote

Quote:
Just a wild guess: check if gparted reads GPT partition table too... or MBR.

@guitou: sorry, I didn't see your post timely. And how do I do that?

Quote:
The actual version of Gparted is 0.32.0

@Keruskerfuerst: As far as I read here: https://gparted.sourceforge.io/download.php the latest stable version is 0.31.0-1
And yes, the partition tabled is not ordered but that was never a problem before I made a zfs partition. I have a hunch that the problem remains after I put it in order.

Quote:
Do you have another gui program installed like gnome-disks? I'd be interested to see if they see it wrong too.

@bunder: Right, just installed gnome-disk-utility and it can see all the partitions, although it says sda4 (zfs pool) is not mounted which is probably correct because it's mounted differently, as far as my knowledge goes. It also says that sda2, my AFPS MacOS partition, is a "zfs_member" which is also probably right because my MacOS also imports this zfs pool.

@site administrators: I never missed so much the possibility of uploading an image; it would save the day.

Quote:
gparted probably is behaving the way it is because of the use flags that were enabled when it was compiled.

@Anon-E-moose: I could adjust the flags the way you want but first, please explain:
1. Why do I have to turn on btrfs, ntfs and reiserfs considering they are not present on the disk
2. Similarly, why do I have to turn-off a lot of other fs that are not in use?
3. I need policykit to be able to launch gparted without using a sudo terminal. Why do I have to turn it off?
4. I never touched the flags, these are the Gentoo defaults. Are they wrong?

Thank you all for your help and support. Looking forward to your continued interest.

Best rgds,
jss
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
Location: Dallas area

PostPosted: Thu Aug 23, 2018 8:36 pm    Post subject: Reply with quote

jssilva wrote:

Quote:
gparted probably is behaving the way it is because of the use flags that were enabled when it was compiled.

@Anon-E-moose: I could adjust the flags the way you want but first, please explain:
1. Why do I have to turn on btrfs, ntfs and reiserfs considering they are not present on the disk
2. Similarly, why do I have to turn-off a lot of other fs that are not in use?
3. I need policykit to be able to launch gparted without using a sudo terminal. Why do I have to turn it off?
4. I never touched the flags, these are the Gentoo defaults. Are they wrong?


Those are just flags from my system.

I was just showing the different flags that affect what partitions gparted can handle, fat, xfs, ntfs, etc.
Notice there isn't one for zfs which means it's not likely to work for zfs partitioning.

Edit to add: with a little googling http://www.andybotting.com/zfs-on-linux

Edit to add2: According to gparted website, the most gparted can do is detect the filesystem, it can't read, write, shrink, etc.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Thu Aug 23, 2018 8:53 pm    Post subject: Reply with quote

Anon-E-moose wrote:
According to gparted website, the most gparted can do is detect the filesystem, it can't read, write, shrink, etc.

I was aware of that when I opted for zfs. But it was the only way I had to dual-boot MacOS and Linux on this machine. Either that or I wouldn't be able to use Gentoo at all; not with my data at least.

But I thought, although I couldn't touch the zfs partition, I would be able to manipulate the other partitions with gparted, as I did before (excluding APFS of course). This is necessary for trying other OS's, so on...

Leaving gparted apart, I'm constrained to console only partition editing which is not very confortable and is sometimes dangerous because errors are not so obvious as with a gui.

Edit: concerning the link you posted, forgive the off-topic, I also have an HP Proliant home server but mine is a N54L (a bit more powerful, also a bit more power waster) but it's running FreeBSD (FreeNAS) 24/7 very peacefully, zfs mirror, no problems whatsoever, running automatic backups for all the machines in-house, tvheadend recording server, multimedia server, and above all I usually can forget it exists; it's my concept of wonderful.

Best regards,
jss


Last edited by jssilva on Thu Aug 23, 2018 9:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
Location: Dallas area

PostPosted: Thu Aug 23, 2018 8:58 pm    Post subject: Reply with quote

You can use gparted on other filesystems, just not on zfs partitions.

It sounds like you might have used the whole disk for your stripe. Is that possible?
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Thu Aug 23, 2018 9:07 pm    Post subject: Reply with quote

Anon-E-moose wrote:
It sounds like you might have used the whole disk for your stripe. Is that possible?

No, look at the parted and fdisk outputs on my first post.

Otherwise, how could I be writing this off my Gentoo system residing on another ext4 partition of the same disk?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
Location: Dallas area

PostPosted: Thu Aug 23, 2018 9:49 pm    Post subject: Reply with quote

jssilva wrote:
Anon-E-moose wrote:
It sounds like you might have used the whole disk for your stripe. Is that possible?

No, look at the parted and fdisk outputs on my first post.

Otherwise, how could I be writing this off my Gentoo system residing on another ext4 partition of the same disk?


Just a thought off the top of my head.

gparted should recognize the other partitions even if it can't work with the zfs one,
but I'm not sure how the version you were trying was compiled and with what flags.
If it didn't understand fat, the 1st partition, it might not understand the rest.
But this is all a wild assed guess. :)
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
jssilva
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2017
Posts: 106

PostPosted: Fri Aug 24, 2018 12:18 am    Post subject: Reply with quote

Anon-E-moose wrote:
I'm not sure how the version you were trying was compiled and with what flags.
If it didn't understand fat, the 1st partition, it might not understand the rest.
But this is all a wild assed guess. :)


Thank you for keep trying.

Unfortunately I guess that's not it because this started right after I made the zfs partition and gparted worked perfectly until then and was definitely not rebuilt or upgraded in the meanwhile. I used it extensively to move and resize partitions just before making the zfs one; it started right after, as I said.

I guess I'll have to get deeply acquainted with parted for the future.

Best regards,
jss
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum