Re: [gentoo-user] Persistence of ZFS /dev/zvol/rpool/swap
On December 14, 2018 3:19:33 AM UTC, Pariksheet Nanda wrote: >Thanks, Roger and Joost! > >The problem was my failed attempt at hibernation. I'm using >cryptsetup for full disk encryption and there's a limitation of not >being able to hibernate without creating a separate partition - which >I don't intend to do. >I see /dev/zvol/rpool/swap is available now after commenting out >SLEEP_MODULE="kernel" in /etc/pm/config.d/gentoo and removing >resume=/dev/zvol/rpool/swap from GRUB_CMDLINE_LINUX in >/etc/default/grub and updating grub.cfg > > >On Mon, Nov 26, 2018 at 1:04 AM Roger J. H. Welsh >wrote: >> >> If it exists on `zfs list`, your swap partition is in there >somewhere. >> >> Roger Welsh > >Yes, it would always show as existing with `zfs list` even when it did >not appear in /dev > > >On Sun, Nov 25, 2018 at 11:00 PM J. Roeleveld >wrote: >> >> Did you enable all ZFS services into the correct runlevels? >> >> Joost > >Yes: > >$ rc-status -a | grep -e zfs -e '^[^ ]' >Runlevel: sysinit >Runlevel: boot >zfs-import[ >started ] >zfs-mount [ >started ] >Runlevel: default >zfs-zed [ >started ] >zfs-share [ >started ] >--snip-- > > >Thanks again! <3 >Pariksheet Hibernation may work when building your own initramfs. Not sure if dracut and the likes have support for it themselves. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Persistence of ZFS /dev/zvol/rpool/swap
Thanks, Roger and Joost! The problem was my failed attempt at hibernation. I'm using cryptsetup for full disk encryption and there's a limitation of not being able to hibernate without creating a separate partition - which I don't intend to do. I see /dev/zvol/rpool/swap is available now after commenting out SLEEP_MODULE="kernel" in /etc/pm/config.d/gentoo and removing resume=/dev/zvol/rpool/swap from GRUB_CMDLINE_LINUX in /etc/default/grub and updating grub.cfg On Mon, Nov 26, 2018 at 1:04 AM Roger J. H. Welsh wrote: > > If it exists on `zfs list`, your swap partition is in there somewhere. > > Roger Welsh Yes, it would always show as existing with `zfs list` even when it did not appear in /dev On Sun, Nov 25, 2018 at 11:00 PM J. Roeleveld wrote: > > Did you enable all ZFS services into the correct runlevels? > > Joost Yes: $ rc-status -a | grep -e zfs -e '^[^ ]' Runlevel: sysinit Runlevel: boot zfs-import[ started ] zfs-mount [ started ] Runlevel: default zfs-zed [ started ] zfs-share [ started ] --snip-- Thanks again! <3 Pariksheet
Re: [gentoo-user] Software for checking CDs and DVDs for errors?
On 12/3/18 9:27 AM, Pouru Lasse wrote: I've got a bunch of scratched disc-based games (PS2, Xbox 360) that I'd like to check for errors. Is there any program for Linux that does this? I found and tried dvdisaster, but it only works for CDs, not DVDs. Everything else seems to be Windows-only. - Lasse For DVDs, I use ddrescue. Keep a log of it as well in case you want to do a second pass or just see where it's puking. Use its blocksize of 2048: ddrescue -b 2048 /dev/sr0 dvd.iso ddrescue.log dvdbackup comes with some error handling on reads as well where it can skip blocks, see its help output. For blurays I'd try ddrescue as well. Blocksize for those is 65536. I think. Based on your physical drive / the disc, it might whine or break because of DRM, or you can get weird read errors as well. That's why dvdbackup is best imo since it will auth the drive as well. MakeMKV can do its best to backup a disc, but I don't know how well it does at error handling: makemkvcon --minlength=0 -r backup --decrypt disc:0 . I've got plenty of broken DVDs so I've managed to rescue those okay. If you're trying to encode stuff off of them, there are cases where the encoder can handle it best and read from the disc directly and skip over bad blocks as well. Good luck.
Re: [gentoo-user] Root on NFS Suspend/Resume support
From: J. Roeleveld Sent: Thursday, December 13, 2018 4:03 PM To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Root on NFS Suspend/Resume support On December 11, 2018 10:59:47 PM UTC, Tsukasa Mcp_Reznor wrote: _ If you want to resume from NFS, you will need an initramfs that correctly passes the swap device for resuming. I would try the same method as resuming from encrypted swap. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. I appreciate the response, I'm not trying to use hibernate but rather suspend to ram. I don't use swap over NFS, the machines that do have hard drives installed use them for local swap and cachefilesd (which is amazingly performant) In the past when I've tried to use an initramfs, it's lead to boot hangs that I haven't quite figured out the root cause for, I was trying to use genkernel to build them, maybe I'll give dracut a shot and see if that fixes the problem, you could very well be on to something. I believe "suspend to ram" might switch off the network (and kill a NFS connection in the process). This might be the cause of the issue. Do the nodes have enough memory to load the filesystem into RAM and run from there? (Like sysresccd can do) If yes, that might allow this to work. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity. Probably not enough ram, the lowest machine has 4 gigs, as an update I installed and tried out dracut, that didn't make any difference but each system booted fine an initrd which is a change for sure. If I manually suspend for up to say 10 seconds, they resume just fine. I like the idea S2ram killing the network as the cause, I thought enabling wake on lan would keep it from being switched off, I'll see if I can research the suspending/resuming routines and blacklist or whatever to keep it running, thanks for the tip :)
Re: [gentoo-user] Root on NFS Suspend/Resume support
On December 11, 2018 10:59:47 PM UTC, Tsukasa Mcp_Reznor wrote: >_ >If you want to resume from NFS, you will need an initramfs that >correctly passes the swap device for resuming. >I would try the same method as resuming from encrypted swap. >-- >Sent from my Android device with K-9 Mail. Please excuse my brevity. > > > >I appreciate the response, I'm not trying to use hibernate but rather >suspend to ram. I don't use swap over NFS, the machines that do have >hard drives installed use them for local swap and cachefilesd (which is >amazingly performant) > >In the past when I've tried to use an initramfs, it's lead to boot >hangs that I haven't quite figured out the root cause for, I was >trying to use genkernel to build them, maybe I'll give dracut a shot >and see if that fixes the problem, you could very well be on to >something. I believe "suspend to ram" might switch off the network (and kill a NFS connection in the process). This might be the cause of the issue. Do the nodes have enough memory to load the filesystem into RAM and run from there? (Like sysresccd can do) If yes, that might allow this to work. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] Re: Sata hard drive speed question
Nikos Chantziaras wrote: > On 13/12/2018 11:18, Dale wrote: >> Nikos Chantziaras wrote: >>> >>> I'd recommend just using mkfs instead of using your own parameters: >>> >>> mkfs -t ext4 /dev/sdb1 >>> >>> It will use the parameters from /etc/mke2fs.conf. This is the safest >>> way to format a partition. >>> >>> >>> >> >> May try that next, if it ever finishes this current attempt. It's been >> a hour for the current format attempt. I won't be surprised if it gives >> up too. > > Did you check for any errors in dmesg? > > > OK. This is what I did this time. First, I dd'd the drive, the first several gigs worth to be sure the partition table etc is gone. Second, I ran portprobe for it to see the partition was gone. It would still show up in /proc/partitions. I then used gdisk to create the partition. I might add, cgdisk would not run. It spit out a error and quit. Then I ran partprobe again. May have ran it twice. Then it showed up in /proc/partitons as it should. Then I used your advice and used mkfs -t ext4 and other options for label etc to format the partition. That gave me this: root@fireball / # time mkfs -v -t ext4 -m 0 -L 8tb-backup /dev/sde1 mke2fs 1.43.9 (8-Feb-2018) fs_types for mke2fs.conf resolution: 'ext4', 'big' Filesystem label=8tb-backup OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 244191232 inodes, 1953506385 blocks 0 blocks (0.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4102029312 59617 block groups 32768 blocks per group, 32768 fragments per group 4096 inodes per group Filesystem UUID: ebcd0ad4-f25f-466e-9b5c-acac33886df0 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 2048, 23887872, 71663616, 78675968, 10240, 214990848, 51200, 550731776, 644972544, 1934917632 Allocating group tables: done Writing inode tables: done Creating journal (262144 blocks): done Writing superblocks and filesystem accounting information: done real 37m50.570s user 0m0.121s sys 0m1.639s root@fireball / # Before you freak out, I did move the drive to another port when I changed the cable. It moved from sdb to sde. I always confirm using smartctrl -i until I find the right device. After all that, I get this: 204,807,599 100% 120.79MB/s 0:00:01 (xfr#7946, ir-chk=3715/13065) 120,136,339 100% 77.20MB/s 0:00:01 (xfr#7947, ir-chk=3714/13065) 119,445,345 100% 94.38MB/s 0:00:01 (xfr#7948, ir-chk=3713/13065) 109,298,753 100% 100.81MB/s 0:00:01 (xfr#7949, ir-chk=3712/13065) 116,704,897 100% 82.38MB/s 0:00:01 (xfr#7950, ir-chk=3711/13065) 110,075,610 100% 92.49MB/s 0:00:01 (xfr#7951, ir-chk=3710/13065) 115,757,218 100% 106.46MB/s 0:00:01 (xfr#7952, ir-chk=3709/13065) 111,693,138 100% 128.49MB/s 0:00:00 (xfr#7953, ir-chk=3708/13065) 208,458,508 100% 56.93MB/s 0:00:03 (xfr#7954, ir-chk=3707/13065) 113,847,275 100% 88.92MB/s 0:00:01 (xfr#7955, ir-chk=3706/13065) 181,249,801 100% 79.22MB/s 0:00:02 (xfr#7956, ir-chk=3705/13065) 215,941,705 100% 146.99MB/s 0:00:01 (xfr#7957, ir-chk=3704/13065) Now I knew this wasn't the fastest drive out there. It puts a little more on living a long life at the expense of a little speed. However, this is MUCH MUCH better than I was getting. Since I have a good size drive now, I'm backing up /home and excluding things I don't care about like cache and files in the trash etc. It's a progressive thing. At this point, I don't know if it was the cable, me running partprobe or both that did this. It could also be running mkfs instead of mkfs.ext4 as well. Who knows. I'm just glad to have some SPEED. O_O Thanks much to all. Dale :-) :-)
[gentoo-user] Failed to get D-Bus interface of mailfilteragent.
Kmail just sprung this error message - any idea how I can fix it? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] eselect python...
On Thu, 13 Dec 2018 08:54:42 +0100 wrote > Hi, > > I did an > > eselect python list > > and got > > [1] python3.6 > [2] python2.7 (fallback) > > . Then I did an > > > eselect python set 2 > > to examine some error while trying to install a local > package. And then I switched back wth > > > eselect python set 2 > > again since python3.6 was set at [2] now. > > Now > > eselect python list > > shows me > > [1] python3.6 > [2] python2.7 > > > . The "(fallback)" was missing now. > > > > How do I need to use eselect to set python2.7 as fallback" > > > > Cheers! > Meino > > > > PS: > This > https://wiki.gentoo.org/wiki/Python > and > https://wiki.gentoo.org/wiki/Project:Eselect/User_guide > gave me no answer... > > > Hello, This is probably because you now have Python2.7 as active. You can change it back to have the fallback label doing the following: # eselect python edit < Then remove the python2.7 entry from the file and save > Calling again eselect python list should report python2.7 as fallback. Cheers
[gentoo-user] Re: Sata hard drive speed question
On 13/12/2018 11:18, Dale wrote: Nikos Chantziaras wrote: On 13/12/2018 09:49, Dale wrote: This is what it says right now. /dev/sdb1 2048 15628052479 15628050432 7.3T Linux filesystem Just wanted to make sure it's not a 4K alignment issue. It starts at 2048 so it's fine. It is still trying to put a ext4 file system on it and it has been about a hour. I'd recommend just using mkfs instead of using your own parameters: mkfs -t ext4 /dev/sdb1 It will use the parameters from /etc/mke2fs.conf. This is the safest way to format a partition. May try that next, if it ever finishes this current attempt. It's been a hour for the current format attempt. I won't be surprised if it gives up too. Did you check for any errors in dmesg?
Re: [gentoo-user] Re: Sata hard drive speed question
Nikos Chantziaras wrote: > On 13/12/2018 09:49, Dale wrote: >> This is what it says right now. >> >> /dev/sdb1 2048 15628052479 15628050432 7.3T Linux filesystem > > Just wanted to make sure it's not a 4K alignment issue. It starts at > 2048 so it's fine. > > >> It is still trying to put a ext4 file system on it and it >> has been about a hour. > > I'd recommend just using mkfs instead of using your own parameters: > > mkfs -t ext4 /dev/sdb1 > > It will use the parameters from /etc/mke2fs.conf. This is the safest > way to format a partition. > > > May try that next, if it ever finishes this current attempt. It's been a hour for the current format attempt. I won't be surprised if it gives up too. Dale :-) :-) P. S. Where's my sledge hammer at??
Re: [gentoo-user] Sata hard drive speed question
Neil Bothwick wrote: > On Thu, 13 Dec 2018 02:54:07 -0600, Dale wrote: > >> I reseated the cables but it's still taking a long time to do anything. >> Given my drive led is on, it's doing something. I'm just not sure how >> fast it is doing it. o_O > Have you tried running the smartctl selftests? > > I ran a short one and it said it was all good. When I try to run the long one, it keeps aborting. I'm not sure why it is doing that tho. I may just change the sata cable completely. Bad thing is, it is right next to the drive my OS is on so I want to shutdown to do that. Just in case the wrong one comes unplugged. SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Interrupted (host reset) 00% 559 - # 2 Extended offline Interrupted (host reset) 00% 556 - # 3 Short offline Completed without error 00% 543 - # 4 Short offline Completed without error 00% 528 - # 5 Extended offline Aborted by host 90% 527 - I think #4 and 5 were done before I got it. Dale :-) :-)
[gentoo-user] Re: eselect python...
On 13/12/2018 09:56, tu...@posteo.de wrote: eselect python list [1] python3.6 [2] python2.7 (fallback) [...] How do I need to use eselect to set python2.7 as fallback" I don't see a "(fallback)" label here, and everything is working fine. I don't think it's important.
[gentoo-user] Re: Sata hard drive speed question
On 13/12/2018 09:49, Dale wrote: This is what it says right now. /dev/sdb1 2048 15628052479 15628050432 7.3T Linux filesystem Just wanted to make sure it's not a 4K alignment issue. It starts at 2048 so it's fine. It is still trying to put a ext4 file system on it and it has been about a hour. I'd recommend just using mkfs instead of using your own parameters: mkfs -t ext4 /dev/sdb1 It will use the parameters from /etc/mke2fs.conf. This is the safest way to format a partition.
Re: [gentoo-user] Sata hard drive speed question
On Thu, 13 Dec 2018 02:54:07 -0600, Dale wrote: > I reseated the cables but it's still taking a long time to do anything. > Given my drive led is on, it's doing something. I'm just not sure how > fast it is doing it. o_O Have you tried running the smartctl selftests? -- Neil Bothwick WinErr 079: Mouse not found - A mouse driver has not been installed. Please click the left mouse button to continue. pgplUf2StWevh.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Sata hard drive speed question
Neil Bothwick wrote: > On Wed, 12 Dec 2018 21:36:20 -0600, Dale wrote: > >> Googled to see how to find out if it is aligned correctly and found >> this. >> >> root@fireball / # cat /sys/block/sdb/queue/physical_block_size >> 4096 >> root@fireball / # >> >> I thought cgdisk did that automatically so I guess it did. > gdisk -l will tell you if it is. If the first partition starts at sector > 2048 you re OK on that. > > I remember seeing that so it did. I generally notice when it does that but I don't give it much thought. I think it is one of those things that if I didn't see it there, I'd know something wasn't right and I'd notice it and check into it. I reseated the cables but it's still taking a long time to do anything. Given my drive led is on, it's doing something. I'm just not sure how fast it is doing it. o_O Dale :-) :-)
Re: [gentoo-user] Sata hard drive speed question
On Wed, 12 Dec 2018 21:36:20 -0600, Dale wrote: > Googled to see how to find out if it is aligned correctly and found > this. > > root@fireball / # cat /sys/block/sdb/queue/physical_block_size > 4096 > root@fireball / # > > I thought cgdisk did that automatically so I guess it did. gdisk -l will tell you if it is. If the first partition starts at sector 2048 you re OK on that. -- Neil Bothwick Growing old is mandatory; growing up is optional!! pgpb8WLkOommf.pgp Description: OpenPGP digital signature