Re: [gentoo-user] RAID: new drive on aac raid

2020-10-07 Thread Stefan G. Weichinger
Am 07.10.20 um 10:40 schrieb Stefan G. Weichinger:
> Am 06.10.20 um 15:08 schrieb k...@aspodata.se:
>> Stefan G. Weichinger:
>>> I know the model: ICP5165BR
>>
>> https://ask.adaptec.com/app/answers/detail/a_id/17414/~/support-for-sata-and-sas-disk-drives-with-a-size-of-2tb-or-greater
>>
>> says it is supported up to 8TB drives using firmware v5.2.0 Build 17343 **
>>
>> ** Firmware v5.2.0 Build 17343 for the ICP5045BL, ICP5085BL, ICP5805BL,
>>ICP5125BR, and ICP5165BR: Adaptec is providing minimally tested
>>firmware packages. Please contact Adaptec by PMC Technical Support
>>to obtain these firmware files. Have the TSID or serial number of
>>the product at hand when contacting support.
> 
> Yes, I saw that as well.
> 
> I managed to flash the "stable" firmware via arcconf, so I now have
> 15753 ...
> 
> I submitted a ticket there.

They only offer support for money.

I think I tried enough. Waiting for the smaller drive now.

Thanks for your help, all.




Re: [gentoo-user] RAID: new drive on aac raid

2020-10-07 Thread Stefan G. Weichinger
Am 06.10.20 um 15:08 schrieb k...@aspodata.se:
> Stefan G. Weichinger:
>> I know the model: ICP5165BR
> 
> https://ask.adaptec.com/app/answers/detail/a_id/17414/~/support-for-sata-and-sas-disk-drives-with-a-size-of-2tb-or-greater
> 
> says it is supported up to 8TB drives using firmware v5.2.0 Build 17343 **
> 
> ** Firmware v5.2.0 Build 17343 for the ICP5045BL, ICP5085BL, ICP5805BL,
>ICP5125BR, and ICP5165BR: Adaptec is providing minimally tested
>firmware packages. Please contact Adaptec by PMC Technical Support
>to obtain these firmware files. Have the TSID or serial number of
>the product at hand when contacting support.

Yes, I saw that as well.

I managed to flash the "stable" firmware via arcconf, so I now have
15753 ...

I submitted a ticket there.

In the meantime we already ordered a smaller drive as well.




Re: [gentoo-user] RAID: new drive on aac raid

2020-10-06 Thread Stefan G. Weichinger
Am 06.10.20 um 11:52 schrieb k...@aspodata.se:

> Some guesses:
> 
>  https://wiki.debian.org/LinuxRaidForAdmins#aacraid
>  says that it requires libstd++5
> 
>  arcconf might fork and exec, one could try with strace and try to
>  see what happens
> 
>  one could, if the old suse dist. is available in a subdir, to chroot
>  to that sudir, and try arcconf from there

Hmm, yes.

Currently I think it's the ancient firmware ... and maybe arcconf also
crashes when it's not matching some minimum version of firmware.

As mentioned in my other reply, I wait for that formatting to finish and
then I want to try a firmware upgrade (to brand new 2008 ;-) ).



Re: [gentoo-user] RAID: new drive on aac raid

2020-10-06 Thread Stefan G. Weichinger
Am 06.10.20 um 11:52 schrieb k...@aspodata.se:
> Stefan G. Weichinger:
>> Am 05.10.20 um 21:32 schrieb k...@aspodata.se:
> ...
>> What do you think, is 2 TB maybe too big for the controller?
> 
>>>> 0a:0e.0 RAID bus controller: Adaptec AAC-RAID
> 
> This doesn't really tells us which controller it is, try with
> 
>  lspci -s 0a:0e.0 -nn

I know the model: ICP5165BR

with ancient Firmware.

Currently I am in the Controller's BIOS or however you call that. I try
to initialize and/or format the drive to make it available.

The format runs for hours already.

I prepared a FreeDOS iso with the latest firmware to flash ... after the
formatting is done.

Maybe then the compatibility is better. Or the controller becomes a
paperweight.

I have the impression that the controller hasn't yet fully recognized
the disk, it is displayed differently in the array and disk menus of the
firmware UI.

>>> What do sg_verify /dev/sg11 return ?
>> nothing
> 
> Well, you have to check the return status: echo $?

Maybe later, right now not possible (as mentioned above).



Re: [gentoo-user] RAID: new drive on aac raid

2020-10-06 Thread Stefan G. Weichinger
Am 05.10.20 um 21:32 schrieb k...@aspodata.se:

> What if you put it on the 53c1030 card, can you do that, at least to 
> verify the disk ?

I am 600kms away from that server and the people I could send to the
basement there aren't very competent in these things. I am afraid that
won't work out well.

I only told them to remove and re-insert the new drive. Maybe some
contact issue.

What do you think, is 2 TB maybe too big for the controller?

> What do sg_verify /dev/sg11 return ?

nothing

> Can you do sg_dd if=foo of=/dev/sg11 count=10 and get it back with
> sg_dd if=/dev/sg11 of=bar count=10, with cmp foo bar; echo $? 
> returning 0 ?

Yes, that works.



Re: [gentoo-user] RAID: new drive on aac raid

2020-10-05 Thread Stefan G. Weichinger
Am 05.10.20 um 17:19 schrieb Stefan G. Weichinger:

> So my issue seems to be: non-working arcconf doesn't let me "enable"
> that one drive.

Some kind of progress.

Searched for more and older releases of arcconf, found Version 1.2 that
doesn't crash here.

This lets me view the physical device(s), but the new disk is marked as
"Failed".

# ./arcconf GETCONFIG 1 PD  | more
Controllers found: 1
--
Physical Device information
--
  Device #0
 Device is a Hard drive
 State  : Failed
 Block Size : Unknown
 Supported  : Yes
 Transfer Speed : Failed
 Reported Channel,Device(T:L)   : 0,0(0:0)
 Reported Location  : Connector 0, Device 0
 Vendor : TOSHIBA
 Model  : MG04SCA20EE
 Firmware   : 0104
 Serial number  : 30A0A00UFX2B
 World-wide name: 539A08327484
 Total Size : 0 MB
 Write Cache: Unknown
 FRU: None
 S.M.A.R.T. : No
 S.M.A.R.T. warnings: 0
 SSD: No



Tried a rescan and a clearing of status ... no change.

Maybe the disk is too big for that controller.

Creating a LD also fails:

# ./arcconf CREATE 1 LOGICALDRIVE MAX volume 0,0
Controllers found: 1
A selected device is not available for use.

Command aborted.

juno /usr/portage/distfiles/linux_x64 # ./arcconf CREATE 1 LOGICALDRIVE
MAX volume 0 0
Controllers found: 1
A selected device is not available for use.

Command aborted.

... annoying and frustrating



Re: [gentoo-user] RAID: new drive on aac raid

2020-10-05 Thread Stefan G. Weichinger
Am 05.10.20 um 16:57 schrieb Rich Freeman:

> If you're doing software RAID or just individual disks, then you're
> probably going to go into the controller and basically configure that
> disk as standalone, or as a 1-disk "RAID".  That will make it appear
> to the OS, and then you can do whatever you want with it at the OS
> level (stick a filesystem on it, put it in a RAID/lvm, whatever).
> 
> I find this sort of thing really annoying.

Same here! ;-)

> I prefer HBAs that just do
> IT mode or equivalent - acting as a dumb HBA and passing all the
> drives through to the OS.  It isn't that it doesn't work - it is just
> that you're now married to that HBA card vendor and if anything
> happens to the card you have to replace it with something compatible
> and reconfigure it using their software/etc, or else all your data is
> unreadable.  Even if you have backups it isn't something you want to
> just have to deal with if you're talking about a lot of data.

Yep.

So my issue seems to be: non-working arcconf doesn't let me "enable"
that one drive.

I *might* consider booting up the older Suse OS (still somewhere as
well) via the flaky old Java-KVM and try things there.

The server is ~600kms away, so my possibilities with Live-USB-sticks etc
are limited right now.





Re: [gentoo-user] RAID: new drive on aac raid

2020-10-05 Thread Stefan G. Weichinger
Am 05.10.20 um 16:38 schrieb k...@aspodata.se:

>  And theese on the aac, since they have the same scsi host, and I guess
>  that scsi ch.0 is for the configured drives and ch.1 for the raw drives:
>> [1:0:1:0]diskICP  SAS2 V1.0  /dev/sda
>> [1:0:2:0]diskICP  Device 2 V1.0  /dev/sdb
>> [1:0:3:0]diskICP  Device 3 V1.0  /dev/sdc
>> [1:0:4:0]diskICP  Device 4 V1.0  /dev/sdd
>> [1:0:5:0]diskICP  Device 5 V1.0  /dev/sde
>> [1:0:6:0]diskICP  Device 6 V1.0  /dev/sdf
>> [1:0:7:0]diskICP  Device 7 V1.0  /dev/sdg
>> [1:0:8:0]diskICP  Device 8 V1.0  /dev/sdh
>> [1:0:9:0]diskICP  Device 9 V1.0  /dev/sdi
>> [1:1:0:0]diskTOSHIBA  MG04SCA20EE  0104  

Thanks for your analysis and pointers!

> Perhaps theese links will help:
>  
> https://www.cyberciti.biz/faq/linux-checking-sas-sata-disks-behind-adaptec-raid-controllers/
>  http://updates.aslab.com/doc/disk-controller/aacraid_guide.pdf
>  https://hwraid.le-vert.net/wiki/Adaptec

Somehow.

I get smartctl output for that disk:
# smartctl -d scsi --all /dev/sg11
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-4.14.83-gentoo-smp] (local
build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:   TOSHIBA
Product:  MG04SCA20EE
Revision: 0104
Compliance:   SPC-4
User Capacity:2.000.398.934.016 bytes [2,00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
Rotation Rate:7200 rpm
Form Factor:  3.5 inches
Logical Unit id:  0x539a08327485
Serial number:30A0A00UFX2B
Device type:  disk
Transport protocol:   SAS (SPL-3)
Local Time is:Mon Oct  5 18:54:44 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
Temperature Warning:  Disabled or Not Supported

But no luck with any version of arcconf so far. Unpacked several zips,
tried 2 releases, 32 and 64 bits .. all crash.

> Just a poke in the dark, does ldd report all libs found, as in:
> $ ldd /bin/ls
> linux-vdso.so.1 (0x7ffcbab4c000)
> libc.so.6 => /lib64/libc.so.6 (0x7fece3ad5000)
> /lib64/ld-linux-x86-64.so.2 (0x7fece3d1c000)
> $

Yeah, that works.



[gentoo-user] RAID: new drive on aac raid

2020-10-05 Thread Stefan G. Weichinger


On an older server the customer replaced a SAS drive.

I see it as /dev/sg11, but not yes as /dev/sdX, it is not visible in "lsblk"

Back then with an installed Suse Linux, I had some GUI tool to create a
VD on top of the physical drive and "enable" it ...

I am searching how to achieve that in gentoo now.

-

# lsscsi

[1:1:0:0]diskTOSHIBA  MG04SCA20EE  0104  -

I *assume* that it is connected to the RAID bus controller: Adaptec AAC-RAID

but when I run "arcconf" I only get segfaults.

# lspci
00:00.0 Host bridge: Intel Corporation 5000P Chipset Memory Controller
Hub (rev b1)
00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8
Port 2-3 (rev b1)
00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8
Port 4-5 (rev b1)
00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8
Port 6-7 (rev b1)
00:08.0 System peripheral: Intel Corporation 5000 Series Chipset DMA
Engine (rev b1)
00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers
(rev b1)
00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers
(rev b1)
00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers
(rev b1)
00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved
Registers (rev b1)
00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved
Registers (rev b1)
00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers
(rev b1)
00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers
(rev b1)
00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI
Express Root Port 1 (rev 09)
00:1d.0 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset
UHCI USB Controller #1 (rev 09)
00:1d.1 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset
UHCI USB Controller #2 (rev 09)
00:1d.2 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset
UHCI USB Controller #3 (rev 09)
00:1d.7 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset
EHCI USB2 Controller (rev 09)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC
Interface Controller (rev 09)
00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller
(rev 09)
00:1f.3 SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus
Controller (rev 09)
01:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express
Upstream Port (rev 01)
01:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to
PCI-X Bridge (rev 01)
02:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express
Downstream Port E1 (rev 01)
02:02.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express
Downstream Port E3 (rev 01)
03:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge
A (rev 09)
03:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge
B (rev 09)
06:00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit
Ethernet Controller (Copper) (rev 01)
06:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit
Ethernet Controller (Copper) (rev 01)
07:01.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X
Fusion-MPT Dual Ultra320 SCSI (rev 08)
09:00.0 PCI bridge: Intel Corporation 80333 Segment-A PCIe Express to
PCI-X bridge
09:00.2 PCI bridge: Intel Corporation 80333 Segment-B PCIe Express to
PCI-X bridge
0a:0e.0 RAID bus controller: Adaptec AAC-RAID
0d:01.0 VGA compatible controller: Advanced Micro Devices, Inc.
[AMD/ATI] ES1000 (rev 02)


--

Or it is connected to the "LSI Logic / Symbios Logic 53c1030" ?



# megacli -PDList -Aall


Exit Code: 0x00

hmm ... scratching my head here, could someone help me to determine
where these drives "come from" ?

The goal: enable that new TOSHIBA drive, partition it and add it to the
mdadm-arrays.


# lsscsi
[0:0:1:0]tapeHP   Ultrium 4-SCSI   B12H  /dev/st0
[0:0:1:1]mediumx OVERLAND NEO Series   0510  /dev/sch0
[1:0:1:0]diskICP  SAS2 V1.0  /dev/sda
[1:0:2:0]diskICP  Device 2 V1.0  /dev/sdb
[1:0:3:0]diskICP  Device 3 V1.0  /dev/sdc
[1:0:4:0]diskICP  Device 4 V1.0  /dev/sdd
[1:0:5:0]diskICP  Device 5 V1.0  /dev/sde
[1:0:6:0]diskICP  Device 6 V1.0  /dev/sdf
[1:0:7:0]diskICP  Device 7 V1.0  /dev/sdg
[1:0:8:0]diskICP  Device 8 V1.0  /dev/sdh
[1:0:9:0]diskICP  Device 9 V1.0  /dev/sdi
[1:1:0:0]diskTOSHIBA  MG04SCA20EE  0104  -
[1:1:1:0]diskSEAGATE  ST373455SS   0002  -
[1:1:3:0]diskWDC  WD7500AZEX-00RKK 0A80  -
[1:1:4:0]diskWDC  WD7500AZEX-00RKK 0A80  -
[1:1:5:0]diskWDC  WD7500AZEX-00RKK 0A80  -
[1:1:6:0]diskWDC  WD7500AZEX-00BN5 1A01  -
[1:1:7:0]diskWDC  WD7500AZEX-00BN5 1A01  -
[1:1:8:0]diskWDC  WD7500AZEX-00RKK 0A80  -
[1:1:9:0]disk  

Re: [gentoo-user] dbus not starting, reboot to be avoided

2020-09-24 Thread Stefan G. Weichinger


Reboot lead to some problems, now the flaky disk is removed.

Fixed some things in maintenance mode, did filesystem checks, now the
server boots OK and dbus also runs magically.




Re: [gentoo-user] dbus not starting, reboot to be avoided

2020-09-24 Thread Stefan G. Weichinger
Am 24.09.20 um 11:01 schrieb Stefan G. Weichinger:
> 
> I have a gentoo server with a failed /dev/sda. OS is on RAID1 with a
> working /dev/sdb below.
> 
> I want to avoid rebooting because I mistrust the GRUB from a former SUSE
> installation (in parallel) right now.
> 
> For some reason dbus isn't running.
> 
> I can't get a correct systemctl behavior right now.
> 
> Tried to start the dbus daemon with the line from the service file, but
> it doesn't find or create the socket file in /run/dbus
> 
> I assume I could create it with mknod, could someone point me at a
> working command?



Managed to recreate that file:

# ls -la /run/dbus/
insgesamt 0
srwxrwxrwx  1 root root   0 24. Sep 12:19 system_bus_socket

/usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile
--systemd-activation --syslog-only

(as in dbus.service) fails with

dbus-daemon[26507]: Failed to start message bus: No socket received.




[gentoo-user] dbus not starting, reboot to be avoided

2020-09-24 Thread Stefan G. Weichinger


I have a gentoo server with a failed /dev/sda. OS is on RAID1 with a
working /dev/sdb below.

I want to avoid rebooting because I mistrust the GRUB from a former SUSE
installation (in parallel) right now.

For some reason dbus isn't running.

I can't get a correct systemctl behavior right now.

Tried to start the dbus daemon with the line from the service file, but
it doesn't find or create the socket file in /run/dbus

I assume I could create it with mknod, could someone point me at a
working command?

Tried dbus 1.12.16, 1.12.18, unmerged, re-emerged etc

Thanks for some help here.




Re: [gentoo-user] aggregate logs into Elasticsearch

2020-04-09 Thread Stefan G. Weichinger
Am 04.04.20 um 16:02 schrieb Ralph Seichter:
> * Stefan G. Weichinger:
> 
>> Maybe I look into mongodb as well, for example I found this small
>> howto: https://www.fluentd.org/guides/recipes/maillog-mongodb
> 
> That looks unnecessarily complicated to me. While you can of course move
> data from an existing log file into MongoDB, I find configuring syslog
> to use a MongoDB destination (in addition to your files or as a full
> replacement) much easier.
> 
> See [1] section "Storing messages in a MongoDB database". I have also
> done it with rsyslog, but that took a bit more work.
> 
> Here's a syslog-ng destination I use. Note that using uri() allows
> passing parameters to modern MongoDB drivers which the older servers()
> statement cannot cope with.
> 
>   destination d_mongo {
> mongodb(
>   uri("mongodb://user:pw@hostname:27017/syslog?authSource=admin=true")
>   collection("messages")
>   value-pairs(
> scope("selected-macros" "nv-pairs")
> pair("DATE", datetime("$UNIXTIME"))
> pair("PID", int64("$PID"))
> pair("SEQNUM", int64("$SEQNUM"))
> exclude("HOST*")
> exclude("LEGACY*")
> exclude("SOURCE*")
> exclude("TAGS")
>   )
> );
>   };
> 
> Values are strings to begin with. This example excludes some values I am
> not interested in, and performs type conversion on others, for example
> mapping DATE to MongoDB's date/time data type (see ISODate) and PID to a
> numeric value. Conversion can of course happen during analysis, but
> since syslog-ng is smart enough to do it when writing data, I prefer
> that.
> 
> [1] 
> https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.16/administration-guide/37#TOPIC-956524

Thanks a lot ... I think I will postpone that project ;-)




Re: [gentoo-user] aggregate logs into Elasticsearch

2020-04-04 Thread Stefan G. Weichinger
Am 03.04.20 um 17:57 schrieb Ralph Seichter:
> * Stefan G. Weichinger:
> 
>> My goal:
>>
>> collect logs of postfix, nginx into the docker-containers running ES,
>> Kibana .. and learn my way from there.
> 
> If you are not dead-set on Elasticsearch et al, I propose considering
> MongoDB as an alternative.
> 
> There are syslog Modules that allow logging into MongoDB directly. On
> the DB side, collections (roughly equivalent to tables in relational
> databases) can be limited by size or by age, meaning that removing older
> data will happen automatically if you so wish.
> 
> MongoDB also makes it easy to add data from sources with different data
> makeup to shared collections, because there is no rigid table structure.
> 
> For analysis, MongoDB includes its own Aggregation Framework[1], which
> is a very powerful and versatile. While probably not relevant to your
> needs right now, It even comes with built-in geolocation search
> 
>   [1] https://docs.mongodb.com/manual/core/aggregation-pipeline/
> 
> I think very highly of MongoDB and encourage you to look into it as a
> possibility and as an interesing technical concept.

Thanks for the feedback.

I am not at all set on ES, it just was part of an article I read lately,
and so I started with that docker-compose stack example.

Yesterday I spent quite a while trying to pipe the journald entries into
the fluentd container, quite complicated and messy in a way.

Maybe I look into mongodb as well, for example I found this small howto:

https://www.fluentd.org/guides/recipes/maillog-mongodb

In the end I look for a solution to aggregate (systemd/journald) logs
into one pile of data and to be able to analyze stuff there.

All these solutions seem rather complicated and overly "academic" to me
... but that might be my newbie status in this area.



[gentoo-user] aggregate logs into Elasticsearch

2020-04-03 Thread Stefan G. Weichinger


I am trying my first steps to collect and aggregate logs into a
elasticsearch/kibana combo.

I have them in a docker-compose stack and want to collect nginx and
postfix logs for a start.

So far I am confused by stuff like filebeat, logstash, fluentd ... brrr

Could someone explain or even share some config files? How to set that
up without dozens of packages installed etc (fluentd pulls a lot of
packages, for example).

My goal:

collect logs of postfix, nginx into the docker-containers running ES,
Kibana .. and learn my way from there.

thanks, Stefan



Re: [EXTERNAL] Re: [gentoo-user] multipath.conf : learning how to use

2019-08-19 Thread Stefan G. Weichinger
On 8/16/19 7:42 PM, Laurence Perkins wrote:

> Note that, in my experience at least, binary distros also tend to
> break hard if you leave them without updates for a year or more and
> then try to bring them current.  And they're usually harder to fix
> when they do. So make sure that whatever you put in is kept up to
> date.
> 
> The stable branch of a good binary distro has a big advantage
> there, especially with a snapshottable filesystem, because the
> updates can be handed off to a trained monkey, leaving the experts
> free for the important stuff.  But it's not a magic bullet.  If you
> don't write good documentation and keep the system up to date
> you'll end up in the exact same position a few years down the road
> no matter what distro you use.

I agree ... there'll be unattended updates automatically and I am
monitoring and using that server on a regular base anyway.

The goal now is to get a well-known state with less maintenance
complexity.

I am currently booking my tickets there ;-)




Re: [gentoo-user] multipath.conf : learning how to use

2019-08-14 Thread Stefan G. Weichinger
Am 14.08.19 um 13:20 schrieb J. Roeleveld:

> If there is no documentation, it is a mess by definition.

yes :-)

 I see two devices sdc and sdd that should come from the SAN.
>>>
>>> Interesting, are these supposed to be the same?
>>
>> No, I don't think so. But maybe you'r right. No sdd in fstab or in the
>> mounts at all and ...
> 
> See next item, make sure you do NOT mount both at the same time.

I understand and agree ;-)
>> # /usr/bin/sg_vpd --page=di /dev/sdb
>> Device Identification VPD page:
>>   Addressed logical unit:
>> designator type: NAA,  code set: Binary
>>   0x600605b00d0ce810217ccffe19f851e8
> 
> Yes, this one is different.
> 
> I checked the above ID and it looks like it is already correctly configured.
> Is " multipathd " actually running?

no!

> If it were running correctly, you would mount " /dev/mapper/ " instead of 
> " /dev/sdc " or " /dev/sdd ".
> 
>> In the first week of september I travel there and I have the job to
>> reinstall that server using Debian Linux (yes, gentoo-users, I am
>> getting OT here ;-)).
> 
> For something that doesn't get updated/managed often, Gentoo might not be the 
> best choice, I agree.
> I would prefer Centos for this one though, as there is far more info on 
> multipath from Redhat.

I will consider this ...

As I understand things here:

the former admin *tried to* setup multipath and somehow got stuck.
That's why it isn't running and not used at all. He somehow mentioned
this in an email back then when he was still working there.

So currently it seems to me that the storage is attached via "single
path" (is that the term here?) only. "directly"= no redundancy

That means using the lpfc-kernel-module to run the FibreChannel-adapters
... which failed to come up / sync with a more recent gentoo kernel, as
initially mentioned.

(right now: 4.1.15-gentoo-r1 ... )

I consider sending a Debian-OS on a SSD there and let the (low
expertise) guy there boot from it. (or a stick). Which in fact is risky
as he doesn't know anything about linux.

Or I simply wait for my on-site-appointment and start testing when I am
there.

Maybe I am lucky and the debian lpfc stuff works from the start. And
then I could test multipath as well.

I assume that maybe the adapters need a firmware update or so.

-

The current gentoo installation was done with "hardened" profile, not
touched for years, no docs  so it somehow seems way too much hassle
to get it up to date again. Additionally no experts on site there, so it
should be low maintenance anyway.



Re: [gentoo-user] multipath.conf : learning how to use

2019-08-14 Thread Stefan G. Weichinger
Am 14.08.19 um 08:36 schrieb J. Roeleveld:
> Stefan,
> 
> 
> On maandag 29 juli 2019 21:28:50 CEST Stefan G. Weichinger wrote:
>> At a customer I have to check through an older gentoo server.
>>
>> The former admin is not available anymore and among other things I have
>> to check how the SAN storage is attached.
> 
> If you ever encounter that admin, make sure you hide the body :)

I only learn day by day what a mess all that is ...

>> I see two devices sdc and sdd that should come from the SAN.
> 
> Interesting, are these supposed to be the same? 

No, I don't think so. But maybe you'r right. No sdd in fstab or in the
mounts at all and ...

> what do you get back from:
> 
> # /usr/bin/sg_vpd --page=di /dev/sdc
> # /usr/bin/sg_vpd --page=di /dev/sdd
> (As suggested in the multipathd.conf file you listed above)

these 2 look similar to me:

samba ~ # /usr/bin/sg_vpd --page=di /dev/sdc
Device Identification VPD page:
  Addressed logical unit:
designator type: NAA,  code set: Binary
  0x600c0ff0001e91b2c1bae2560100
designator type: vendor specific [0x0],  code set: Binary
  vendor specific:
 00 11 32 36 37 32 31 36 00  00 c0 ff 1e 91 b2 00 00.267216.
 10 c0 a8 64 12 00 c0 ff 1e  8d 38 00 00 c0 a8 64 11..d..8d.
  Target port:
designator type: Relative target port,  code set: Binary
  Relative target port: 0x3
designator type: Target port group,  code set: Binary
  Target port group: 0x0
designator type: NAA,  code set: Binary
 transport: Fibre Channel Protocol for SCSI (FCP-4)
  0x227000c0ff267216
  Target device that contains addressed lu:
designator type: NAA,  code set: Binary
 transport: Fibre Channel Protocol for SCSI (FCP-4)
  0x208000c0ff267216
samba ~ # /usr/bin/sg_vpd --page=di /dev/sdd
Device Identification VPD page:
  Addressed logical unit:
designator type: NAA,  code set: Binary
  0x600c0ff0001e91b2c1bae2560100
designator type: vendor specific [0x0],  code set: Binary
  vendor specific:
 00 11 32 36 37 32 31 36 00  00 c0 ff 1e 8d 38 00 00.267216..8..
 10 c0 a8 64 11 00 c0 ff 1e  91 b2 00 00 c0 a8 64 12..d...d.
  Target port:
designator type: Relative target port,  code set: Binary
  Relative target port: 0x7
designator type: Target port group,  code set: Binary
  Target port group: 0x1
designator type: NAA,  code set: Binary
 transport: Fibre Channel Protocol for SCSI (FCP-4)
  0x267000c0ff267216
  Target device that contains addressed lu:
designator type: NAA,  code set: Binary
 transport: Fibre Channel Protocol for SCSI (FCP-4)
  0x208000c0ff267216

> If "sdc" and "sdd" are the same disk, the "Adressed logical unit" id should 
> be 
> the same for both.

So we have 0x600c0ff0001e91b2c1bae2560100 twice, right?

There's a /dev/sdb as well, commented in fstab with "9750-8i Raid6
(4x3TB + 2x4TB)" but that seems another "branch" of devices:

# /usr/bin/sg_vpd --page=di /dev/sdb
Device Identification VPD page:
  Addressed logical unit:
designator type: NAA,  code set: Binary
  0x600605b00d0ce810217ccffe19f851e8

-

In the first week of september I travel there and I have the job to
reinstall that server using Debian Linux (yes, gentoo-users, I am
getting OT here ;-)).




Re: [gentoo-user] fibrechannel (was: multipath.conf )

2019-07-29 Thread Stefan G. Weichinger
Am 29.07.19 um 21:37 schrieb Stefan G. Weichinger:

> I remember a (test) kernel update where that lfpc-devices didn't come up
> well. Went back to old kernel then ...

reference ::
https://linux.gentoo.user.narkive.com/eIPbuEEK/gentoo-user-rebuilding-a-kernel-on-a-hardened-gentoo



Re: [gentoo-user] fibrechannel (was: multipath.conf )

2019-07-29 Thread Stefan G. Weichinger
I think I have to edit the subject:

seems that multipath-setup never worked ...

The goal is to get the fibrechannel stuff right:

# lspci | grep -i fibre
02:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre
Channel Host Adapter (rev 03)
02:00.1 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre
Channel Host Adapter (rev 03)
samba ~ # lspci -v -s 02:00.0
02:00.0 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre
Channel Host Adapter (rev 03)
Subsystem: Hewlett-Packard Company 8Gb Dual-port PCI-e FC HBA
Flags: bus master, fast devsel, latency 0, IRQ 19
Memory at f7889000 (64-bit, non-prefetchable) [size=4K]
Memory at f7884000 (64-bit, non-prefetchable) [size=16K]
I/O ports at d100 [size=256]
Expansion ROM at f784 [disabled] [size=256K]
Capabilities: [58] Power Management version 3
Capabilities: [60] MSI: Enable- Count=1/16 Maskable+ 64bit+
Capabilities: [78] MSI-X: Enable+ Count=32 Masked-
Capabilities: [84] Vital Product Data
Capabilities: [94] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [12c] Power Budgeting 
Kernel driver in use: lpfc
Kernel modules: lpfc

samba ~ # lspci -v -s 02:00.1
02:00.1 Fibre Channel: Emulex Corporation Saturn-X: LightPulse Fibre
Channel Host Adapter (rev 03)
Subsystem: Hewlett-Packard Company 8Gb Dual-port PCI-e FC HBA
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f7888000 (64-bit, non-prefetchable) [size=4K]
Memory at f788 (64-bit, non-prefetchable) [size=16K]
I/O ports at d000 [size=256]
Expansion ROM at f780 [disabled] [size=256K]
Capabilities: [58] Power Management version 3
Capabilities: [60] MSI: Enable- Count=1/16 Maskable+ 64bit+
Capabilities: [78] MSI-X: Enable+ Count=32 Masked-
Capabilities: [84] Vital Product Data
Capabilities: [94] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [12c] Power Budgeting 
Kernel driver in use: lpfc
Kernel modules: lpfc


I remember a (test) kernel update where that lfpc-devices didn't come up
well. Went back to old kernel then ...







[gentoo-user] multipath.conf : learning how to use

2019-07-29 Thread Stefan G. Weichinger


At a customer I have to check through an older gentoo server.

The former admin is not available anymore and among other things I have
to check how the SAN storage is attached.

As I have to plan a new installation with minimal downtime I'd like to
understand that multipath-stuff before any changes ;-)

The system runs:

sys-fs/multipath-tools-0.5.0-r1

and has a multipath.conf:

(rm-ed comments)

defaults {
#  udev_dir/dev
  polling_interval15
#  selector"round-robin 0"
  path_grouping_policygroup_by_prio
  failback5
  path_checkertur
#  prio_callout"/sbin/mpath_prio_tpc /dev/%n"
  rr_min_io   100
  rr_weight   uniform
  no_path_retry   queue
  user_friendly_names yes

}
blacklist {
  devnode cciss
  devnode fd
  devnode hd
  devnode md
  devnode sr
  devnode scd
  devnode st
  devnode ram
  devnode raw
  devnode loop
  devnode sda
  devnode sdb
}

multipaths {
  multipath {
wwid  3600c0ff0001e91b2c1bae2560100
## To find your wwid, please use /usr/bin/sg_vpd --page=di /dev/DEVICE.
## The address will be a 0x6. Remove the 0x and replace it with 3.
alias MSA2040_SAMBA_storage
  }
}





"multipath -l" and "-ll" show nothing.

dmesg:

# dmesg | grep multi
[1.144947] md: multipath personality registered for level -4
[1.145679] device-mapper: multipath: version 1.9.0 loaded
[1.145857] device-mapper: multipath round-robin: version 1.0.0 loaded
[21827451.284100] device-mapper: table: 253:0: multipath: unknown path
selector type
[21827451.285432] device-mapper: table: 253:0: multipath: unknown path
selector type
[21827496.130239] device-mapper: table: 253:0: multipath: unknown path
selector type
[21827496.131379] device-mapper: table: 253:0: multipath: unknown path
selector type
[21827497.576482] device-mapper: table: 253:0: multipath: unknown path
selector type

-

I see two devices sdc and sdd that should come from the SAN.

Could someone help me to research this in more detail?

This is a production server, I can't change much ...

I would like to find out how to reliably mount these SAN-devices into a
new OS (maybe a new gentoo installation is coming).

thanks, Stefan



Re: [gentoo-user] amanda-3.4.5

2019-07-15 Thread Stefan G. Weichinger
Am 15.07.19 um 08:41 schrieb Stefan G. Weichinger:
> 
> Does anyone have a binary package for app-backup/amanda-3.4.5 he could
> share?
> 
> I have to (test the) downgrade because of issues with 3.5.1, and my
> binary package doesn't install anymore (perl now upgraded etc)
> 
> and the latest amanda doesn't talk to a legacy client which I can't
> upgrade at all
> 
> Maybe someone could share the package via dropbox or so.

managed a workaround:

the compile issues (related to NDMP and RPC somehow) showed me that the
USE-flag "ndmp" isn't interpreted by the current ebuild at all.

Patched that and disabled NDMP, now it compiles and amcheck works ok for
now.




[gentoo-user] amanda-3.4.5

2019-07-15 Thread Stefan G. Weichinger


Does anyone have a binary package for app-backup/amanda-3.4.5 he could
share?

I have to (test the) downgrade because of issues with 3.5.1, and my
binary package doesn't install anymore (perl now upgraded etc)

and the latest amanda doesn't talk to a legacy client which I can't
upgrade at all

Maybe someone could share the package via dropbox or so.

thanks



Re: [gentoo-user] requirement: ssh v1

2019-05-16 Thread Stefan G. Weichinger
Am 16.05.19 um 14:09 schrieb Michael Orlitzky:
> On 5/16/19 6:44 AM, Stefan G. Weichinger wrote:
>>
>> Will I be able to install such a "kept old" gentoo machine from scratch
>> or does some have a better idea?
>>
> 
> Does it *need* SSHv1, or does the default sshd *run* SSHv1?

It *is* SSHv1 ... v2 didn't exist back then ;-)

> If it's the latter, you might be able to compile a newer OpenSSH from
> source to get the modern protocol, obviating the need for the extra host.
> 
> Otherwise, your best bet is to install a modern Gentoo system, and then
> downgrade OpenSSH.

I setup a small VM with debian 8 ... seems to work.

thanks, sorry for the noise






[gentoo-user] requirement: ssh v1

2019-05-16 Thread Stefan G. Weichinger


At a customer we still have to keep up an ancient Suse 6.x VM, it has a
legacy and proprietary software in it which has to be kept alive.

No way to move that sw to another OS, don't ask ...

That VM only runs sshd v1 ... so far I kept my openssh package on the
host at 7.5 via masking ...

I now have to replace the gentoo server and set up the vitualization
host with debian ("don't ask" again ;-)).

I think of setting up a tiny gentoo VM as a "jumphost" into the Suse VM.

Will I be able to install such a "kept old" gentoo machine from scratch
or does some have a better idea?

I even thought of docker ...



Re: [gentoo-user] sys-apps/systemd-239-r2 does not install completely

2019-01-12 Thread Stefan G. Weichinger
Am 23.11.18 um 10:09 schrieb Stefan G. Weichinger:

>>> # qlist -ICv systemd sys-apps/gentoo-systemd-integration-7 
>>> sys-apps/systemd-236-r5
>>
>> Since no one else has come up with anything less kludgy, and I
>> assume you have already tried reinstalling systemd, I can only
>> think of unmerging and re-emerging it, after making a package with
>> quickpkg.
> 
> As long as everything works ... I'd like to avoid this on a productive
> system that is hundreds of kilometers away.
> 
> But yes, I agree basically.

I am back at that server and noticed that systemd-journald does not
start anymore for a while.

Adding "FEATURES=-xattr" I was able to install systemd-239 now ... at
least it doesn't complain anymore and emerges OK after the n-th time
(overwriting its own files now).

After fiddling with journald-sockets and stuff I went for a reboot. Now
no more --failed units.



Re: [gentoo-user] glibc-2.27 segfaults

2019-01-08 Thread Stefan G. Weichinger
Am 21.12.18 um 15:48 schrieb Stefan G. Weichinger:

> rebooted now with a new 4.14.83
> 
> Still that amanda-error ... could be their bug as well.


https://bugs.gentoo.org/674864





Re: [gentoo-user] glibc-2.27 segfaults

2018-12-21 Thread Stefan G. Weichinger
Am 21.12.18 um 09:54 schrieb J. Roeleveld:
> systemd fails at "waiting for LV xy" .. I have the former SUSE Linux
> booted up already and think of editing the gentoo fstab to skip the 3 LV
> mounts ... just to get it booted
> 
> That could easily be the case.

Disabled the 3 lines and/or added "noauto" just to get on with it.

> And if you find a decent KVM over IP option with VGA amd USB support, I
> would be interested as well. Got one remote system without a built-in
> KVM myself.

rebooted now with a new 4.14.83

Still that amanda-error ... could be their bug as well.

That KVM ... I will research something and let you know.

The current one is a "Guardian KVM 101" or so ... outdated firmware,
buggy Java, I get errors with old IE etc



Re: [gentoo-user] glibc-2.27 segfaults

2018-12-21 Thread Stefan G. Weichinger
Am 21.12.18 um 08:53 schrieb Stefan G. Weichinger:

> We now have a non-booting gentoo (going into systemd emergency mode) ...
> something around LVM fails and so it stops booting.
Is it possible that related to the rebuilds related to the
profile-changes somehow LVM got "incompatible" to the old kernel?

And only at reboot this hits me?

systemd fails at "waiting for LV xy" .. I have the former SUSE Linux
booted up already and think of editing the gentoo fstab to skip the 3 LV
mounts ... just to get it booted





Re: [gentoo-user] glibc-2.27 segfaults

2018-12-20 Thread Stefan G. Weichinger
Am 19.12.18 um 23:11 schrieb Stefan G. Weichinger:
> Am 19.12.18 um 19:25 schrieb J. Roeleveld:
> 
>> The 4.14.x range has a few dodgy ones causing issues along the way. The
>> ones currently marked stable allow me to do a full rebuild. Some of the
>> older ones in there caused all kinds of weird issues like segfaults
>> during compile. Corrupt libraries.
>> Ended up with 4.14.65 and doing a full rebuild (emerge --empty @world)
>> before trusting it again.
> 
> I wonder what happened *now* ... no updates or rebuilds in the last days.
> 
> Will attempt kernel update but have to get access first ...

We now have a non-booting gentoo (going into systemd emergency mode) ...
something around LVM fails and so it stops booting. I remember this
issue from a year ago ... but can't access the server because of an
outdated KVM-over-IP. Wonderful xmas present ;-)

hints for cheap KVM-over-IP-boxes welcome (for one server, with VGA still)

Have a nice weekend and holidays, folks





Re: [gentoo-user] glibc-2.27 segfaults

2018-12-19 Thread Stefan G. Weichinger
Am 19.12.18 um 19:25 schrieb J. Roeleveld:

> The 4.14.x range has a few dodgy ones causing issues along the way. The
> ones currently marked stable allow me to do a full rebuild. Some of the
> older ones in there caused all kinds of weird issues like segfaults
> during compile. Corrupt libraries.
> Ended up with 4.14.65 and doing a full rebuild (emerge --empty @world)
> before trusting it again.

I wonder what happened *now* ... no updates or rebuilds in the last days.

Will attempt kernel update but have to get access first ...

thx, s




Re: [gentoo-user] glibc-2.27 segfaults

2018-12-18 Thread Stefan G. Weichinger

Am 18.12.18 um 15:37 schrieb J. Roeleveld:


I had similar issues with multiple packages.
Solved by updating the kernel, are you using latest stable gentoo sources?


far from ...
4.14.12-gentoo ... uptime 323 days

I will have to check that IRMC-like KVM-box with outdated Java before I 
dare a reboot. The box is a few hundred kms away from me.








[gentoo-user] glibc-2.27 segfaults

2018-12-18 Thread Stefan G. Weichinger


I see

[27905442.641298] amcheck-device[8581]: segfault at 8 ip
7f36788986e6 sp 7ffc67faf2f8 error 4 in
libc-2.27.so[7f36787fa000+1be000]
[27905718.857330] amcheck-device[8733]: segfault at 8 ip
7f143d7ae6e6 sp 7ffeb709f728 error 4 in
libc-2.27.so[7f143d71+1be000]

when I run amcheck of the AMANDA backup suite.

I posted there already but found complaints around this glibc-release
with debian etc as well ... so I wonder if more people might be affected.

I rebuilt the toolchain already, system is on profile 17 ... I also
rebuilt glibc, amanda ...

hints welcome



Re: [gentoo-user] sys-apps/systemd-239-r2 does not install completely

2018-11-23 Thread Stefan G. Weichinger
Am 23.11.18 um 09:36 schrieb Neil Bothwick:
> On Tue, 20 Nov 2018 11:33:03 +0100, Stefan G. Weichinger wrote:
> 
>>>>> What version does "qlist ICv systemd" show?
>>>> 
>>>> No version, just a long list of files.
>>> 
>>> That should have been "qlist -ICv systemd"
>> 
>> 
>> 
>> thanks ->
>> 
>> # qlist -ICv systemd sys-apps/gentoo-systemd-integration-7 
>> sys-apps/systemd-236-r5
> 
> Since no one else has come up with anything less kludgy, and I
> assume you have already tried reinstalling systemd, I can only
> think of unmerging and re-emerging it, after making a package with
> quickpkg.

As long as everything works ... I'd like to avoid this on a productive
system that is hundreds of kilometers away.

But yes, I agree basically.




Re: [gentoo-user] sys-apps/systemd-239-r2 does not install completely

2018-11-20 Thread Stefan G. Weichinger
Am 20.11.18 um 11:19 schrieb Neil Bothwick:
> On Tue, 20 Nov 2018 10:49:27 +0100, Stefan G. Weichinger wrote:
> 
>>> What version does "qlist ICv systemd" show?
>> 
>> No version, just a long list of files.
> 
> That should have been "qlist -ICv systemd"



thanks ->

# qlist -ICv systemd
sys-apps/gentoo-systemd-integration-7
sys-apps/systemd-236-r5



Re: [gentoo-user] sys-apps/systemd-239-r2 does not install completely

2018-11-20 Thread Stefan G. Weichinger
Am 20.11.18 um 10:19 schrieb Neil Bothwick:
> On Mon, 19 Nov 2018 10:14:01 +0100, Stefan G. Weichinger wrote:
> 
>>>> upgrading from sys-apps/systemd-236-r5 to 239-r2
>>>> 
>>>> the emerge runs through and warns me that it overwrites files
>>>> ... so it merges only partially ...
>>> 
>>> What's the exact error message? You may get a suggested
>>> solution based on this vague description of the problem but it
>>> may not be the right one, or even safe.
>>> 
>>> Normally emerge will put up a warning like this before
>>> installing anything.
>> 
>> pasted error msg below
>> 
>> ---
>> 
>> * Package 'sys-apps/systemd-239-r2' merged despite file
>> collisions. If * necessary, refer to your elog messages for the
>> whole content of the * above message.
> 
> According to this the file collisions were ignore and the updated
> package installed, so either something else prevented the
> installation from completing or eix is confused.
> 
> What version does "qlist ICv systemd" show?

No version, just a long list of files.

> How about "ls -ld /var/db/pkg/sys-apps/systemd-*"?

# ls -ld /var/db/pkg/sys-apps/systemd-*
drwxr-xr-x 2 root root 4096 May 15  2018
/var/db/pkg/sys-apps/systemd-236-r5

but:

# systemctl --version
systemd 239

and to even make it more interesting:

# dmesg -t | grep systemd   # last lines ...


[Sat Nov 17 10:42:14 2018] systemd[1]: systemd 238 running in system
mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP
-LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL -XZ +LZ4 +SECCOMP +BLKID -ELFUTILS
+KMOD -IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[Sat Nov 17 10:42:14 2018] systemd[1]: Detected architecture x86-64.
[Sat Nov 17 10:42:14 2018] systemd[1]: File
/lib/systemd/system/systemd-journald.service:35 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
[Sat Nov 17 10:42:14 2018] systemd[1]: Proceeding WITHOUT firewalling
in effect! (This warning is only shown for the first loaded unit using
IP firewalling.)
[Sat Nov 17 10:51:01 2018] systemd[1]: Reloading.
[Sat Nov 17 10:51:01 2018] systemd[1]:
/lib/systemd/system/systemd-journald.service:32: Unknown system call
group, ignoring: @system-service
[Sat Nov 17 10:51:01 2018] systemd[1]:
/lib/systemd/system/systemd-udevd.service:28: Unknown lvalue
'PrivateMounts' in section 'Service'
[Sat Nov 17 10:51:01 2018] systemd[1]:
/lib/systemd/system/systemd-udevd.service:32: Unknown system call
group, ignoring: @system-service
[Sat Nov 17 10:51:01 2018] systemd[1]:
/lib/systemd/system/systemd-timesyncd.service:41: Unknown system call
group, ignoring: @system-service
[Sat Nov 17 10:51:01 2018] systemd[1]:
/lib/systemd/system/systemd-machined.service:26: Unknown system call
group, ignoring: @system-service
[Sat Nov 17 10:51:01 2018] systemd[1]:
/lib/systemd/system/systemd-logind.service:33: Unknown system call
group, ignoring: @system-service
[Sat Nov 17 10:51:01 2018] systemd[1]:
/lib/systemd/system/systemd-resolved.service:41: Unknown system call
group, ignoring: @system-service
[Sat Nov 17 10:51:01 2018] systemd[1]:
/lib/systemd/system/systemd-networkd.service:38: Unknown system call
group, ignoring: @system-service
[Mon Nov 19 19:26:34 2018] systemd-journald[226]: Failed to set ACL on
/var/log/journal/9ce1e483f41dcc57a00e5611521d1771/user-1018.journal,
ignoring: Operation not supported



Re: [gentoo-user] sys-apps/systemd-239-r2 does not install completely

2018-11-19 Thread Stefan G. Weichinger
Am 19.11.18 um 09:41 schrieb Neil Bothwick:
> On Mon, 19 Nov 2018 08:14:38 +0100, Stefan G. Weichinger wrote:
> 
>> upgrading from sys-apps/systemd-236-r5 to 239-r2
>> 
>> the emerge runs through and warns me that it overwrites files ...
>> so it merges only partially ...
> 
> What's the exact error message? You may get a suggested solution
> based on this vague description of the problem but it may not be
> the right one, or even safe.
> 
> Normally emerge will put up a warning like this before installing 
> anything.

pasted error msg below

pls ignore that locale issue, comes from my fedora desktop (seems to
set the variables through ssh as well ... I know how to fix the locale
but I'm lazy)




---

* Package 'sys-apps/systemd-239-r2' merged despite file collisions. If
 * necessary, refer to your elog messages for the whole content of the
 * above message.
/var/tmp/portage/sys-apps/systemd-239-r2/temp/environment: line 190:
warning: setlocale: LC_NUMERIC: cannot change locale (de_AT.UTF-8)
/var/tmp/portage/sys-apps/systemd-239-r2/temp/environment: line 192:
warning: setlocale: LC_TIME: cannot change locale (de_AT.UTF-8)
/var/tmp/portage/sys-apps/systemd-239-r2/temp/environment: line 190:
warning: setlocale: LC_NUMERIC: cannot change locale (de_AT.UTF-8)
/var/tmp/portage/sys-apps/systemd-239-r2/temp/environment: line 192:
warning: setlocale: LC_TIME: cannot change locale (de_AT.UTF-8)
!!! Failed to copy extended attributes. In order to avoid this error,
!!! set FEATURES="-xattr" in make.conf.
!!! copy
/var/tmp/portage/sys-apps/systemd-239-r2/image/var/log/journal/remote/.keep_sys-apps_systemd-0
-> /var/log/journal/remote/.keep_sys-apps_systemd-0 failed.
!!! Filesystem containing file
'/var/log/journal/remote/.keep_sys-apps_systemd-0#new' does not
support extended attribute 'system.posix_acl_access'
/var/tmp/portage/sys-apps/systemd-239-r2/temp/environment: line 190:
warning: setlocale: LC_NUMERIC: cannot change locale (de_AT.UTF-8)
/var/tmp/portage/sys-apps/systemd-239-r2/temp/environment: line 192:
warning: setlocale: LC_TIME: cannot change locale (de_AT.UTF-8)

 * Messages for package sys-apps/systemd-239-r2:

 *   CONFIG_CGROUP_BPF:  is not set when it should be.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.

 * Messages for package sys-apps/systemd-239-r2:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / ` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at https://bugs.gentoo.org/ unless you report exactly
 * which two packages install the same file(s). See
 * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how
 * to solve the problem. And once again, please do NOT file a bug report
 * unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *  /lib64/libsystemd.so.0.23.0
 *  /lib64/libudev.so.1.6.11
 *  /lib/systemd/systemd-time-wait-sync
 *  /lib/systemd/systemd-portabled
 *  /lib/systemd/portablectl
 *  /lib/systemd/systemd-user-runtime-dir
 *  /lib/systemd/libsystemd-shared-239.so
 *  /lib/systemd/portable/profile/trusted/service.conf
 *  /lib/systemd/portable/profile/strict/service.conf
 *  /lib/systemd/portable/profile/nonetwork/service.conf
 *  /lib/systemd/portable/profile/default/service.conf
 *  /lib/systemd/system/system-update-pre.target
 *  /lib/systemd/system/suspend-then-hibernate.target
 *  /lib/systemd/system/user-runtime-dir@.service
 *  /lib/systemd/system/systemd-time-wait-sync.service
 *  /lib/systemd/system/systemd-portabled.service
 *  /lib/systemd/system/systemd-suspend-then-hibernate.service
 *  /lib/systemd/system/user-.slice.d/10-defaults.conf
 *  /usr/bin/resolvectl
 *  /usr/lib/tmpfiles.d/portables.conf
 *  /usr/share/locale/ja/LC_MESSAGES/systemd.mo
 *  /usr/share/doc/systemd-239-r2/NEWS.bz2
 *  /usr/share/doc/systemd-239-r2/TODO.bz2
 *  /usr/share/doc/systemd-239-r2/nsswitch.conf.bz2
 *  /usr/share/doc/systemd-239-r2/UIDS-GIDS.md.bz2
 *  /usr/share/doc/systemd-239-r2/README.md.bz2
 *  /usr/share/doc/systemd-239-r2/TRANSLATORS.bz2
 *  /usr/share/doc/systemd-239-r2/README.bz2
 *  /usr/share/doc/systemd-239-r2/TRANSIENT-SETTINGS.md.bz2
 *  /usr/share/doc/systemd-239-r2/GVARIANT-SERIALIZATION.bz2
 *  /usr/share/doc/

Re: [gentoo-user] sys-apps/systemd-239-r2 does not install completely

2018-11-18 Thread Stefan G. Weichinger
Am 19.11.18 um 08:19 schrieb YUE Daian:

> Have you tried to run `eix-update`?

For sure. Repeated right now, doesn't change the output of "eix -I"





[gentoo-user] sys-apps/systemd-239-r2 does not install completely

2018-11-18 Thread Stefan G. Weichinger


upgrading from sys-apps/systemd-236-r5 to 239-r2

the emerge runs through and warns me that it overwrites files ... so it
merges only partially ...

after that I see:

# systemctl --version
systemd 239

(which is OK)


# eix -I systemd

[U] sys-apps/systemd
 Available versions:  239-r2(0/2)

 Installed versions:  236-r5

(which is scary)

How to clean that up?



Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-11-08 Thread Stefan G. Weichinger
Am 07.11.18 um 10:45 schrieb Stefan G. Weichinger:
> Am 07.11.18 um 10:42 schrieb Stefan G. Weichinger:
>> Am 12.09.18 um 10:15 schrieb Stefan G. Weichinger:
>>> Am 12.09.18 um 10:09 schrieb Stefan G. Weichinger:
>>>
>>>> seems I have been cautious so far to keep sys-fs/multipath-tools at
>>>> version 0.5.0-r1 from 2016 
>>>>
>>>> portage would update to stable 0.6.4-r1
>>>>
>>>> and maybe that would help creating /dev/sdX with a newer kernel as
>>>> well (instead of that flapping as mentioned in my other mail before)
>>>
>>> and sys-fs/udev-238 might help as well (currently at 225 on that box ...)
>>
>> Planning and preparing for a new test tomorrow.
>>
>> Swapping a kernel isn't that hard as one can keep and chose the old one
>> again. Updating udev is another thing ;-)
> 
> 
> https://wiki.gentoo.org/wiki/Udev/Upgrade_Guide
> 
> looks as if 225 -> 238 might be no problem at all?
> 
> Anyone using lpfc module with some recommendations around?

udev upgrade was no problem, new kernel booted as well, but again I saw
the FC flapping up and down and no filesystems coming up there.

So I patched the older kernel and went back ... for now our one issue is
solved (enabling ACLs for the filesystems) but 4.1.15 as kernel isn't
quite up to date.

I wonder if that FC adapter would need a firmware update or so. Too
risky anyway, the server is a few 100 kms away etc etc



Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-11-07 Thread Stefan G. Weichinger
Am 07.11.18 um 10:42 schrieb Stefan G. Weichinger:
> Am 12.09.18 um 10:15 schrieb Stefan G. Weichinger:
>> Am 12.09.18 um 10:09 schrieb Stefan G. Weichinger:
>>
>>> seems I have been cautious so far to keep sys-fs/multipath-tools at
>>> version 0.5.0-r1 from 2016 
>>>
>>> portage would update to stable 0.6.4-r1
>>>
>>> and maybe that would help creating /dev/sdX with a newer kernel as
>>> well (instead of that flapping as mentioned in my other mail before)
>>
>> and sys-fs/udev-238 might help as well (currently at 225 on that box ...)
> 
> Planning and preparing for a new test tomorrow.
> 
> Swapping a kernel isn't that hard as one can keep and chose the old one
> again. Updating udev is another thing ;-)


https://wiki.gentoo.org/wiki/Udev/Upgrade_Guide

looks as if 225 -> 238 might be no problem at all?

Anyone using lpfc module with some recommendations around?



Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-11-07 Thread Stefan G. Weichinger
Am 12.09.18 um 10:15 schrieb Stefan G. Weichinger:
> Am 12.09.18 um 10:09 schrieb Stefan G. Weichinger:
> 
>> seems I have been cautious so far to keep sys-fs/multipath-tools at
>> version 0.5.0-r1 from 2016 
>>
>> portage would update to stable 0.6.4-r1
>>
>> and maybe that would help creating /dev/sdX with a newer kernel as
>> well (instead of that flapping as mentioned in my other mail before)
> 
> and sys-fs/udev-238 might help as well (currently at 225 on that box ...)

Planning and preparing for a new test tomorrow.

Swapping a kernel isn't that hard as one can keep and chose the old one
again. Updating udev is another thing ;-)






Re: [gentoo-user] TLSv1.3 with apache?

2018-10-30 Thread Stefan G. Weichinger

Am 30.10.18 um 13:01 schrieb Stefan G. Weichinger:


Is that possible with gentoo already?

Simply adding "SSLProtocol TLSv1.3" to my vhost did not work out here, 
pls point me to some info, thanks ;-)


Ah, I see, only with >=openssl-1.1.1, correct?

I will simply wait




[gentoo-user] TLSv1.3 with apache?

2018-10-30 Thread Stefan G. Weichinger



Is that possible with gentoo already?

Simply adding "SSLProtocol TLSv1.3" to my vhost did not work out here, 
pls point me to some info, thanks ;-)





Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-09-14 Thread Stefan G. Weichinger

Am 12.09.18 um 15:07 schrieb J. Roeleveld:


Bit sooner:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/
dm_multipath/mpio_overview

https://www.thegeekdiary.com/beginners-guide-to-device-mapper-dm-multipathing/


I use multipath from a SAS-controller to a dual-backplane and SAS-disks.
 From the controller, I have 2 paths to each disk, which means I have twice the
amount of "sd?" entries.

==
# multipath -l
35000cca25d8ec910 dm-4 HGST,HUS726040ALS210
size=3.6T features='1 retain_attached_hw_handler' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=0 status=active
| `- 0:0:7:0  sdh 8:112  active undef running
`-+- policy='service-time 0' prio=0 status=enabled
   `- 0:0:20:0 sdt 65:48  active undef running
==
(This is only the first device)

It shows that device "35000cca25d8ec910" is mapped to "sdh" and "sdt".
To use the disk correctly, I need to access "/dev/mapper/35000cca25d8ec910",
which is:
# ls -lsa /dev/mapper/35000cca25d8ec910
0 lrwxrwxrwx 1 root root 7 Sep  4 11:43 /dev/mapper/35000cca25d8ec910 -> ../
dm-4

I have "multipathd" in the "boot" runlevel.

Version info:
# eix -I multipath
[I] sys-fs/multipath-tools
  Available versions:  0.5.0-r1 0.6.4-r1{tbz2} ~0.7.6^t ~0.7.7^t {rbd
systemd KERNEL="linux"}
  Installed versions:  0.6.4-r1{tbz2}(10:51:01 AM 01/23/2018)(-rbd -
systemd)
  Homepage:http://christophe.varoqui.free.fr/
  Description: Device mapper target autoconfig

# uname -a
Linux san1 4.9.76-gentoo-r1-generic #1 SMP Tue Jan 23 12:05:11 CET 2018 x86_64
Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz GenuineIntel GNU/Linux

As for the terms, a LUN is a Logical disk provided by a SAN to a different
system. I have multipath inside my SAN and have a single path to iSCSI
clients. (Single switch with bonded NICs)


thanks for the links etc

To me it seems that the former administrator somehow tried to set that 
up but failed.


This corresponds to something he wrote when leaving the company.

There is no multipathd-daemon enabled or running.

# multipath
Sep 14 08:31:10 | MSA2040_SAMBA_storage: ignoring map
Sep 14 08:31:10 | MSA2040_SAMBA_storage: ignoring map

# multipath -l
#

# ls /dev/mapper/
control


so nothing gets mapped here ;-)

-

# /etc/multipath.conf

defaults {
#  udev_dir/dev
  polling_interval15
#  selector"round-robin 0"
  path_grouping_policygroup_by_prio
  failback5
  path_checkertur
#  prio_callout"/sbin/mpath_prio_tpc /dev/%n"
  rr_min_io   100
  rr_weight   uniform
  no_path_retry   queue
  user_friendly_names yes
}
blacklist {
  devnode cciss
  devnode fd
  devnode hd
  devnode md
  devnode sr
  devnode scd
  devnode st
  devnode ram
  devnode raw
  devnode loop
  devnode sda
  devnode sdb
}

multipaths {
  multipath {
wwid  3600c0ff0001e91b2c1bae2560100
## To find your wwid, please use /usr/bin/sg_vpd --page=di /dev/DEVICE.
## The address will be a 0x6. Remove the 0x and replace it with 3.
alias MSA2040_SAMBA_storage
  }
}


--- I will check docs etc asap
That is a productive server a few 100 kms away from me, so I have to be 
careful.


Users can work, so no hurry here, just interest.





Re: [gentoo-user] logging my activity for audits

2018-09-14 Thread Stefan G. Weichinger



phew, that much feedback, thanks to all!

got to work through this and test things



Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-09-12 Thread Stefan G. Weichinger

Am 12.09.18 um 10:09 schrieb Stefan G. Weichinger:

seems I have been cautious so far to keep sys-fs/multipath-tools at 
version 0.5.0-r1 from 2016 


portage would update to stable 0.6.4-r1

and maybe that would help creating /dev/sdX with a newer kernel as well 
(instead of that flapping as mentioned in my other mail before)


and sys-fs/udev-238 might help as well (currently at 225 on that box ...)





Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-09-12 Thread Stefan G. Weichinger

Am 12.09.18 um 09:43 schrieb Stefan G. Weichinger:


I see a multipath.conf on the system, will try to understand that.


Another thing I just noticed:

seems I have been cautious so far to keep sys-fs/multipath-tools at 
version 0.5.0-r1 from 2016 


portage would update to stable 0.6.4-r1

and maybe that would help creating /dev/sdX with a newer kernel as well 
(instead of that flapping as mentioned in my other mail before)


Does anyone have an opinion here?
Seems I can only test by actually trying it ...

(doing a quickpkg now at first)



Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-09-12 Thread Stefan G. Weichinger

Am 11.09.18 um 12:54 schrieb Mick:


Probably because you need a later version of gcc to compile the newer kernel
with.


I already installed gcc-6.4.0 and 7.3.0 some times ago. These should be 
modern enough?



CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_FS_POSIX_ACL=y

in my kernel ;-)


Have you tried to enable these in the current kernel version and while running
with the same gcc configuration?


Yes, yesterday that failed as well.
But I was able to compile 4.9.95 with the ext4 flags after a "make 
localmodconfig". Maybe this intermediary step does not "break" lpfc 
behavior.


A reboot test will happen on friday or so.


LONG WINDED APPROACH


1. Update your system:

  emerge -uaNDv system

Assuming there are no major blockers which you will need to resolve one at a
time, update your profile, switch your gcc to a newer version and continue
with building a newer kernel.

2. Copy the current kernel's .config file to the latest stable.  Change the /
usr/src/linux/ symlink to point to the latest linux kernel source.  Run 'make
oldconfig' and go through all the changes as required.  Then 'make clean, &&
make && make modules_install' and copy over the bzImage, .config and System
files of the new kernel to /boot.  Leave the old files in /boot intact.
Update grub config and reboot.

3. Assuming all went fine, update your @world.

WARNING:  I would NOT try anything like this on a production system, but use a
cloned fs to do all this work offline.  Once I get something booting
successfully I would then copy over binary packages and update the production
system with them.


SHORTER AND RECOMMENDED WAY
===

There have been many changes with gcc and gentoo profiles since kernel-4.1.15-
gentoo-r1.  This is why I would recommend you reinstall using a stage 3 for an
easier life.  Keep your /etc, kernel .config and /var/lib/portage/world files
from the existing installation, so you have minimal configuration changes to
perform, following reinstallation.  Also keep the old kernel image in /boot in
case you struggle getting a newer kernel to boot immediately.


Thanks for your suggestions, I will consider preparing a new 
stage3-based VM somewhere.


I went through @world-updates some months ago when I started maintaining 
that server.


Most of the system is updated already but you are right, there are 
always hidden issues ... and I should keep downtime and effort/costs low 
--- as always


As soon as I can update that IPMI module it gets easier to test things ;-)

thanks, Stefan





Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-09-12 Thread Stefan G. Weichinger

Am 12.09.18 um 08:42 schrieb J. Roeleveld:

On Tuesday, September 11, 2018 11:48:59 AM CEST Stefan G. Weichinger wrote:

At first I emerged latest stable gentoo-sources, enabled these flags and
compiled ... but the lpfc module didn't detect the SAN devices
correctly, so I switched back to 4.1.15 (mark this as another todo here
... sooner or later I want a more recent kernel working with lpfc ... I
have no clue about multipath so far)


I found multipath quite "simple" to implement when following the documentation
for this.


*which* documentation, please?

with the newer kernel I got:

[  864.521464] lpfc :02:00.1: 1:1303 Link Up Event x7b received
Data: x7b x0 x20 x0 x0 x0 0
[  868.693743] lpfc :02:00.0: 0:1305 Link Down Event x7c received
Data: x7c x20 x80011 x0 x0
[  869.523664] lpfc :02:00.0: 0:1303 Link Up Event x7d received
Data: x7d x0 x20 x0 x0 x0 0
[  873.691535] lpfc :02:00.1: 1:1305 Link Down Event x7c received
Data: x7c x20 x80011 x0 x0
[  874.521185] lpfc :02:00.1: 1:1303 Link Up Event x7d received
Data: x7d x0 x20 x0 x0 x0 0
[  878.694259] lpfc :02:00.0: 0:1305 Link Down Event x7e received
Data: x7e x20 x80011 x0 x0


and no /dev/sdX created for the relevant LUN (is that the term?)

I see a multipath.conf on the system, will try to understand that.




[gentoo-user] logging my activity for audits

2018-09-11 Thread Stefan G. Weichinger



At a customer we were asked to log/protocol all my administrative 
activity for potential audits etc


My admin-work is basically 98% ssh and maybe some additional tasks done 
via virt-manager (logging the work inside the VMs there is another topic 
... I realize that right now).


Is there a recommended way to track the logs? Specific setup for 
syslog-ng or in my case journald?


Maybe I should setup remote syslog here?



Re: [gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-09-11 Thread Stefan G. Weichinger

Am 11.09.18 um 11:48 schrieb Stefan G. Weichinger:


Right now I always get this when I run "make bzImage" (

# make bzImage
   CHK include/config/kernel.release
   CHK include/generated/uapi/linux/version.h
   CHK include/generated/utsrelease.h
   CC  kernel/bounds.s
kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
  /*

make[1]: *** [Kbuild:44: kernel/bounds.s] Error 1
make: *** [Makefile:990: prepare0] Error 2

Why?
Because the gcc has flags enabled?

I googled but klibc-related stuff doesn't seem to apply here.

I am not insisting on hardened profile but want to avoid bigger issues 
when switching profiles without thinking ...



I managed to compile a 4.9.95 after "make localmodconfig". Maybe that 
would help with the other kernels as well.




[gentoo-user] Rebuilding a kernel on a hardened gentoo

2018-09-11 Thread Stefan G. Weichinger



I got the job to admin a gentoo server that was configured and setup by 
a former admin.


No surprise that it is outdated ...

It runs with profile "hardened/linux/amd64" and kernel 4.1.15-gentoo-r1

That kernel does not have the necessary flags enabled to support EXT4 
ACLs ...


At first I emerged latest stable gentoo-sources, enabled these flags and 
compiled ... but the lpfc module didn't detect the SAN devices 
correctly, so I switched back to 4.1.15 (mark this as another todo here 
... sooner or later I want a more recent kernel working with lpfc ... I 
have no clue about multipath so far)


-

Right now I always get this when I run "make bzImage" (

# make bzImage
  CHK include/config/kernel.release
  CHK include/generated/uapi/linux/version.h
  CHK include/generated/utsrelease.h
  CC  kernel/bounds.s
kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
 /*

make[1]: *** [Kbuild:44: kernel/bounds.s] Error 1
make: *** [Makefile:990: prepare0] Error 2

Why?
Because the gcc has flags enabled?

I googled but klibc-related stuff doesn't seem to apply here.

I am not insisting on hardened profile but want to avoid bigger issues 
when switching profiles without thinking ...


-

Basically I only need:

CONFIG_EXT4_FS_SECURITY=y
CONFIG_EXT4_FS_POSIX_ACL=y

in my kernel ;-)

But this leads into these new areas of learning ...

greets, Stefan




Re: [gentoo-user] Backup questions

2018-08-14 Thread Stefan G. Weichinger
Am 09.08.18 um 18:52 schrieb Wols Lists:

> May I suggest using btrfs for your backup drive? 

I like btrbk:

https://github.com/digint/btrbk

I run btrfs as main filesystem on 3 systems (2 laptops, 1 main desktop)
and so far I am not looking back.

-> btrbk snapshots to local subvolumes ("time machine") + pulling btrbk
backups to external disks + btrbk backups to another server.

Works fine for me.

-

Another solution I use at customers:

amanda backups to so-called vtapes, virtual tapes = directories on 2 or
more usb-disks. As soon as you have the setup done, you get rotated
backups to those directories, incrementals and fulls mixed via amanda's
algorithm. OK, a bit of a learning curve, but you won't avoid that anywhere.




[gentoo-user] Samba and PAM: missing /lib64/security/pam_smbpass.so

2018-06-15 Thread Stefan G. Weichinger


While I am at my upgrade, I also see that a PAM library is missing now:

PAM unable to dlopen(/lib64/security/pam_smbpass.so):
/lib64/security/pam_smbpass.so: cannot open shared object file: No such
file or directory

net-fs/samba has been compiled with USE="pam", does someone know where
to get that library from?

# equery f samba | grep smbpa

/usr/bin/smbpasswd
/usr/lib64/samba/libsmbpasswdparser-samba4.so
/usr/share/man/man5/smbpasswd.5.bz2
/usr/share/man/man8/smbpasswd.8.bz2

-> not included right now



[gentoo-user] latest glibc, nsswitch.conf on samba domain members

2018-06-15 Thread Stefan G. Weichinger


glibc-2.26 tells me to edit my nsswitch.conf:

https://wiki.gentoo.org/wiki/Glibc_2.26_porting_notes/nsswitch.conf_in_glibc-2.26

"add files entry"

-

unfortunately this overlaps with an upgrade of a samba-domain-member
server, I got the job to upgrade it from 3.6.25 to a 4.5.x

Now I am unsure how to configure nsswitch.conf, could someone share the
working lines?

passwd:  compat winbind files
group:   compat dns winbind files
shadow:  compat files

?



Re: [gentoo-user] QEMU: windows guest crashing

2018-06-12 Thread Stefan G. Weichinger
Am 2018-06-07 um 09:33 schrieb Stefan G. Weichinger:
> Am 2018-05-30 um 17:06 schrieb Marko Weber:
>> hello,
>>
>> Am 2018-05-30 12:09, schrieb Stefan G. Weichinger:
>>> Am 2018-05-30 um 10:46 schrieb Bill Kenworthy:
>>>> error messages? - I get this happening sometimes from the oom killer
>>>> when the server runs out of memory - semi-random (usually  but not
>>>> always the same vm)
>>>
>>> And the VM itself idles at 1,8 GB RAM used right now.
>>
>> Do you use qemu-guest-agent in the windows vm?
> 
> Hm, I don't know.
> 
>> Have you tried recompiling  qemu, libvirt-* against the actual kernel on
>> the host?
>>
>> maybe /var/log/libvirt/qemu/.log tells something interesting.
> 
> I mentioned the errors in the first posting.
> 
>> in another case it helped here to recompile complete gentoo server.
>>
>> Do you use stable atoms or unstable?
> 
> stable
> 
> libvirt-4.3.0 yesterday, installed that and re-compiled qemu as well
> 
> I also rebuilt spice.
> 
> -
> 
> As far as I see the upstream patch mentioned here:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1575541
> 
> might not yet be included in 4.3.0
> 

same crash again as I accessed the VM via virt-manager

I think this patch is missing:

https://github.com/qemu/qemu/commit/a89fe6c329799e47aaa1663650f076b28808e186

Commented that on:

https://bugs.gentoo.org/656886




Re: [gentoo-user] QEMU: windows guest crashing

2018-06-07 Thread Stefan G. Weichinger
Am 2018-05-30 um 17:06 schrieb Marko Weber:
> hello,
> 
> Am 2018-05-30 12:09, schrieb Stefan G. Weichinger:
>> Am 2018-05-30 um 10:46 schrieb Bill Kenworthy:
>>> error messages? - I get this happening sometimes from the oom killer
>>> when the server runs out of memory - semi-random (usually  but not
>>> always the same vm)
>>
>> And the VM itself idles at 1,8 GB RAM used right now.
> 
> Do you use qemu-guest-agent in the windows vm?

Hm, I don't know.

> Have you tried recompiling  qemu, libvirt-* against the actual kernel on
> the host?
> 
> maybe /var/log/libvirt/qemu/.log tells something interesting.

I mentioned the errors in the first posting.

> in another case it helped here to recompile complete gentoo server.
> 
> Do you use stable atoms or unstable?

stable

libvirt-4.3.0 yesterday, installed that and re-compiled qemu as well

I also rebuilt spice.

-

As far as I see the upstream patch mentioned here:

https://bugzilla.redhat.com/show_bug.cgi?id=1575541

might not yet be included in 4.3.0



Re: [gentoo-user] QEMU: windows guest crashing

2018-05-30 Thread Stefan G. Weichinger
Am 2018-05-30 um 10:46 schrieb Bill Kenworthy:
> error messages? - I get this happening sometimes from the oom killer
> when the server runs out of memory - semi-random (usually  but not
> always the same vm)

And the VM itself idles at 1,8 GB RAM used right now.





Re: [gentoo-user] QEMU: windows guest crashing

2018-05-30 Thread Stefan G. Weichinger
Am 2018-05-30 um 10:46 schrieb Bill Kenworthy:
> On 30/05/18 15:52, Stefan G. Weichinger wrote:
>> maybe someone has hit that as well:
>>
>> https://bugs.gentoo.org/656886
>>
>> bug report at redhat is from yesterday (!)
>>
>> -
>>
>> That windows guest is shutting down and/or crashing now and then.
>> Same QEMU/libvirt combo at another site runs >20 VMs without problems.
>>
>> I'd be happy to find some workaround or fix as it is a bit problematic
>> to have the customer email every few days that his server VM is down.
>> Gives bad reputation ...
>>
>> If helpful I will post VM.xml etc
>>
>> Stefan
>>
> error messages? - I get this happening sometimes from the oom killer
> when the server runs out of memory - semi-random (usually  but not
> always the same vm)

I mentioned the libvirt error message in the bug report.
What else is interesting?

The gentoo host has 16 GB RAM, and the single VM is configured with 8
gigs ... so that looks ok to me.

host # free -m
  totalusedfree  shared  buff/cache
available
Mem:  1601584963138   54379
  7261
Swap:  8191  108181






[gentoo-user] QEMU: windows guest crashing

2018-05-30 Thread Stefan G. Weichinger
maybe someone has hit that as well:

https://bugs.gentoo.org/656886

bug report at redhat is from yesterday (!)

-

That windows guest is shutting down and/or crashing now and then.
Same QEMU/libvirt combo at another site runs >20 VMs without problems.

I'd be happy to find some workaround or fix as it is a bit problematic
to have the customer email every few days that his server VM is down.
Gives bad reputation ...

If helpful I will post VM.xml etc

Stefan



[gentoo-user] net-fs/samba: USE-flags for domain member server

2018-01-24 Thread Stefan G. Weichinger

I am running a gentoo server with net-fs/samba-4.6.12 as domain member
server in an Active Directory domain with 2 Debian 9.3 servers running
samba-4.6.12 as well.

We see issues like all the smbd-sessions stopping to work and I am
trying to find the reason.

What USE-flags do you gentoo-users use for domain member servers?

I wonder if this is still OK:

# from "equery u":
acl ads gnutls ldap pam python_targets_python2_7 system-mitkrb5  systemd
winbind

# cat package.use.samba
net-fs/samba ads ldap winbind gnutls



Re: [gentoo-user] New profile 17: How urgent is the rebuild of world technically?

2017-12-05 Thread Stefan G. Weichinger
Am 2017-12-04 um 21:21 schrieb Michael Orlitzky:

> Once the profile is deprecated (not yet), you've got six months.
> 
> Keep in mind that a profile isn't actually all that complicated. It
> consists mainly of a few small text files, and can likely be copied
> locally just like you would with an ebuild.
> 
> You also aren't required to rebuild everything right now (although you
> should, to get the PIE/SSP protection!). You can pause your "emerge -e
> @world" at any point, and resume it during off-hours or a slow period.
> So long as you don't need to build anything else in the meantime, you
> can take as long as you want.

This is helpful information, thanks, I can relax now ;-)




Re: [gentoo-user] New profile 17: How urgent is the rebuild of world technically?

2017-12-04 Thread Stefan G. Weichinger
On 12/03/2017 03:30 AM, Michael Orlitzky wrote:

> However, you can delay switching to the new profile for a while.

For how long?

eselect news item tells me:

"Please migrate away from the 13.0 profiles within the six weeks after
GCC 6.4.0 has been stabilized on your architecture. The 13.0 profiles
will be deprecated then and removed in half a year."

As I see it gcc-6.4.0 is stable for amd64 already.

I have a number of servers out there running profile 13.0, having to
rebuild all their packages within the next 6 weeks has to be planned
somehow and needs time and thought IMO.





Re: [gentoo-user] gentoo on SSD

2017-09-27 Thread Stefan G. Weichinger


aside from that you might want to specify a different IO scheduler for 
the SSD, I do that via udev rules like:


# 60-sched.rules
# set deadline scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", 
ATTR{queue/scheduler}="deadline"


# set cfq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", 
ATTR{queue/scheduler}="cfq"


-

and I have a systemd-timer for running fstrim now and then



Re: [gentoo-user] Wayland - too early to try?

2017-07-11 Thread Stefan G. Weichinger
Am 2017-07-11 um 13:37 schrieb Rasmus Thomsen:
> Hello,
> 
> I use GNOME with Wayland for some time and I actually didn't notice that
> I switched until I tried to get synergy working ( mouse sharing
> software, which only works on X ), seems like GDM automatically chose
> Wayland since some upgrade.

just another note: TeamViewer also didn't work for me with Wayland.




Re: [gentoo-user] Samba patching?

2017-05-29 Thread Stefan G. Weichinger
Am 2017-05-29 um 22:36 schrieb Mart Raudsepp:
> Ühel kenal päeval, E, 29.05.2017 kell 22:12, kirjutas Stefan G.
> Weichinger:
>> how do we gentoo-users handle CVE-2017-7494 ?
> 
> You upgrade to the version including the fix. 4.5.10, that is.
> https://bugs.gentoo.org/show_bug.cgi?id=CVE-2017-7494

thanks for the pointer




[gentoo-user] Samba patching?

2017-05-29 Thread Stefan G. Weichinger

how do we gentoo-users handle CVE-2017-7494 ?



Re: [gentoo-user] sg_map etc

2017-03-02 Thread Stefan G. Weichinger
Am 2017-03-02 um 13:41 schrieb Bill Kenworthy:

> try lshw to get that info:


we had that already in the other leg of the thread

doesn't work for me:

# lshw -c disk
  *-disk:0
   description: SCSI Disk
   physical id: 0.0.0
   bus info: scsi@1:0.0.0
   logical name: /dev/sda
   size: 68GiB (73GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512 signature=00047c2f
  *-disk:1
   description: SCSI Disk
   physical id: 0.1.0
   bus info: scsi@1:0.1.0
   logical name: /dev/sdb
   size: 68GiB (73GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512 signature=f31b
  *-disk:2
   description: SCSI Disk
   physical id: 0.2.0
   bus info: scsi@1:0.2.0
   logical name: /dev/sdc
   size: 697GiB (749GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512
  *-disk:3
   description: SCSI Disk
   physical id: 0.3.0
   bus info: scsi@1:0.3.0
   logical name: /dev/sdd
   size: 697GiB (749GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512
  *-disk:4
   description: SCSI Disk
   physical id: 0.4.0
   bus info: scsi@1:0.4.0
   logical name: /dev/sde
   size: 697GiB (749GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512
  *-disk:5
   description: SCSI Disk
   physical id: 0.5.0
   bus info: scsi@1:0.5.0
   logical name: /dev/sdf
   size: 697GiB (749GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512
  *-disk:6
   description: SCSI Disk
   physical id: 0.6.0
   bus info: scsi@1:0.6.0
   logical name: /dev/sdg
   size: 697GiB (749GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512
  *-disk:7
   description: SCSI Disk
   physical id: 0.8.0
   bus info: scsi@1:0.8.0
   logical name: /dev/sdh
   size: 697GiB (749GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512
  *-disk:8
   description: SCSI Disk
   physical id: 0.c.0
   bus info: scsi@1:0.12.0
   logical name: /dev/sdi
   size: 697GiB (749GB)
   capabilities: partitioned partitioned:dos
   configuration: sectorsize=512
  *-disk:9 UNCLAIMED
   description: SCSI Disk
   physical id: 1.0.0
   bus info: scsi@1:1.0.0
  *-disk:10 UNCLAIMED
   description: SCSI Disk
   physical id: 1.1.0
   bus info: scsi@1:1.1.0
  *-disk:11 UNCLAIMED
   description: SCSI Disk
   physical id: 1.3.0
   bus info: scsi@1:1.3.0
  *-disk:12 UNCLAIMED
   description: SCSI Disk
   physical id: 1.4.0
   bus info: scsi@1:1.4.0
  *-disk:13 UNCLAIMED
   description: SCSI Disk
   physical id: 1.5.0
   bus info: scsi@1:1.5.0
  *-disk:14 UNCLAIMED
   description: SCSI Disk
   physical id: 1.6.0
   bus info: scsi@1:1.6.0
  *-disk:15 UNCLAIMED
   description: SCSI Disk
   physical id: 1.7.0
   bus info: scsi@1:1.7.0
  *-disk:16 UNCLAIMED
   description: SCSI Disk
   physical id: 1.9.0
   bus info: scsi@1:1.9.0
  *-disk:17 UNCLAIMED
   description: SCSI Disk
   physical id: 1.a.0
   bus info: scsi@1:1.10.0
  *-disk:18 UNCLAIMED
   description: SCSI Disk
   physical id: 1.b.0
   bus info: scsi@1:1.11.0
  *-disk:19 UNCLAIMED
   description: SCSI Disk
   physical id: 1.f.0
   bus info: scsi@1:1.15.0




Re: [gentoo-user] sg_map etc

2017-03-02 Thread Stefan G. Weichinger
Am 2017-03-01 um 22:42 schrieb Daniel Frey:

> I'm not sure how the sg? -> sd? mapping is supposed to work. I find it
> odd that there seems to be two nodes reported for each sd? entry.
> However, this could be the way the controller driver reports it to the
> kernel...
> 
>> 07:01.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030
>> PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 08)
>> 0a:0e.0 RAID bus controller: Adaptec AAC-RAID
>>
> 
> Well, if you are using a hw raid card in jbod mode the controller will
> generally not report that info. You'd have to install the controller's
> cli management tools and use that. You'd have to figure out which
> controller your drives are attached to.
> 
> Adaptec uses sys-block/arcconf
> LSI uses sys-block/megacli
> 3ware uses sys-block/tw_cli

yes, thanks.
arcconf doesn't do much here ... tried some commands, but the controller
doesn't return info.

Maybe not the disks itself die but the controller gets flaky ... quite
old already and I had issues at warm boot lately that were only solved
by removing power completely.

See these lines in dmesg:

[74403.796012] aacraid: Host adapter abort request (1,0,0,0)
[74403.804011] aacraid: Host adapter abort request (1,0,1,0)
[74403.804033] aacraid: Host adapter reset request. SCSI hang ?
[74403.804040] AAC: Host adapter BLINK LED 0x7
[74403.804056] AAC0: adapter kernel panic'd 7.
[74509.788015] aacraid: Host adapter abort request (1,0,0,0)
[74511.804015] aacraid: Host adapter abort request (1,0,1,0)
[74511.804041] aacraid: Host adapter reset request. SCSI hang ?
[74511.804044] AAC: Host adapter BLINK LED 0x7
[74511.804068] AAC0: adapter kernel panic'd 7.

And sdi throws errors:

[31529.901711] md/raid:md3: read error corrected (8 sectors at 11190152
on sdi1)
[31529.901713] md/raid:md3: read error corrected (8 sectors at 11190160
on sdi1)
[31529.901715] md/raid:md3: read error corrected (8 sectors at 11190168
on sdi1)
[31529.901717] md/raid:md3: read error corrected (8 sectors at 11190176
on sdi1)
[31529.901718] md/raid:md3: read error corrected (8 sectors at 11190184
on sdi1)

I wonder if one or more disks do any kind of electrical "noise" on the
SATA bus and confuse the controller in a way.

This is why I would like to remove sdi ... and the reason why I want to
spot that specific hdd.

Back then I used the trick to stress that specific disk by dd or
something (read everything in for example) and let a person spot the
disk by looking at the LEDs on the drive cages ;-)

Maybe the faster way in this case.

> The management tools for the other cards should provide this sort of
> functionality.
> 
> If you had used the raid card to create an array the management cli
> tools with show that a specific port is dead and you query it for the
> serial number.
> 
> This doesn't help you with the sg mapping. The problem for you now will
> be figuring out why sg_map is reporting the way it is.

The disks were originally configured via StorMan under SLES10 or so,
that server was a SLES server back then and I moved it to gentoo later on.

I could boot into SLES to have StorMan again, but this leads to the
mentioned boot-failure, so I want to avoid that for now.

Something is wrong with this box and I have to spot if it's the disk(s)
or the controller. All this while I am >600km away from the server.

Thanks, Stefan




Re: [gentoo-user] sg_map etc

2017-03-02 Thread Stefan G. Weichinger
Am 2017-03-01 um 23:21 schrieb Bill Kenworthy:

> Is there actually a disk on that interface? - I have a system where one
> sdx allocated to an unused sata port with nothing attached - it returns
> similar information to yours above - check the other entries.

I checked them, sure.
to me it seems that there are 2 sg-devices created per port or so.

One as ICP-device: does not tell me serials or so, but has an sd-device
mapped to it according to sg_map

# smartctl -d auto -i /dev/sg2
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:   ICP
Product:  SAS1
Revision: V1.0
User Capacity:73,284,976,640 bytes [73.2 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more
'-T permissive' options.

---

and the higher ones tell me stuff via smartctl, but I don't know exactly
which sd-device they are mapped to:


# smartctl -d auto -i /dev/sg11
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:   SEAGATE
Product:  ST373455SS
Revision: 0002
User Capacity:73,407,868,928 bytes [73.4 GB]
Logical block size:   512 bytes
Rotation Rate:15015 rpm
Logical Unit id:  0x5000c50002448407
Serial number:3LQ11JWH9748U10J
Device type:  disk
Transport protocol:   SAS (SPL-3)
Local Time is:Thu Mar  2 11:06:33 2017 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning:  Enabled

---


btw: the serial in this query is a valid one.
This is what I am looking for.




Re: [gentoo-user] sg_map etc

2017-03-01 Thread Stefan G. Weichinger
Am 2017-03-01 um 16:49 schrieb Daniel Frey:

>> Have you tried `lsblk -O`?
>>
>> Dan
>>
> 
> Well, I forgot how much info that barfs out.
> 
> Try `lsblk -o name,model,serial` instead.

nice one, thanks.
But the shown serials don't match the serials on the disk(s) :-(

I also tried "-O" and searched for them.

It seems that the controller adds some extra layer or something.
The vendor is shown as "ICP" (wrong in a way), I see partitions and so
(looks good).

I have a list containing the actual vendors/serials on the physical
labels, and the order in the physical slots, plus which label matches
which /dev/sgX

*but* the map between sg- and sd-devices isn't correct IMO.

This is really a pita because I never can tell exactly which physical
disk failed, I only see "ah, sdi1 was kicked out of the array" but then
the search starts 




Re: [gentoo-user] sg_map etc

2017-03-01 Thread Stefan G. Weichinger
Am 2017-03-01 um 15:42 schrieb Neil Bothwick:

> Never hurts to try the low hanging fruit first :)
> 
> Have you tried lshw?

did so right now:



 *-disk:2
  description: SCSI Disk
  physical id: 0.2.0
  bus info: scsi@1:0.2.0
  logical name: /dev/sdc
  size: 697GiB (749GB)
  capabilities: partitioned partitioned:dos
  configuration: sectorsize=512
*-volume
 description: Linux raid autodetect partition
 physical id: 1
 bus info: scsi@1:0.2.0,1
 logical name: /dev/sdc1
 capacity: 697GiB
 capabilities: primary multi


no clear connection between /dev/sdX and any hw-serial number




Re: [gentoo-user] sg_map etc

2017-03-01 Thread Stefan G. Weichinger
Am 2017-03-01 um 14:39 schrieb Neil Bothwick:
> On Wed, 1 Mar 2017 14:04:45 +0100, Stefan G. Weichinger wrote:
> 
>> and I would like to know which hard disk (vendor, serial) each
>> /dev/sdX is.
> 
> hdparm -i /dev/sdX


# hdparm -i /dev/sdi

/dev/sdi:
SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00
00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 HDIO_GET_IDENTITY failed: Inappropriate ioctl for device

that one would have been too easy ;-)


maybe also helpful:


# lspci
00:00.0 Host bridge: Intel Corporation 5000P Chipset Memory Controller
Hub (rev b1)
00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express
x8 Port 2-3 (rev b1)
00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express
x8 Port 4-5 (rev b1)
00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express
x8 Port 6-7 (rev b1)
00:08.0 System peripheral: Intel Corporation 5000 Series Chipset DMA
Engine (rev b1)
00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB
Registers (rev b1)
00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB
Registers (rev b1)
00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB
Registers (rev b1)
00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved
Registers (rev b1)
00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved
Registers (rev b1)
00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD
Registers (rev b1)
00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD
Registers (rev b1)
00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI
Express Root Port 1 (rev 09)
00:1d.0 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset
UHCI USB Controller #1 (rev 09)
00:1d.1 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset
UHCI USB Controller #2 (rev 09)
00:1d.2 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset
UHCI USB Controller #3 (rev 09)
00:1d.7 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset
EHCI USB2 Controller (rev 09)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC
Interface Controller (rev 09)
00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE
Controller (rev 09)
00:1f.3 SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus
Controller (rev 09)
01:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express
Upstream Port (rev 01)
01:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to
PCI-X Bridge (rev 01)
02:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express
Downstream Port E1 (rev 01)
02:02.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express
Downstream Port E3 (rev 01)
03:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI
Bridge A (rev 09)
03:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI
Bridge B (rev 09)
06:00.0 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit
Ethernet Controller (Copper) (rev 01)
06:00.1 Ethernet controller: Intel Corporation 80003ES2LAN Gigabit
Ethernet Controller (Copper) (rev 01)
07:01.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030
PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 08)
09:00.0 PCI bridge: Intel Corporation 80333 Segment-A PCIe Express to
PCI-X bridge
09:00.2 PCI bridge: Intel Corporation 80333 Segment-B PCIe Express to
PCI-X bridge
0a:0e.0 RAID bus controller: Adaptec AAC-RAID
0d:01.0 VGA compatible controller: Advanced Micro Devices, Inc.
[AMD/ATI] ES1000 (rev 02)



[gentoo-user] sg_map etc

2017-03-01 Thread Stefan G. Weichinger

could someone help me out?

I have this software-raid:

md3 : active raid6 sdi1[8] sdh1[6] sdg1[4] sdf1[5] sde1[3] sdd1[2] sdc1[0]
  4391334912 blocks level 6, 64k chunk, algorithm 2 [8/6] [U_U_]
  [>]  recovery = 22.8% (167386900/731889152)
finish=196.6min speed=47837K/sec

and I would like to know which hard disk (vendor, serial) each /dev/sdX is.

(I have to tell the remote admin which physical disk to remove from the
server, and there are disks in the server which aren't part of the RAID yet)

Found sg_map and sg_scan:


# sg_map
/dev/sg0  /dev/nst0
/dev/sg1
/dev/sg2  /dev/sda
/dev/sg3  /dev/sdb
/dev/sg4  /dev/sdc
/dev/sg5  /dev/sdd
/dev/sg6  /dev/sde
/dev/sg7  /dev/sdf
/dev/sg8  /dev/sdg
/dev/sg9  /dev/sdh
/dev/sg10  /dev/sdi
/dev/sg11
/dev/sg12
/dev/sg13
/dev/sg14
/dev/sg15
/dev/sg16
/dev/sg17
/dev/sg18
/dev/sg19
/dev/sg20
/dev/sg21

--

The crux:

It seems I get two sg-devices per physical disk:

sda = sg2 = sg11 ...

sg11 is shown as SEAGATE, sg2 as ICP

(tried -d scsi and -d sat as well)

and I only get useful info from the sg-devices >10

->


# smartctl -d auto -i /dev/sg11
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:   SEAGATE
Product:  ST373455SS
Revision: 0002
User Capacity:73,407,868,928 bytes [73.4 GB]
Logical block size:   512 bytes
Rotation Rate:15015 rpm
Logical Unit id:  0x5000c50002448407
Serial number:3LQ11JWH9748U10J
Device type:  disk
Transport protocol:   SAS (SPL-3)
Local Time is:Wed Mar  1 15:51:28 2017 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning:  Enabled

juno ~ # smartctl -d auto -i /dev/sg2
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:   ICP
Product:  SAS1
Revision: V1.0
User Capacity:73,284,976,640 bytes [73.2 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more
'-T permissive' options.
juno ~ # smartctl -d auto -i /dev/sda
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:   ICP
Product:  SAS1
Revision: V1.0
User Capacity:73,284,976,640 bytes [73.2 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more
'-T permissive' options.


//



# sg_scan -iv
/dev/sg0: scsi0 channel=0 id=1 lun=0
HPUltrium 4-SCSIB12H [rmb=1 cmdq=1 pqual=0 pdev=0x1]
/dev/sg1: scsi0 channel=0 id=1 lun=1
OVERLAND  NEO Series0510 [rmb=1 cmdq=1 pqual=0 pdev=0x8]
/dev/sg2: scsi1 channel=0 id=0 lun=0 [em]
ICP   SAS1  V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg3: scsi1 channel=0 id=1 lun=0 [em]
ICP   SAS2  V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg4: scsi1 channel=0 id=2 lun=0 [em]
ICP   Device 2  V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg5: scsi1 channel=0 id=3 lun=0 [em]
ICP   Device 3  V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg6: scsi1 channel=0 id=4 lun=0 [em]
ICP   Device 4  V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg7: scsi1 channel=0 id=5 lun=0 [em]
ICP   Device 5  V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg8: scsi1 channel=0 id=6 lun=0 [em]
ICP   Device 6  V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg9: scsi1 channel=0 id=8 lun=0 [em]
ICP   Device 8  V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg10: scsi1 channel=0 id=12 lun=0 [em]
ICP   Device 12 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg11: scsi1 channel=1 id=0 lun=0 [em]
SEAGATE   ST373455SS0002 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg12: scsi1 channel=1 id=1 lun=0 [em]
SEAGATE   ST373455SS0002 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg13: scsi1 channel=1 id=3 lun=0 [em]
WDC   WD7500AZEX-00RKK  0A80 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg14: scsi1 channel=1 id=4 lun=0 [em]
WDC   WD7500AZEX-00RKK  0A80 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg15: scsi1 channel=1 id=5 lun=0 

Re: [gentoo-user] Firefox : tab grouping

2017-02-11 Thread Stefan G. Weichinger
Am 2017-02-10 um 00:32 schrieb Dale:

> That wouldn't handle the number of open tabs I have here.  Not even
> close.  There are times where I have close to and even exceeding 200
> tabs open.  I use the group add-on to sort them into groups.  Depending
> on what I'm into at the time, or looking for, I go to the group that
> should have it.

Additional hint for excessive tab users:

http://add0n.com/tab-suspender.html




Re: [gentoo-user] gentoo portage on github - using fork as local overlay

2017-01-14 Thread Stefan G. Weichinger

Am 2017-01-14 um 20:00 schrieb Alarig Le Lay:


[stefangweichinger-gentoo]
location = /usr/local/portage
masters = gentoo
sync-type = git
sync-uri = https://github.com/stefangweichinger/gentoo.git
auto-sync = no




I think you have a publickey specified for your repo to push on it. A
simple workaround could be to use the directory where you cloned your
repository instead of github.


ok, so just remove those lines with "sync-" above.
This means I have to fetch/pull manually but that isn't any problem.

thanks




[gentoo-user] gentoo portage on github - using fork as local overlay

2017-01-14 Thread Stefan G. Weichinger


I recently suggested ebuilds on bugs.gentoo.org and was advised to 
generate a PR (=pull request) against the gentoo portage repo on github:


https://github.com/gentoo/gentoo

ok, I forked that repo, did my changes within a local copy (clone) of my 
repo .. etc etc


So far I understand things, OK, I have to figure out how to use branches 
for separate packages ... but I am on my way ;-)


What I didn't yet find on Gentoo Wiki etc:

I would like to have my ongoing work (which is tracked inside my own 
fork of the gentoo portage tree) in, say, /usr/local/portage and be able 
to install packages either from the official portage tree or my own overlay.


I created files like this:

# /etc/portage/repos.conf/local.conf

[stefangweichinger-gentoo]
location = /usr/local/portage
masters = gentoo
sync-type = git
sync-uri = https://github.com/stefangweichinger/gentoo.git
auto-sync = no

... but that always gave me permission issues

$ emaint sync -r stefangweichinger-gentoo
>>> Syncing repository 'stefangweichinger-gentoo' into 
'/usr/local/portage'...

/usr/bin/git pull
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
!!! git pull error in /usr/local/portage

could someone show me an example and maybe even explain the workflow?



Re: [gentoo-user] samba as AD DC on gentoo

2017-01-05 Thread Stefan G. Weichinger
Am 2017-01-05 um 07:42 schrieb J. Roeleveld:
>> I am still using using samba3 for my NAS.
>> Samba4 has been planned for a while, but with it wanting it's own LDAP and
>> tree layout, I have a few more things to organise.
>>
>> Other projects keep getting a higher priority.
> 
> Scratch that.
> I am actually using Samba 4.2.11, but using the same config as I did with 
> Samba-3.

You don't need to change your priorities: as I found out yesterday night
samba-4.x is not yet ready to provide AD-DC services on gentoo.

I found out while researching another issue related to smbclient and
german umlauts (popping up when I run backups with amanda).

I wrote to the samba- and the amanda-users-ml, and bgo:

https://bugs.gentoo.org/show_bug.cgi?id=593486

tl;dr ::

* samba in portage is quite old, 4.2.x is EOL upstream (4.6.rc1 released
already upstream)

* samba in portage does not yet provide the bundled heimdal version that
upstream samba works with (in terms of AD-DC services, other stuff works
with mit-krb5 as well).

* there's a test ebuild which uses that internal heimdal-version, see
Comment 9 in the mentioned bug.

But to me that is too unstable and risky to move a whole Windows domain
to already.



[gentoo-user] samba as AD DC on gentoo

2017-01-04 Thread Stefan G. Weichinger

Do people here run samba-4.x AD DCs on gentoo?

If yes, pls let me know of any traps or so.
Yes, I read the wiki ;-)

I currently prepare the migration of an old NT4-based domain (on a
samba-PDC, gentoo) to AD (other physical box, gentoo as well).

Did something similar last week (but with debian involved) and learned a
whole lot.

As there is no step back as soon as the Windows clients talked to the
AD-DC I prefer to know as much as I can in advance.

Thanks, regards, Stefan





Re: [gentoo-user] UDEV rule problem

2016-11-14 Thread Stefan G. Weichinger

Am 2016-11-14 um 15:31 schrieb Helmut Jarausch:

Hi,

I have two external USB3 hard disk enclosures. They have the same 
vendor, model and the same serial number (unfortunately).

Vendor, model and serial occur in the usb-subsystem only.

Since the hard drives within theses enclosures have different 
capacities, there is a different ATTR{size} value in the block-subsystem.

But this doesn't have any vendor info.

How can I write to different udev rules to distinguish these two 
external hard disks? 


It's not udev, but why not use the UUIDs of the filesystems?

# ls -l /dev/disk/by-uuid

and then for example in /etc/fstab

UUID=028da5ef-4e73-405a-b739-d59204c54921 /mnt/externaldisk1 ext4 
relatime,noauto,user 0 1
UUID=fae458a3-da30-43c5-81f1-be2d49215b09 /mnt/externaldisk2 ext4 
relatime,noauto,user 0 1


just a suggestion, I don't know your specific use-case




Re: [gentoo-user] Keep alive within SSH session

2016-07-19 Thread Stefan G. Weichinger

Am 2016-07-17 um 16:02 schrieb Mick:


If I continue to run (router) commands on the terminal, while the debugging is
running, the SSH time out is postponed.

What do you suggest I try on an SSH terminal from my PC to keep running
recurring commands after I have connected to the router?  I will need to keep
a debugging session going for some hours, in order to collect the data I'm
after.


one more suggestion:

autossh




Re: [gentoo-user] gnome 3 and wifi credentials

2016-06-22 Thread Stefan G. Weichinger

Am 2016-06-22 um 20:42 schrieb Canek Peláez Valdés:


Stefan, could you please show us the contents of
/etc/NetworkManager/NetworkManager.conf? In the early stages of
systemd's integration in Gentoo, it was necessary to disable some
plugins that tried to set /etc/conf.d/network as configuration file
for NetworkManager. I don't know if it's related to your system
connections not appearing in /etc/NetworkManager/system-connections.


may I tell you a secret?
The laptops run fedora :-P

if you still listen: the NetworkManager.conf contains only commented lines.




Re: [gentoo-user] gnome 3 and wifi credentials

2016-06-22 Thread Stefan G. Weichinger

Am 2016-06-22 um 06:50 schrieb J. García:


Apparently they are stored in the gnome-keyring if you set up the
conection to
'Store the password for this user' when using nm-applet, but stored in
/etc/NewtorkManager/system-connections/ as plain text when you select
'all
users may connect to this network' (I don't know the exact options
name, I'm
using networkd, so I couldn't check) but look at this[1]
I guess there should be a way to backup and restore the gnome-keyring.

[1] https://wiki.archlinux.org/index.php/NetworkManager#Encrypted_Wi-Fi
_passwords


added one ESSID today, with "share with others" (or similar, german 
here) ... nothing in /etc/NetworkManager/system-connections


If I open my keyring-application I can't see any SSIDs/PSKs.

What ever. I can re-add them step by step.

Ah, nm-connection-editor shows them!
But which files does it read/write?

using Neil's suggestion with the "find -newer" ...

/home/sgw/.local/share/keyrings/user.keystore looks suspicious.

I will backup that one and sync it over from another laptop.

Is that what they call "hacking" already? :-P




Re: [gentoo-user] gnome 3 and wifi credentials

2016-06-21 Thread Stefan G. Weichinger
Am 2016-06-21 um 23:03 schrieb Canek Peláez Valdés:

> Go to the network settings, and set the wireless connection as "shared
> with other users". Then it will appear in
> /etc/NetworkManager/system-connections.
> 
> If you don't want to share the connection with other users, do something like
> 
> find $HOME/.config -name "*ESSID*"
> 
> where ESSID is the ESSID you are interested in. The prefix '*' is
> because a while ago NM added the name "Auto" to all wireless networks
> that were set to automatically connect. If ~/.config does not work,
> use ~/.local (I don't have my laptop with me, so I cannot check which
> one it is).

not found in both .config or .local, sorry ;-)

I'd love to simply rsync $that_one_subdir to the new system and be done.

thanks, Stefan




Re: [gentoo-user] gnome 3 and wifi credentials

2016-06-21 Thread Stefan G. Weichinger
Am 2016-06-21 um 12:05 schrieb Tom H:
> On Tue, Jun 21, 2016 at 3:57 AM, Stefan G. Weichinger <li...@xunil.at> wrote:
>>
>> Does anyone have a pointer to where Gnome 3 (3.20 in my case) stores my
>> wifi credentials?
>>
>> I would love to sync that over to my new laptop without re-entering PSKs
>> at customers.
> 
> Unless Gnome changes the default (which I doubt), it's
> 
> /etc/NetworkManager/system-connections/

I had found that info as well, but that directory is simply *empty* on
my laptops. So there has to be something in $home somewhere.

gnome-keyring?

I could simply rsync all dotfiles/directories in $home .. but that is
not cool and puts cruft onto the new system.




[gentoo-user] gnome 3 and wifi credentials

2016-06-21 Thread Stefan G. Weichinger

Does anyone have a pointer to where Gnome 3 (3.20 in my case) stores my
wifi credentials?

I would love to sync that over to my new laptop without re-entering PSKs
at customers.





Re: [gentoo-user] owncloud 9.0.1 - calendars missing

2016-05-10 Thread Stefan G. Weichinger
Am 2016-05-10 um 14:30 schrieb Stefan G. Weichinger:
> 
> did someone else hit this:
> 
> https://github.com/owncloud/core/pull/23480
> 
> https://github.com/owncloud/core/issues/22988
> 
> I am fiddling with 9.0.1 now to fix the calendars without downgrade :-(
> 
> anyone fixed this for gentoo already??

had to use the "dav" app from 9.0.2 to fix things

see https://bugs.gentoo.org/show_bug.cgi?id=582252





[gentoo-user] owncloud 9.0.1 - calendars missing

2016-05-10 Thread Stefan G. Weichinger

did someone else hit this:

https://github.com/owncloud/core/pull/23480

https://github.com/owncloud/core/issues/22988

I am fiddling with 9.0.1 now to fix the calendars without downgrade :-(

anyone fixed this for gentoo already??



[gentoo-user] unstable samba-4.x, NT4 style domain

2016-03-22 Thread Stefan G. Weichinger

Yesterday I hit samba bug id 11538 at a customer.

https://bugzilla.samba.org/show_bug.cgi?id=11538

We still run stable samba-3.6.25 on gentoo there, with a basic NT4-style
domain. Simple use case, just users/passwords, no logon scripts, no
server based profiles ...

Now I consider upgrading to samba-4.2.9 (~amd64) to maybe get around
that bug and in general improve support and compatibility with more
recent versions of MS Windows (first w10 clients coming up ...).

Does anyone in here has done that, how clever is it to stay with
NT4-domain in combo with samba-4.x ?

I just want to keep the steps small, I understand that an AD-based
domain will be the way sooner or later.

Any stability or performance issues with samba-4.2.9 in gentoo?

Thanks for any feedback on this, Stefan



Re: [gentoo-user] OT: i7-6700, anyone already?

2016-01-04 Thread Stefan G. Weichinger
On 12/30/2015 11:16 PM, Stefan G. Weichinger wrote:

> right now gcc rebuilds itself, some more packages to re-emerge, load at
> around 7.5, system usable, audio stream without a hickup.

# genlop -t thunderbird

 * mail-client/thunderbird
   Mon Jan  4 22:55:49 2016 >>> mail-client/thunderbird-38.5.0
   merge time: 10 minutes and 36 seconds.

with gcc-5.3.0 and USE="jit"

acceptable?




Re: [gentoo-user] Re: Gcc 5.3

2016-01-01 Thread Stefan G. Weichinger
On 12/26/2015 06:44 AM, Paul Colquhoun wrote:

> Yes, using gcc-5.3.0 to recompile 5.3.0 with +jit worked.

Doing the same right now.

Does JIT make any difference yet when I recompile something with a
JIT-enabled gcc? Does any code in current gentoo actually use that already?





Re: [gentoo-user] OT: i7-6700, anyone already?

2015-12-30 Thread Stefan G. Weichinger
On 12/15/2015 03:02 PM, Stefan G. Weichinger wrote:
> Am 2015-12-13 um 13:05 schrieb Stefan G. Weichinger:
>> Am 2015-12-13 um 12:50 schrieb Stefan G. Weichinger:
>>> If I pull the mouse down to the bottom of the screen the desktop snaps
>>> into correct place.

For the records and ml-archives:

a later kernel (I am on git-sources now) solved the problem with Gnome
in gentoo.

Right now I am at a complete re-emerge (yes, with portage-tmpdir in RAM)
to get everything performing well.

Ordered plus 8 GB of DDR-RAM just in case ;-)

I am still on stable amd64 right now as I would like to have that box
rather maintenance-free (or at least "low maintenance").

Would using gcc-5.x make a noticeable difference?






Re: [gentoo-user] OT: i7-6700, anyone already?

2015-12-30 Thread Stefan G. Weichinger
On 12/30/2015 08:00 PM, Stefan G. Weichinger wrote:

> Would using gcc-5.x make a noticeable difference?

Well, while you all are preparing to reply ...

;-)

... I simply went for it.

unmasked gcc-5.3.0, compiled it, and then recompiled @system and the
kernel ("make localmodconfig" to be curious) with it.

Booted it, snappy, fine!

right now gcc rebuilds itself, some more packages to re-emerge, load at
around 7.5, system usable, audio stream without a hickup.





Re: [gentoo-user] snapshots?

2015-12-30 Thread Stefan G. Weichinger
On 12/30/2015 10:14 PM, lee wrote:
> Hi,
> 
> soon I'll be replacing the system disks and will copy over the existing
> system to the new disks.  I'm wondering how much merit there would be in
> being able to make snapshots to be able to revert back to a previous
> state when updating software or when installing packages to just try
> them out.
> 
> To be able to make snapshots, I could use btrfs on the new disks.  When
> using btrfs, I could use the hardware RAID-1 as I do now, or I could use
> the raid features of btrfs instead to create a RAID-1.
> 
> 
> Is it worthwhile to use btrfs?

Yes.

;-)

> Am I going to run into problems when trying to boot from the new disks
> when I use btrfs?

Yes.

;-)

well ... maybe.

prepare for some learning curve. but it is worth it!

> Am I better off using the hardware raid or software raid if I use btrfs?

I would be picky here and separate "software raid" from "btrfs raid":

software raid .. you think of mdadm-based software RAID as we know it in
the linux world?

btrfs offers RAID-like redundancy as well, no mdadm involved here.

The general recommendation now is to stay at level-1 for now. That fits
your 2-disk-situation.

> The installation/setup is simple: 2x3.5" are to be replaced by 2x2.5",
> each 15krpm, 72GB SAS disks, so no fancy partioning is involved.
> 
> (I need the physical space to plug in more 3.5" disks for storage.  Sure
> I have considered SSDs, but they would cost 20 times as much and provide
> no significant advantage in this case.)
> 
> 
> I could just replace one disk after the other and let the hardware raid
> do it all for me.  A rebuilt takes only 10 minutes or so.  Then I could
> convert the file system to btrfs, or leave it as is.  That might even be
> the safest bet because I can't miss anything when copying.  (What the
> heck do I have it for? :) )
> 
> 
> Suggestions?

I would avoid converting and stuff.

Why not try a fresh install on the new disks with btrfs?
You can always step back and plug in the old disks.
You could even add your new disks *beside the existing system and set up
a new rootfs alongside (did that several times here).

-

There is nearly no partitioning needed with btrfs (one of the great
benefits).

I never had /boot on btrfs so far, maybe others can guide you with this.

My /boot is plain extX on maybe RAID1 (differs on
laptops/desktop/servers), I size it 500 MB to have space for multiple
kernels (especially on dualboot-systems).

Then some swap-partitions, and the rest for btrfs.

So you will have something like /dev/sd[ab]3 for btrfs then.

Create your btrfs-"pool" with:

# mkfs.btrfs -m raid1 -d raid1 /dev/sda3 /dev/sdb3

Then check for your btrfs-fs with:

# btrfs fi show

Oh: I realize that I start writing a howto here ;-)

In short:

In my opinion it is worth learning to use btrfs.
checksums, snapshots, subvolumes, compression ... bla ...

It has some learning curve, especially with a distro like gentoo.
But it is manageable.

As mentioned here several times I am using btrfs on >6 of my systems for
years now. And I don't look back so far.

-

look up:

https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices




Re: [gentoo-user] btrfs strategies (wasHard drive noise)

2015-12-20 Thread Stefan G. Weichinger
Am 20.12.2015 um 08:40 schrieb J. Roeleveld:

> These new filesystems should really be handed control of the entire disk as 
> they already include LVM-like functionality.
> You can create subvolumes and limit those to different sizes if you so desire.
> 
> When using an additional layer between ZFS/BTRFS and the discs, you will 
> loose 
> performance with no gain in flexibility.

And you lose the feature of protecting your blocks against bitrot!

btrfs comes with subvolumes and there is no need to use it on top of
LVM. If you want separated /, /usr, /var etc cut yourself subvolumes out
of your btrfs-filesystem, as mentioned.

forget LVM with btrfs, it's inside already in a way ;-)

I use btrfs on at least 3 systems for years now. No problems.

OK, it gives a bit of a learning curve. One big pool of storage
(depending on how many disks you throw into it), all the subvolumes
share the same free blocks ... this may feel scary and strange at first.





Re: [gentoo-user] OT: i7-6700, anyone already?

2015-12-15 Thread Stefan G. Weichinger

Am 2015-12-13 um 13:05 schrieb Stefan G. Weichinger:

Am 2015-12-13 um 12:50 schrieb Stefan G. Weichinger:

If I pull the mouse down to the bottom of the screen the desktop snaps
into correct place.


found this:

https://forums.gentoo.org/viewtopic-p-7800470.html

the module option is now "enable_ips=0" ... but this doesn't work for me
so far.


And I get occasional hangups with fedora :-(

I can't tell if they would happen with gentoo as well as I don't use it 
that much as long as Gnome doesn't work.


shiny new hardware, shiny new problems




Re: [gentoo-user] OT: i7-6700, anyone already?

2015-12-13 Thread Stefan G. Weichinger
Am 2015-12-11 um 10:33 schrieb Stefan G. Weichinger:
> Am 10.12.2015 um 19:52 schrieb waltd...@waltdnes.org:
> 
>>> Do I have to set that variable then (in make.conf?) ?
>>
>>   Yes, you should.  While you're at it, you can remove the corresponding
>> flags from the USE= variable.  I don't know if they're honored by
>> portage any longer.  I assume you missed the news item back in January.
>> It's archived and you can read it at...
>> https://www.gentoo.org/support/news-items/2015-01-28-cpu_flags_x86-introduction.html
> 
> thanks for the pointer, did that right now (still on the i7-2600 ...
> waiting).
> 
> I didn't have anything like that in USE= anymore, anyway.

update: machine is here, all three OSes installed already.
Snappy performance, nice ...

Right now I am fiddling with getting Gnome installed and running.

Fedora needed the kernel option "i915.preliminary_hw_support=1" set (in
grub.cfg) to enable the skylake graphics.




Re: [gentoo-user] OT: i7-6700, anyone already?

2015-12-13 Thread Stefan G. Weichinger
Am 2015-12-13 um 12:50 schrieb Stefan G. Weichinger:
> If I pull the mouse down to the bottom of the screen the desktop snaps
> into correct place.

found this:

https://forums.gentoo.org/viewtopic-p-7800470.html

the module option is now "enable_ips=0" ... but this doesn't work for me
so far.






Re: [gentoo-user] OT: i7-6700, anyone already?

2015-12-13 Thread Stefan G. Weichinger
Am 2015-12-13 um 11:39 schrieb Stefan G. Weichinger:

> Right now I am fiddling with getting Gnome installed and running.

I have X starting now. gdm as well, but with problems:

the mouse somehow pulls a "curtain" up and down ... so the display is
not correct. The lower part is one color only so I can't do anything
useful yet.

And the display seems to be shifted, "Activities" (should be left upper
corner) has the on/off and speaker symbols to its left.

If I pull the mouse down to the bottom of the screen the desktop snaps
into correct place.

Strange ;)

-

Is it possible that stable (in gentoo terms) Xorg does not yet fully
support skylake graphics?

btw I also placed the firmware from

https://01.org/zh/linuxgraphics/intel-linux-graphics-firmwares

into /lib/firmware/i915

stefan



  1   2   3   4   5   6   7   8   9   10   >