Re: [gentoo-user] Running Gentoo in VirtualBox

2017-12-31 Thread thelma
I configure all machine the same way.  The older units saver as a
backup.  If something goes wrong all I need to do is to boot one of the
backup machine and restore the files, or do minor adjustments.

Thelma
On 12/31/2017 01:13 PM, Alan McKinnon wrote:
> On 31/12/2017 21:40, the...@sys-concept.com wrote:
>> I'm using Gentoo as a server (so it runs 24/7) Apache, Asterisk, Hylafax
>> etc.
>>
>> What are my chances to run Gentoo as a VirtualBox?
>>
>> Installing Gentoo takes me 2-3 days (basic setup min., I don't do it
>> every month so I have to go through Gentoo handbook); to configure it
>> the way I want it takes another week or two.
>>
>> So I was thinking,  if I run Windows 10 and configure Gentoo as a
>> virtual box it might be easier to transfer it from one system to
>> another, in case there is a HD failure (like it just happened to me
>> yesterday).
>>
>> Any input will be appreciated.
>> I know I might have problem with Serial port and receiving faxes via
>> HylaFax as they are time sensitive.
>>
> 
> 
> That is not the question. The real question is:
> 
> Why are you running a production fax server with n backup or redundancy
> plans?
> 
> Virtualization here will not solve your risk or effort exposure. It will
> increase it.
> 



Re: [gentoo-user] Running Gentoo in VirtualBox

2017-12-31 Thread R0b0t1
On Sun, Dec 31, 2017 at 2:13 PM, Alan McKinnon  wrote:
> On 31/12/2017 21:40, the...@sys-concept.com wrote:
>> I'm using Gentoo as a server (so it runs 24/7) Apache, Asterisk, Hylafax
>> etc.
>>
>> What are my chances to run Gentoo as a VirtualBox?
>>
>> Installing Gentoo takes me 2-3 days (basic setup min., I don't do it
>> every month so I have to go through Gentoo handbook); to configure it
>> the way I want it takes another week or two.
>>
>> So I was thinking,  if I run Windows 10 and configure Gentoo as a
>> virtual box it might be easier to transfer it from one system to
>> another, in case there is a HD failure (like it just happened to me
>> yesterday).
>>
>> Any input will be appreciated.
>> I know I might have problem with Serial port and receiving faxes via
>> HylaFax as they are time sensitive.
>>
>
> Virtualization here will not solve your risk or effort exposure. It will
> increase it.
>

I agree: this way lies pain.

Firstly, if you must use Windows, I highly recommend using Hyper-V
over VirtualBox or VMWare/ESXi. It is free and has better hardware
configuration support.

Secondly, the backup scheme you are wanting to implement is easier and
more robustly done with LVM. Even if you don't want to deal with that,
rsync over SSH is secure and easy to set up. More complicated
solutions like BorgBackup may ultimately be the most appropriate.

Thirdly, save your configuration files so you do not need to reread
the documentation each time you install a system. Look at Gentoo stage
4 tarballs and programs like Ansible or Puppet. You might also
consider running Debian. Gentoo is nice, but not necessary or even
suitable for every use case.

Cheers,
 R0b0t1



Re: [gentoo-user] Running Gentoo in VirtualBox

2017-12-31 Thread Alan McKinnon
On 31/12/2017 21:40, the...@sys-concept.com wrote:
> I'm using Gentoo as a server (so it runs 24/7) Apache, Asterisk, Hylafax
> etc.
> 
> What are my chances to run Gentoo as a VirtualBox?
> 
> Installing Gentoo takes me 2-3 days (basic setup min., I don't do it
> every month so I have to go through Gentoo handbook); to configure it
> the way I want it takes another week or two.
> 
> So I was thinking,  if I run Windows 10 and configure Gentoo as a
> virtual box it might be easier to transfer it from one system to
> another, in case there is a HD failure (like it just happened to me
> yesterday).
> 
> Any input will be appreciated.
> I know I might have problem with Serial port and receiving faxes via
> HylaFax as they are time sensitive.
> 


That is not the question. The real question is:

Why are you running a production fax server with n backup or redundancy
plans?

Virtualization here will not solve your risk or effort exposure. It will
increase it.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Running Gentoo in VirtualBox

2017-12-31 Thread Alec Ten Harmsel
On Sun, Dec 31, 2017 at 12:40:43PM -0700, the...@sys-concept.com wrote:
> I'm using Gentoo as a server (so it runs 24/7) Apache, Asterisk, Hylafax
> etc.
> 
> What are my chances to run Gentoo as a VirtualBox?
> 
> Installing Gentoo takes me 2-3 days (basic setup min., I don't do it
> every month so I have to go through Gentoo handbook); to configure it
> the way I want it takes another week or two.

Instead of running Gentoo with VirtualBox and backing up the image, I'd
recommend storing your configurations in a git repo and using ansible[1]
or salt[2] to deploy them when you need to.

Also, if you ever expand to more than 1 server, these tools make even
more sense. I use salt for my personal setup, which is 1 server and 1
laptop (I have 2-3 more servers that I need to get set up someday...),
but salt is simpler and no less powerful.

Hope this helps,

Alec

1. https://www.ansible.com/
2. https://saltstack.com/



Re: [gentoo-user] Running Gentoo in VirtualBox

2017-12-31 Thread Matthias Hanft
the...@sys-concept.com wrote:
> 
> What are my chances to run Gentoo as a VirtualBox?

I just did it (amd64-Gentoo on Win10/64), and it works like a charm.

No problems encountered at all.  However, here it's just a "server-
Gentoo" (only Apache, Postfix and all that - no GUI/desktop, no
special hardware).

-Matt




[gentoo-user] Running Gentoo in VirtualBox

2017-12-31 Thread thelma
I'm using Gentoo as a server (so it runs 24/7) Apache, Asterisk, Hylafax
etc.

What are my chances to run Gentoo as a VirtualBox?

Installing Gentoo takes me 2-3 days (basic setup min., I don't do it
every month so I have to go through Gentoo handbook); to configure it
the way I want it takes another week or two.

So I was thinking,  if I run Windows 10 and configure Gentoo as a
virtual box it might be easier to transfer it from one system to
another, in case there is a HD failure (like it just happened to me
yesterday).

Any input will be appreciated.
I know I might have problem with Serial port and receiving faxes via
HylaFax as they are time sensitive.

-- 
Joseph



[gentoo-user] Re: Kernel 4.14.7 no longer switches to VT7

2017-12-31 Thread Ian Zimmerman
On 2017-12-31 01:56, Peter Humphrey wrote:

> If you don't mind my asking, what factors make you prefer vanilla to
> gentoo sources? (I assume that's what you use.)

One reason is security fixes.  Sometimes longterm vanilla already
includes the fixes from mainline, and when it does not, I know that the
diff will nearly always apply because they are just two branches of the
same git tree.

The other reason is the extra kconfig options in the gentoo sources,
which are on by default and I don't want any of them.  I don't remember
anymore but I _think_ at some point it wouldn't let me turn them off
without extreme violence.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet, fetch the TXT record for the domain.



Re: [gentoo-user] Troubleshooting mounting local filesystems

2017-12-31 Thread Daniel Frey

On 12/31/17 06:12, Jalus Bilieyich wrote:

Did you perform this action:

rc-update add localmount default

?


On my machine (as per my other post) it's in the boot runlevel.

Dan



Re: [gentoo-user] Troubleshooting mounting local filesystems

2017-12-31 Thread Daniel Frey

On 12/30/17 19:32, Adam Carter wrote:
On Sun, Dec 31, 2017 at 2:22 PM, Daniel Frey > wrote:


Some background:

A little while back I had a drive drop out of my hardware RAID. I
don't think this has anything to do with the problem I'm having, but
I thought I should mention it. The RAID health is fine and I can see
there's not any delay in dmesg (the RAID array is detected as /dev/sdc).

On startup, I share the RAID, and hence I mount it locally under
/mnt, then again under /nfs4exports.

Note: I'm using openrc.

For some reason, the entry under /mnt does not mount on startup.
There's no error or any indication of anything going wrong during
startup (nothing in dmesg or /var/log/messages regarding any sort of
mount trouble.)

So what happens is nfs starts up but it's missing the one export. I
have to stop nfs, unmount the entry under /nfs4exports, unmount the
entry under /mnt, then mount /dev/sdc1 to /mnt, the mount the entry
under /nfs4exports. After this, everything is mounted properly and I
restart nfs.

I looked at the /etc/init.d/localmount script and it's supposed to
spit out a message if something cannot mount but it does not report
any error.

Is there any sort of logging I can enable to tell me exactly what's
happening? Other local filesystems (total of three) all mount fine.

What does the fstab entry look like?



The fstab entry is just:

/dev/sdc1/mnt/raidext4noatime0 0

The first thing I did was check localmount and it is in the boot 
runlevel (some snipped):


# rc-update show boot

   localmount | boot


Other filesystems mounted OK.

It does list as started:
# rc-status boot
Runlevel: boot
 localmount   [  started  ]


> Can you cut and paste the terminal session of the post boot fixes?

What are you asking for here?

Part of the problem is I restart this machine so infrequently I usually 
forget about the mounting problems until I try to access it remotely.


Dan



Re: [gentoo-user] Troubleshooting mounting local filesystems

2017-12-31 Thread Jalus Bilieyich
I just noticed it's in /etc/init.d

Sorry for wasting your time.

On 12/31/2017 09:14 AM, Peter Humphrey wrote:
> On Sunday, 31 December 2017 14:12:22 GMT Jalus Bilieyich wrote:
>> Did you perform this action:
>>
>> rc-update add localmount default
>>
>> ?
> 
> It's in the boot run-level here.
> 



Re: [gentoo-user] Troubleshooting mounting local filesystems

2017-12-31 Thread Peter Humphrey
On Sunday, 31 December 2017 14:12:22 GMT Jalus Bilieyich wrote:
> Did you perform this action:
> 
> rc-update add localmount default
> 
> ?

It's in the boot run-level here.

-- 
Regards,
Peter.




Re: [gentoo-user] Troubleshooting mounting local filesystems

2017-12-31 Thread Jalus Bilieyich
Did you perform this action:

rc-update add localmount default

?

On 12/30/2017 09:22 PM, Daniel Frey wrote:
> Some background:
> 
> A little while back I had a drive drop out of my hardware RAID. I don't
> think this has anything to do with the problem I'm having, but I thought
> I should mention it. The RAID health is fine and I can see there's not
> any delay in dmesg (the RAID array is detected as /dev/sdc).
> 
> On startup, I share the RAID, and hence I mount it locally under /mnt,
> then again under /nfs4exports.
> 
> Note: I'm using openrc.
> 
> For some reason, the entry under /mnt does not mount on startup. There's
> no error or any indication of anything going wrong during startup
> (nothing in dmesg or /var/log/messages regarding any sort of mount
> trouble.)
> 
> So what happens is nfs starts up but it's missing the one export. I have
> to stop nfs, unmount the entry under /nfs4exports, unmount the entry
> under /mnt, then mount /dev/sdc1 to /mnt, the mount the entry under
> /nfs4exports. After this, everything is mounted properly and I restart nfs.
> 
> I looked at the /etc/init.d/localmount script and it's supposed to spit
> out a message if something cannot mount but it does not report any error.
> 
> Is there any sort of logging I can enable to tell me exactly what's
> happening? Other local filesystems (total of three) all mount fine.
> 
> Dan
> 



Re: [gentoo-user] init id c5 response too fast disabled for 5 min

2017-12-31 Thread mad.scientist.at.large
please see  for 
information on using the drives built in test.  please run the short test 
followed by conveyance and then the long test (can be over an hour)  and show 
us the output if it complains.  it could be a normal aging bad sector, which 
will be remapped the next time it's written to (hopefully).  if the drive 
passes all the smart test you can probably reformat the flakey partition (or 
possibly just run fsck until it doesn't have problems).  The original error 
message about the interrupt line however suggest a problem somewhere.

mad.scientist.at.large (a good madscientist)
--
God bless the rich, the greedy and the corrupt politicians they have put into 
office.   God bless them for helping me do the right thing by giving the rich 
my little pile of cash.  After all, the rich know what to do with money.


31. Dec 2017 00:28 by the...@sys-concept.com:


> I boot-strap the system from CD and run:
> fsck /dev/sda5
>
> got bunch of errors eg.:
> Directories count wrong for group #1567 (1, counted=0).
> Fix? yes
>
> Free inodes count wrong for group #1568 (8073, counted=8192).
> Fix? yes
>
> Directories count wrong for group #1568 (1, counted=0).
> Fix? yes
>
> Free inodes count wrong for group #1569 (8103, counted=8192).
> Fix? yes
>
> Directories count wrong for group #1569 (7, counted=0).
> Fix? yes
>
> Now when try to run it again I get:
> fsck /dev/sda5
> Segmentation fault
>
> Is this partition/drive gone?
> <<>
> Joseph
>
>>
>>
>> 30. Dec 2017 23:32 by >> the...@sys-concept.com>> :
>>
>>
>>> I'm getting a strange error trying to boot my system.
>>>
>>> init id c5 response too fast disabled for 5 min
>>>
>>> the error appears right after when it to start mysql at boot.
>>> In addition when the system starts I see:
>>>
>>> ata4.00 failed command read DMA
>>>
>>> It is hart to post any information as I can not even boot the system.  I
>>> just took a video trying to see if I can read any relevant information.
>>> Though, I can boot strap the system via CD
>>>
>>> -- 
>>> Joseph

Re: [gentoo-user] Re: [was: What can cause printer to crop top of page?] /etc/papersize is ignored

2017-12-31 Thread Wols Lists
On 31/12/17 10:34, Neil Bothwick wrote:
> On Sun, 31 Dec 2017 02:26:26 +, Peter Humphrey wrote:
> 
>>> Actually it was the New York World. So actually imho it was originally
>>> perfectly legit.  
>>
>> I don't agree. In that case it should have been called the New York
>> World Series.
> 
> If they were paying for it, they could call it what they wanted. I assume
> the paper was generally known as "The World" otherwise it would have been
> a waste of marketing money.
> 
> 
Actually, I believe it WAS originally known as The New York World Series.

Then presumably some marketeer decided that was too much of a mouthful,
and dropped the "New York" rather than "World" :-(

Cheers,
Wol



Re: [gentoo-user] Re: [was: What can cause printer to crop top of page?] /etc/papersize is ignored

2017-12-31 Thread Neil Bothwick
On Sun, 31 Dec 2017 02:26:26 +, Peter Humphrey wrote:

> > Actually it was the New York World. So actually imho it was originally
> > perfectly legit.  
> 
> I don't agree. In that case it should have been called the New York
> World Series.

If they were paying for it, they could call it what they wanted. I assume
the paper was generally known as "The World" otherwise it would have been
a waste of marketing money.


-- 
Neil Bothwick

Few women admit their age. Few men act theirs.


pgpgMY5W8yrN6.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] init id c5 response too fast disabled for 5 min

2017-12-31 Thread thelma
The CD boots OK.
Other partition are working OK on this disk I only have problem with
/dev/ada5

I can boot strap the drive and mount /dev/sda5 manually but I don't know
if it can be fixed.
The cable is OK as other partition are working correctly.

Joseph
On 12/31/2017 12:52 AM, mad.scientist.at.la...@tutanota.com wrote:
> with the seg fault, you may have other problems.  you might want to unplug 
> the hard drive (so you aren't spinning it) and run whatever diagnostics you 
> can on the machine, just to make sure it's not failing/loosing it's little 
> silicon mind.   
> 
> seg fault shouldn't happen (from drive issues) i don't think, but i suppose 
> if fsck gets confused enough it might.  or it might be a more general i/o or 
> system problem.
> 
> there is definately some problem reading the drive but it could be some other 
> part of the system failing causing read issues.  does the cd boot normally or 
> do you notice any odd behavior booting off other media?
> 
> mad.scientist.at.large (a good madscientist)
> --
> God bless the rich, the greedy and the corrupt politicians they have put into 
> office.   God bless them for helping me do the right thing by giving the rich 
> my little pile of cash.  After all, the rich know what to do with money.
> 
> 
> 31. Dec 2017 00:44 by mad.scientist.at.la...@tutanota.com:
> 
> 
>> likely dying soon, or if you are lucky a key sector went out, if not the 
>> drive may be getting worse with every rotation.  If the drive is badly 
>> corrupted fsck can damage what is left.   definately DO NOT run fsck without 
>> knowing if the hardware has serious problems, also if part of it won't read 
>> don't try to long, drive electronics retrain themselves to some extent, 
>> trying to recover lost data can cause it to misadjust itself and work worse. 
>>  at least it's spinning, it's when the motor electronics suddendly die that 
>> you have real problems.  hopefully it's not a samsung drive (they have a 
>> classic tendency to die this way, i.e. spindle motor electronics die so 
>> platters don't spin).
>>
>> again however it could be the drive data/power cable.  anything else happen 
>> to it recently, i.e. new hardware added or swapped out?  is it an ata or a 
>> sata drive?  old/new drive/system?   hopefully it doesn't live near the heat 
>> vent..  if it's hotter than normal in the room it could be heat.  low 
>> humidity can also cause strange static related problems but they usually 
>> happen when you touch or stop touching the keyboard/mouse.  
>>
>> if it's dry, definately humidify before working on the machine, worse case 
>> you can boil a couple of gallons of water on the stove to humidify it 
>> temporarily.   under dry conditions i've lost a mother board just from 
>> touching the power switch, in a room without carpeting, i was not happy.   
>> also when doing electronics, try not to wear synthetics or other materials 
>> known for static (wool is way bad, as are things like silk, if it doesn't 
>> get wet easily (won't soak up water) it probably isn't static friendly).
>>
>> mad.scientist.at.large (a good madscientist)
>> --
>> God bless the rich, the greedy and the corrupt politicians they have put 
>> into office.   God bless them for helping me do the right thing by giving 
>> the rich my little pile of cash.  After all, the rich know what to do with 
>> money.
>>
>>
>> 31. Dec 2017 00:28 by > the...@sys-concept.com> :
>>
>>
>>> I boot-strap the system from CD and run:
>>> fsck /dev/sda5
>>>
>>> got bunch of errors eg.:
>>> Directories count wrong for group #1567 (1, counted=0).
>>> Fix? yes
>>>
>>> Free inodes count wrong for group #1568 (8073, counted=8192).
>>> Fix? yes
>>>
>>> Directories count wrong for group #1568 (1, counted=0).
>>> Fix? yes
>>>
>>> Free inodes count wrong for group #1569 (8103, counted=8192).
>>> Fix? yes
>>>
>>> Directories count wrong for group #1569 (7, counted=0).
>>> Fix? yes
>>>
>>> Now when try to run it again I get:
>>> fsck /dev/sda5
>>> Segmentation fault
>>>
>>> Is this partition/drive gone?
>>>
>>> Joseph
>>> On 12/31/2017 12:22 AM, >> mad.scientist.at.la...@tutanota.com>>  wrote:
 that would most likely be a failing/failed hard drive or a bad 
 connection/cable.  I'd suggest carefully checking the cable and then boot 
 off a cd and back up anything you care about on the drive, you might check 
 the SMART status of the drive.  In any case back it up first, worry about 
 understanding it/finding the bug later.  Once everything is backed up you 
 can run the drives self test routines.Back it up before you do 
 anything else, the next time it mounts may be the last (i've used a lot of 
 very old drives from tivo's that were thrown out, you may or may not get 
 it to mount again and may or may not be able to recover your' data).

 good luck.

 mad.scientist.at.large (a good madscientist)
 --
 God bless the rich, the greedy and the corrupt politicians 

Re: [gentoo-user] Re: Kernel 4.14.7 no longer switches to VT7

2017-12-31 Thread Bill Kenworthy
Hi all,
is there a list of known problems with kernels 4.14.x?

I have a problem with hiddev, nut and a usb ups that appears kernel
dependent.

Cant find anything about 4.14 except for the gentoo-dev list emails

BillK


On 31/12/17 09:56, Peter Humphrey wrote:
> On Sunday, 31 December 2017 01:13:26 GMT Ian Zimmerman wrote:
>> On 2017-12-31 00:33, Peter Humphrey wrote:
>>> But the whole 4.12 branch has been masked, so that won't do. Here,
>>> I've had to go back to 4.9.49-r1 (amd64, not ~amd64). But now I see
>>> 4.9.72 has been stabilised. I think I'll wait for some stabiliity in
>>> the kernel version offerings before I make another move. Three kernel
>>> compilations on six systems within a week are a few too many.
>>
>> FWIW, I find 4.9.73 (upstream, not gentoo) rock solid.
> 
> Well, I haven't fallen into whatever holes have been found in other versions 
> yet either, as far as I know.
> 
> If you don't mind my asking, what factors make you prefer vanilla to gentoo 
> sources? (I assume that's what you use.)
>