Re: [CentOS] Question about virt-manager Version 9.1

2023-02-11 Thread Robert Nichols

On 2/10/23 11:07, Joshua Kramer wrote:

This may provide the answer you are looking for: it's being deprecated in
favor of Cockpit.

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


Deprecated, yes, rut only in Red Hat. Still fully supported upstream.
https://blog.wikichoon.com/2020/06/virt-manager-deprecated-in-rhel.html

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-02 Thread Robert Nichols

On 3/1/22 7:07 PM, Gordon Messmer wrote:

On 3/1/22 15:36, Robert Nichols wrote:

"${cmdline[@]}"


The problem there is that the last line is going to get interpreted by a shell 
before anything is executed, so you now have to escape characters that are 
special to the shell within a quoted string. This is unlike the compiled 
fstab-decode program that invokes the execvp() library call and avoids further 
shell parsing.



Does it, though?

$ bash fstab-decode.sh echo '$PATH'
$PATH
$ bash fstab-decode.sh ls '*'
ls: cannot access '*': No such file or directory


After study, the only types of expansion that occur _after_ parameter expansion 
are word splitting and pathname expansion, and those are both protected by the 
double quotes. So, I guess it's OK.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-01 Thread Robert Nichols

On 3/1/22 3:46 PM, Gordon Messmer wrote:

On 3/1/22 10:29, Gordon Messmer wrote:


Chris Schanzle mentioned off-list that a tab character had been replaced with spaces (I *knew* that should have been an attached file, shame on me).  He also suggested an improvement that removes the tab character, so here's a second try. 



Or not?  Last try.


#!/bin/sh

declare -a cmdline
tab=$'\t'
eol=$'\n'

for arg in "$@"
do
   arg="${arg//\\011/$tab}"
   arg="${arg//\\012/$eol}"
   arg="${arg//\\040/ }"
   arg="${arg//\\134/\\}"
   arg="${arg///\\}"
   cmdline+=("$arg")
done

"${cmdline[@]}"


The problem there is that the last line is going to get interpreted by a shell 
before anything is executed, so you now have to escape characters that are 
special to the shell within a quoted string. This is unlike the compiled 
fstab-decode program that invokes the execvp() library call and avoids further 
shell parsing.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need fstab-decode for CentOS 8

2022-03-01 Thread Robert Nichols

On 2/28/22 8:46 AM, Robert Nichols wrote:

On 2/28/22 1:22 AM, cen...@niob.at wrote:

Am 28.02.22 um 05:45 schrieb Robert Nichols:

On 2/27/22 12:26 PM, cen...@niob.at wrote:

Am 27.02.22 um 04:33 schrieb Robert Nichols:

Does anything for CentOS 8 provide the function of the fstab-decode utility?
Entries in /proc/mounts and /etc/fstab can have escape sequences for certain special characters, and I need to decode that. 


Preface: Never heard of fstab-decode before. Researching the command made me really wonder why it 
was invented. Especially since I have never seen an /etc/fstab with "escape sequences" or 
"special characters" since at least 1990 (If I am wrong: Please show me such a fstab 
file).

So why not just use:

 umount $(awk '$3 == "vfat" {print $2}' /etc/fstab)

instead of the seemingly canonical use of fstab-decode

 fstab-decode umount $(awk '$3 == "vfat" { print $2 }' /etc/fstab)


Those samples break if the mount point directory name contains spaces, tabs, or 
whatever other characters I don't know about that also get represented by 
escape sequences. I'm not actually using it with /etc/fstab, but with 
/proc/mounts which uses the same convention. I can control /etc/fstab and avoid 
the problem, but I cannot control how some auto-mounted foreign filesystem 
might be named. I have a script that needs to be robust in the face of such 
names.


Get creative! Unix administration is a creative job. Having said this:

Using white space within mount points is asking for trouble anyway. If you 
really want this in the most generic way, then do the unquoting with something 
like this:

 awk '$3 == "vfat" {print $2}' /etc/fstab | perl -pl000 -e 
's/\\([0-7]{3})/chr(oct($1))/eg' | xargs -0 -n 1 -r umount

This seems to be the unixy way to do this.


Yes, white space in mount points is asking for trouble, but if someone automounts a USB flash drive 
filesystem which has a label that includes white space (e.g.: "USB DISK", like the VFAT 
preformat on some that I have bought) or other "funny" characters, that label gets used 
as the mount point directory.

Indeed, I can re-invent the wheel if that wheel is lost in the sands of time.


It turns out that particular wheel is best resurrected from the fstab-decode.c file in an 
old initscripts source package. The encoding is nonstandard, and the above perl code 
would not handle it correctly. Handling the unlikely oddball case seems like severe 
paranoia, but this could turn out to be, "That line of code you thought would never 
be executed just might save the day that one time when it _does_ get executed."

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need fstab-decode for CentOS 8

2022-02-28 Thread Robert Nichols

On 2/28/22 1:22 AM, cen...@niob.at wrote:

Am 28.02.22 um 05:45 schrieb Robert Nichols:

On 2/27/22 12:26 PM, cen...@niob.at wrote:

Am 27.02.22 um 04:33 schrieb Robert Nichols:

Does anything for CentOS 8 provide the function of the fstab-decode utility?
Entries in /proc/mounts and /etc/fstab can have escape sequences for certain special characters, and I need to decode that. 


Preface: Never heard of fstab-decode before. Researching the command made me really wonder why it 
was invented. Especially since I have never seen an /etc/fstab with "escape sequences" or 
"special characters" since at least 1990 (If I am wrong: Please show me such a fstab 
file).

So why not just use:

 umount $(awk '$3 == "vfat" {print $2}' /etc/fstab)

instead of the seemingly canonical use of fstab-decode

 fstab-decode umount $(awk '$3 == "vfat" { print $2 }' /etc/fstab)


Those samples break if the mount point directory name contains spaces, tabs, or 
whatever other characters I don't know about that also get represented by 
escape sequences. I'm not actually using it with /etc/fstab, but with 
/proc/mounts which uses the same convention. I can control /etc/fstab and avoid 
the problem, but I cannot control how some auto-mounted foreign filesystem 
might be named. I have a script that needs to be robust in the face of such 
names.


Get creative! Unix administration is a creative job. Having said this:

Using white space within mount points is asking for trouble anyway. If you 
really want this in the most generic way, then do the unquoting with something 
like this:

     awk '$3 == "vfat" {print $2}' /etc/fstab | perl -pl000 -e 
's/\\([0-7]{3})/chr(oct($1))/eg' | xargs -0 -n 1 -r umount

This seems to be the unixy way to do this.


Yes, white space in mount points is asking for trouble, but if someone automounts a USB flash drive 
filesystem which has a label that includes white space (e.g.: "USB DISK", like the VFAT 
preformat on some that I have bought) or other "funny" characters, that label gets used 
as the mount point directory.

Indeed, I can re-invent the wheel if that wheel is lost in the sands of time.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Need fstab-decode for CentOS 8

2022-02-27 Thread Robert Nichols

On 2/27/22 12:26 PM, cen...@niob.at wrote:

Am 27.02.22 um 04:33 schrieb Robert Nichols:

Does anything for CentOS 8 provide the function of the fstab-decode utility?
Entries in /proc/mounts and /etc/fstab can have escape sequences for certain special characters, and I need to decode that. 


Preface: Never heard of fstab-decode before. Researching the command made me really wonder why it 
was invented. Especially since I have never seen an /etc/fstab with "escape sequences" or 
"special characters" since at least 1990 (If I am wrong: Please show me such a fstab 
file).

So why not just use:

 umount $(awk '$3 == "vfat" {print $2}' /etc/fstab)

instead of the seemingly canonical use of fstab-decode

 fstab-decode umount $(awk '$3 == "vfat" { print $2 }' /etc/fstab)


Those samples break if the mount point directory name contains spaces, tabs, or 
whatever other characters I don't know about that also get represented by 
escape sequences. I'm not actually using it with /etc/fstab, but with 
/proc/mounts which uses the same convention. I can control /etc/fstab and avoid 
the problem, but I cannot control how some auto-mounted foreign filesystem 
might be named. I have a script that needs to be robust in the face of such 
names.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Need fstab-decode for CentOS 8

2022-02-26 Thread Robert Nichols

Does anything for CentOS 8 provide the function of the fstab-decode utility?
Entries in /proc/mounts and /etc/fstab can have escape sequences for certain 
special characters, and I need to decode that.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Ping as regular user not allowed (CentOS Stream 8)

2022-01-20 Thread Robert Nichols

On 1/20/22 10:32 AM, Fabian Arrotin wrote:

On 19/01/2022 15:32, Toralf Lund wrote:

Following some update or the other (I think) on my CentOS Stream 8 system, I'm 
no longer able to use ping as a regular user; I get

$ ping www.centos.org
ping: socket: Operation not permitted

Does anyone else see this? It it a bug, or were the system/default permissions 
deliberately changed? Can anyone suggest a fix/workaround? Actually, I can find 
several different ones via a simple web search, but they are generally related 
to other distributions, I'm not quite sure which would be the most appropriate 
for CentOS...

Thanks.

- Toralf



"sudo dnf downgrade iputils" should do it for now

it works when you're back on iputils-20180629-7.el8.x86_64


And then add:
excludepkgs=iputils-20180629-8.el8.x86_64
in the [baseos] section of /etc/yum/repos.d/CentOS-Stream-BaseOS.repo

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Is my ssh private key already unlocked?

2022-01-09 Thread Robert Nichols

Alas, "ssh-add -T" does not help. Regardless of whether the private key is 
already unlocked, it prompts for the password (apparently with unlimited retrys) and 
returns 0 once the correct password is entered. The private key is then left unlocked.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

On 1/9/22 12:54 PM, cen...@niob.at wrote:

Look at ssh-add -T . This will test if the private key for the 
given public key is available through the agent.

Am 07.01.22 um 23:35 schrieb Robert Nichols:

When I first ssh to a system, I am asked for the password to unlock the private key file. 
Thereafter, that key file remains unlocked, and subsequent ssh sessions will not prompt 
for a password. I can always re-lock the key file by running "ssh-add -D". In a 
script I have that runs sshfs to mount a remote directory, I want to re-lock that key 
file _unless_ it was already unlocked, i.e., if I sshfs asks for a password, I want to 
re-lock the key file immediately after the command is run.

How can I determine ahead of time whether the key file is already unlocked? In the past (Centos 6) 
I could examine the output from "ssh-add -l" determine that. Now, "ssh-add -l" 
just shows the public key whether of not the private key has been unlocked. There is also no 
apparent way to see whether or not sshfs asked for a password.

Suggestions?



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Is my ssh private key already unlocked?

2022-01-07 Thread Robert Nichols

When I first ssh to a system, I am asked for the password to unlock the private key file. 
Thereafter, that key file remains unlocked, and subsequent ssh sessions will not prompt 
for a password. I can always re-lock the key file by running "ssh-add -D". In a 
script I have that runs sshfs to mount a remote directory, I want to re-lock that key 
file _unless_ it was already unlocked, i.e., if I sshfs asks for a password, I want to 
re-lock the key file immediately after the command is run.

How can I determine ahead of time whether the key file is already unlocked? In the past (Centos 6) 
I could examine the output from "ssh-add -l" determine that. Now, "ssh-add -l" 
just shows the public key whether of not the private key has been unlocked. There is also no 
apparent way to see whether or not sshfs asked for a password.

Suggestions?

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Automatic clean /tmp folder

2021-04-07 Thread Robert Nichols

On 4/7/21 7:27 AM, Kenneth Porter wrote:

--On Wednesday, April 07, 2021 9:00 AM + Gestió Servidors 
 wrote:


With these files I supposed that a file with more than 10 days in /tmp
would be automatically deleted, but today I have found some files/folders
with more than 10 days.

What I have done wrong?


The test is on access time, not modification. Have they been read in the last 
10 days?


And note that a GUI file manager might attempt to read every file in a
directory in order to determine its type and display the correct icon.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Gnote equivalent in CentOS 8

2020-12-26 Thread Robert Nichols

On 12/25/20 12:42 AM, Ljubomir Ljubojevic wrote:

As I can see, Cherytree can be used only on Fedora 32 and above due to
dependencies.

I personally use Tomboy for years. I install it from Fedora 28
repository I have set up on my CentOS 8 laptop. In general, Fedora 28
packages can be directly installed to CentOS 8, but I recommend being
careful not to install dependency packages that can mess with apps from
EL repositories.


Thanks. I found that gnote-3.28.0-1.fc28.x86_64.rpm installs just fine
on CentOS 8.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Gnote equivalent in CentOS 8

2020-12-24 Thread Robert Nichols

On 12/24/20 12:41 PM, Frank Cox wrote:

On Thu, 24 Dec 2020 11:04:26 -0600
Robert Nichols wrote:


In CentOS 8, is there an equivalent for the gnote application?


I personally use vimwiki.

Have you tried compiling the Fedora srpm on your Centos box?  A lot of stuff 
that you might want to install on Centos can be compiled with few or no changes 
in many cases.


No luck compiling. I run into the issues with missing -devel packages in CentOS 
8. When I track down the needed -devel packages (gtkmm30-devel, gspell-devel), 
those won't install because of various missing pkgconfig(...) dependencies. 
That's probably why those -devel packages aren't in the CentOS yum repositories.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Gnote equivalent in CentOS 8

2020-12-24 Thread Robert Nichols

In CentOS 8, is there an equivalent for the gnote application?

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox 78 under CentOS 6 -- no sound?

2020-10-20 Thread Robert Nichols

On 10/20/20 2:45 PM, Robert Heller wrote:

At Tue, 20 Oct 2020 13:35:59 -0400 CentOS mailing list  
wrote:



Jonathan Billings  wrote:


  I'm less concerned with firefox being broken on 32-bit CentOS 6
  systems when the platform is only going to live for another month.
  Frankly, I'm glad to see flash die just a little earlier.


It isn't just 32-bit, but also 64-bit, and it isn't just Flash, but
also HTML 5.

To notice the bug, all you have to do is try to watch any video at
Youtube or elsewhere, if the video has sound.


Also, it is specific to FF 78.  FF 68 and eveythhing else in CentOS 6 that
uses audio, works just fine.  This suggests it is possibly a FF 78 problem.
Does FF 78 sound work properly in CentOS 7 and 8?  Does anyone know?


FF 78 seems to work OK here in a CentOS 8 VM.
FF 78 is apparently not offered to CentOS 7. Failed in testing, perhaps??
Latest firefox version for CentOS 7 is 68.0.12.0-1.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox 78 under CentOS 6 -- no sound?

2020-10-17 Thread Robert Nichols

On 10/17/20 3:38 PM, Robert Heller wrote:

I did a yum update on my CentOS 6 laptop and it upgraded Firefox to 78, and
FF stopped seeing my mic and speakers.  Is there some magic I need to do?  As
a short term (?) fix, I downgraded back to Firefox 68.  My system is otherwise
up-to-date.


I'm seeing the same problem (I'm not using any mic) on several CentOS 6 systems.
I posted about it here back on Sept. 29.
https://lists.centos.org/pipermail/centos/2020-September/351667.html

Downgrading, and excluding the 78.3.0-1 from yum is my workaround.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] No sound after latest Firefox update (firefox-78.3.0-1.el6.centos.x86_64)

2020-10-02 Thread Robert Nichols

On 10/1/20 3:24 PM, Jonathan Billings wrote:

On Thu, Oct 01, 2020 at 04:01:29PM -0400, mailist wrote:

The Ubuntu-derived distros are much better suited to desktop.  I run several
of them, as well as
CentOS 7 and 8.  Ubuntu, Kubuntu (Ubuntu with KDE), Lubuntu, Debian, PopOS,
and Zorin.


They all use systemd.  If you're running CentOS 6 to avoid that,
you're out of luck.


I can live with systemd. It's the Gnome 3 UI that I can't stand. I gave
Mate a try briefly, but ran into some issues that I don't recall just
now. I'll give it another try, but I may just give up and switch to
Mint. The major issue for my doing that is the package manager, since
I have several custom packages that are RPMs.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] No sound after latest Firefox update (firefox-78.3.0-1.el6.centos.x86_64)

2020-10-01 Thread Robert Nichols

On 9/30/20 8:25 AM, Johnny Hughes wrote:

On 9/29/20 9:16 PM, Robert Nichols wrote:

With Firefox updated to firefox-78.3.0-1.el6.centos.x86_64, I cannot get
sound from Firefox. I've tried restarting pulseaudio, also logging out
and logging back in. No help. Other A/V apps work just fine. Downgrading
to firefox-68.12.0-1.el6.centos.x86_64 makes sound work again. For now,
I've excluded version firefox-78.3.0-1 from yum updates.

Anyone else seeing this? Any hints?



No problem here .. but as a reminder .. EOL for CentOS-6 is about 1
month away (Nov 2020).

That means , once we hit it, no more updates.


I still have 3 CentOS-6 installations: 1 desktop, 1 laptop, and
1 virtual machine. On all of them, I get no sound from firefox-78.3.0-1
and have to downgrade to firefox-68.12.0-1. I've tried with all
add-ons disabled (Boy, youtube is a pain without adblock.) and
there is still no sound. I don't know what else to try.

I don't know what I'll do after CentOS-6 goes EOL. I absolutely
cannot tolerate CentOS-8.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] No sound after latest Firefox update (firefox-78.3.0-1.el6.centos.x86_64)

2020-09-29 Thread Robert Nichols

With Firefox updated to firefox-78.3.0-1.el6.centos.x86_64, I cannot get sound 
from Firefox. I've tried restarting pulseaudio, also logging out and logging 
back in. No help. Other A/V apps work just fine. Downgrading to 
firefox-68.12.0-1.el6.centos.x86_64 makes sound work again. For now, I've 
excluded version firefox-78.3.0-1 from yum updates.

Anyone else seeing this? Any hints?

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using CentOS 7 to attempt recovery of failed disk

2020-09-26 Thread Robert Nichols

On 9/26/20 12:40 PM, Jerry Geis wrote:

Hello

I did try the "dd conv=noerror …"
The ddrescue - doesnt stop - it just doesnt "continue" past a certain
point. Somewhere around the 117G mark - it just doesnt go past that .
(same with dd, gets to 117G and just doesnt continue.
I have let the dd run all night - did not go past the 117G.


You can interrupt ddrescue and then resume with "-R" (--reverse) option. That 
will make it start from the end of the device and read backward toward the trouble area.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Recover from an fsck failure

2020-05-28 Thread Robert Nichols

On 5/28/20 1:33 PM, James B. Byrne via CentOS wrote:

/dev/mapper/vg_voinet01-lv_log
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2 filesystem
(and not swap or ufs or something else), then the superblock is corrupt, and
you might try running e2fsck with an alternate superblock:
   e2fsk -b 8193 


What output do you get from:

file -s /dev/mapper/vg_voinet01-lv_log
lsblk -f /dev/mapper/vg_voinet01-lv_log

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Hard disk activity will not die down

2020-02-03 Thread Robert Nichols

On 2/3/20 3:13 PM, Laurent Wandrebeck wrote:

Hi,

Ext4 is (slowly) initializing group blocks as far as I can remember. Patience 
should do the trick :)


Indeed. See the manpage for mkfs.ext4 and scroll down to the "lazy_itable_init"
extended option, which is enabled by default.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

 

Le 3 février 2020 20:28:27 GMT+01:00, Chris Pemberton  a 
écrit :

I updated my backup server this weekend from CentOS 7 to CentOS 8.
OS disk is SSD, /dev/md0 are two 4TB WD mechanical drives.
No hardware was changed.

1. wiped all drives
2. installed new copy of 8 on system SSD
3. re-created the 4TB mirror /dev/md0 with the same WD mechanical
drives
4. created the largest single partition possible on /dev/md0 and
formatted
it ext4
5. waited several hours for the creation of /dev/md0 to finish
6. copied all data back onto /dev/md0

Both installs were a full workstation, with Gnome.
The mirror is mounted via fstab as:
/dev/md0 /mnt/raid1 ext4 defaults 0 0

Under CentOS 7 the /dev/md0 mirror was silent when not in use.  Now
under
8, the hard drives are constantly "pinged" by some process, at about
the
same frequency as a heartbeat monitor.  I can not figure out what
process
is keeping them active.  iotop does show a process named
[ext4lazyinput].


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using shared printers in CentOS 8

2020-01-06 Thread Robert Nichols

On 1/6/20 10:00 PM, Robert Nichols wrote:

On 1/6/20 7:52 PM, Leon Fauster via CentOS wrote:

Am 06.01.20 um 22:44 schrieb Robert Nichols:

How do I let a CentOS 8 client make use of the shared printers advertised by CUPS on the 
network? In CentOS 6, this was just a matter in a checkbox "Show printers shared by 
other systems" on the CUPS Admin page. Is this function still available somehow? 
Manually adding all the shared printers on every client would be painful.



I used:

http://localhost:631/


Yes, that's how I'm getting to the CUPS Admin page, which is lacking the option 
to use printers that the print server is sharing.


Is the print server running CentOS6?


Yes, and other systems make use of its shared printers just fine. It's the 
CentOS 8 CUPS client that doesn't offer to use shared printers.  Does CUPS 2.x 
perhaps have some hidden setting to operate as a client vs. as a server?  I've 
never had to configure that before.


OK, I've found a workaround of not bothering with cupsd service locally and 
just putting a ServerName in /etc/cups/client.conf . That means there is no 
local spool to accept jobs if the print server or network is down temporarily, 
but for my use that's acceptable. End of story.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using shared printers in CentOS 8

2020-01-06 Thread Robert Nichols

On 1/6/20 7:52 PM, Leon Fauster via CentOS wrote:

Am 06.01.20 um 22:44 schrieb Robert Nichols:

How do I let a CentOS 8 client make use of the shared printers advertised by CUPS on the 
network? In CentOS 6, this was just a matter in a checkbox "Show printers shared by 
other systems" on the CUPS Admin page. Is this function still available somehow? 
Manually adding all the shared printers on every client would be painful.



I used:

http://localhost:631/


Yes, that's how I'm getting to the CUPS Admin page, which is lacking the option 
to use printers that the print server is sharing.


Is the print server running CentOS6?


Yes, and other systems make use of its shared printers just fine. It's the 
CentOS 8 CUPS client that doesn't offer to use shared printers.  Does CUPS 2.x 
perhaps have some hidden setting to operate as a client vs. as a server?  I've 
never had to configure that before.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Using shared printers in CentOS 8

2020-01-06 Thread Robert Nichols

How do I let a CentOS 8 client make use of the shared printers advertised by CUPS on the 
network? In CentOS 6, this was just a matter in a checkbox "Show printers shared by 
other systems" on the CUPS Admin page. Is this function still available somehow? 
Manually adding all the shared printers on every client would be painful.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 8 Mate?

2019-09-25 Thread Robert Nichols

On 9/25/19 1:46 PM, Chris Adams wrote:

Once upon a time, Robert Nichols  said:

the lack of VM snapshot capability is a total deal-breaker for me.


The capability is still there and works just the same as before.  The
only change is that the new preferred tool for graphical VM management,
Cockpit, doesn't yet support making snapshots.  virt-manager is still
there for now (presumably until Cockpit grows all the necessary
support), and the underlying virsh support hasn't changed.


So, creating a snapshot with "qemu snapshot -c ..." still works as before. 
Good. Frankly, I was wondering how they had managed to break that function of the QCOW2 
storage format.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 8 Mate?

2019-09-24 Thread Robert Nichols

On 9/24/19 9:12 PM, Fred Smith wrote:


OTOH, if I was forced to use Gnome, I may well go shoot myself.



I was thinking I might as well go back to Windows, but that's pretty much the 
same thing.

Right now I'm rather dismayed by RHEL/CentOS 8. I was hoping to skip CentOS 7 
and go straight from 6 to 8. But right now there's just too much missing in 
version 8. I can't tolerate the Gnome 3 desktop, and the lack of VM snapshot 
capability is a total deal-breaker for me. It's looking like CentOS 6 will go 
EOL before version 8 is usable for me. I might end up switching to Mint.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox 60 crashes when trying to save an image

2018-07-15 Thread Robert Nichols

On 07/15/2018 12:49 PM, Matthew Phelps wrote:

This is a known issue. See
https://bugzilla.redhat.com/show_bug.cgi?id=1596852 for a patch to the
/usr/bin/firefox wrapper script.



On Sun, Jul 15, 2018 at 1:19 PM Robert Nichols 
wrote:


On any web page with an image, if i right-click on the image and select
"Save Image As...", firefox crashes.

Final messages from stderr:
(firefox:3401): GLib-GIO-ERROR **: No GSettings schemas are installed on
the system
[Child 3502, Chrome_ChildThread] WARNING: pipe error (3): Connection reset
by peer: file
/builddir/build/BUILD/firefox-60.1.0/ipc/chromium/src/chrome/common/ipc_channel_posix.cc,
line 353
Trace/breakpoint trap (core dumped)

I've reported this on RHEL bugzilla (1601254), but on the off chance that
this is a problem with the CentOS build I'm posting here as well. This is
firefox-60.1.0-5.el6.centos.x86_64 on CentOS 6.10.


The patch for bug 1596852 fixes the problem for me. Thanks much. My bugzilla 
search
wasn't deep enough to uncover that one.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Firefox 60 crashes when trying to save an image

2018-07-15 Thread Robert Nichols

On any web page with an image, if i right-click on the image and select "Save Image 
As...", firefox crashes.

Final messages from stderr:
(firefox:3401): GLib-GIO-ERROR **: No GSettings schemas are installed on the 
system
[Child 3502, Chrome_ChildThread] WARNING: pipe error (3): Connection reset by 
peer: file 
/builddir/build/BUILD/firefox-60.1.0/ipc/chromium/src/chrome/common/ipc_channel_posix.cc,
 line 353
Trace/breakpoint trap (core dumped)

I've reported this on RHEL bugzilla (1601254), but on the off chance that this 
is a problem with the CentOS build I'm posting here as well. This is 
firefox-60.1.0-5.el6.centos.x86_64 on CentOS 6.10.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] In /etc/auto.master, why "+auto.master"?

2018-01-24 Thread Robert Nichols

Why is the line "+auto.master" present in the /etc/auto.master file? Does this not create 
a loop, and perhaps is the reason why, on every boot, I see the message, "automount[3260]: 
problem reading master map, maximum wait exceeded"?

This is in an unmodified /etc/auto.master from autofs-5.0.5-133.el6_9.x86_64 in 
CentOS 6.9. The only other non-comment lines in that file are:
   /misc   /etc/auto.misc
   /net-hosts

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] LUKS question

2017-12-12 Thread Robert Nichols

On 12/12/2017 08:41 AM, Wells, Roger K. wrote:

I have existing systems with un-encrypted disks.
I have tried unsuccessfully to encrypt them using LUKS.
Has anyone out there been able to encrypt an existing system (after the fact, 
so to speak)?


You can do that with cryptsetup-reencrypt, but it needs to be able to make 
space for the ~2MB LUKS header ahead of the filesystem in the partition. That's 
a fairly risky operation -- shrinking the filesystem slightly and shifting it 
over. An alternative is LUKS with a detached header, but maintaining that 
relationship is an administrative headache with a severe penalty for error.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Failed attempts

2017-11-29 Thread Robert Nichols

On 11/28/2017 11:04 AM, Valeri Galtsev wrote:> I was always unimpressed with> persistence of attempts to make 
more secure (less pickable) cylinder cased> locks (precision, multi-level, pins at a weird locations/angles). 
Whereas> there exists "disk based design" (should I say Abloy?), which with my> knowledge of mechanics 
I can not figure the way to pick. So I consider> them un-pickable. Why aren't they widely used [in US]? Because 
there may> be the reason for powers there be to have locks everywhere pickable. On> the other hand, I do not have 
Abloy locks, as they do keep records that> link my particular lock to key that opens it. So, there is viable 
vector> of attack ;-)
A quick YouTube search for "abloy lock picking" might change your opinion.
It takes a special tool, but those are available and not all that hard
to make.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] skypeforlinux lacks dependencies, won't update

2017-11-20 Thread Robert Nichols

On 11/20/2017 07:13 PM, Mark LaPierre wrote:

On 11/20/17 03:44, wwp wrote:

Hello,


On Mon, 20 Nov 2017 12:58:21 +1300 Peter  wrote:


On 20/11/17 11:30, milos.blazevic wrote:

There's the unstable version that installs and works:
https://www.skype.com/en/insider/


Thanks for pointing this out, it looks like they removed the newer
GLIBCXX requirement that was added for 8.10, possibly due to popular demand?


Maybe. Unpacking the rpm works, anyway, I never encountered a single
binary issue since I use it like that (ordinary use, I probably don't
use that text encoding or whatever submodule which depends on a newer
libstdc++).




Please explain "Unpacking the RPM".  How is one to do that when there
are broken dependencies?


Easy.
   rpm2cpio /path/to/whatever.rpm | cpio -idm

Probably best to do that in a temporary directory and see what you get.
See the cpio manpage for other options.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Intermittently unresponsive mouse

2017-11-07 Thread Robert Nichols

On 11/07/2017 06:10 PM, John R Pierce wrote:

On 11/7/2017 3:47 PM, H wrote:

I think you were right. I moved the computer a little bit closer and no longer 
have the problem. It is a Bluetooth mouse, I did not know that they were that 
sensitive to the distance...



Bluetooth in absence of other 2.4Ghz  interference (cough, wifi) can work 
reasonably well at like 20-30 feet.    if there's active nearby wifi on 2.4Ghz, 
forget it, much closer.


USB 3.0 peripherals can also impact Bluetooth and other 2.4GHz devices severely.

https://www.intel.com/content/dam/www/public/us/en/documents/white-papers/usb3-frequency-interference-paper.pdf
https://www.pcmag.com/article2/0,2817,2423604,00.asp
http://support.logitech.com/en_gb/article/38032

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 6 P2V alternatives?

2017-11-03 Thread Robert Nichols

On 11/03/2017 09:02 AM, hw wrote:

Robert Nichols wrote:



How would you recover if that server were suddenly destroyed, let's say by a 
power supply failure that fried the motherboard and all the disks? If you can't 
bring up a machine on new, bare iron starting with nothing but your backups and 
a CD or USB stick with a recovery tool, you need to seriously reconsider your 
backup strategy.


That´s a very good point.

What options are there to make complete and consistent backups of machines
and VMs while they are running?  Just shutting down a VM to make a backup
is troublesome because you sometimes need to run 'virsh shutdown xx' several
times for the VM to actually shut down, and I have VMs that do not shut down
no matter how often you try.  If you manage to shut down the VM, there is no
guarantee that it will actually restart when you try --- and that goes for
non-VMs as well.  Shutting them down manually frequently to make backups is
not an option, either.


Every backup tool that can be run on a physical machine can also be run in the 
VM. For databases that cannot be simply copied while they are active, there 
should be a way to generate a snapshot or other consistent representation that 
can be backed up and restored if necessary, and any database that does not 
provide such a capability should not be considered suitable for the task at 
hand. Long-running jobs should always have checkpoints to allow them to be 
continued should the machine crash. (I have such a job running right now. 
Coincidentally, it's verifying the consistency of 3 years of backups that I 
just reorganized.)

There is no "one size fits all" answer. The needs of a transaction processing 
system that can never, ever lose a transaction once it's been acknowledged are radically 
different from those of a system that can afford to lose an hours, or days, worth of work.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 6 P2V alternatives?

2017-11-03 Thread Robert Nichols

On 11/03/2017 06:09 AM, hw wrote:

Sorin Srbu wrote:

Hello all,

This week I've tested out a few ways to do a P2V on a rather ancient CentOS
6 server, in order to move it to a Hyper-V host.

So far my tests have failed rather spectacularly.
Initially I was set on doing a simple dd-routine, but was told that the
server cannot be taken off-line as it's being used daily, so had to look for
other solutions.

The disk setup is currently as follows:

Three 500 GB sata-disks, sda, sdb and sdc, are used to build a software raid
called md0. No LVM's here.

Sdd is a 120 GB drive, with partitions for boot, swap, home and /.
No LVM's here either.

The farthest I've gotten is with the Rear solution.
http://relax-and-recover.org/

The backup goes well, but recovery for some reason fails to create initramfs
with all the installed kernels, as well as failing with an error saying it
cannot find /boot/grub, after which the recovery terminates.

Virtualizing systems like this is kinda' new to me, having it done on
Windows only, and I'm not really sure
how to proceed when it's a CentOS system in question.

The physical CentOS-server runs a few license managers and nfs-shares that
server molecular modeling software, that are rather intricately set up (I
inherited this server some fifteen years ago).

Are there any easier ways to do a P2V at all?



I think I would try to create a VM that has the physical disks passed through
and also has access to whatever storage it´s supposed to reside on once the
conversion to a VM is completed.  Then copy it from the physical disks to that
storage.

Converting without shutting the machine down is probably not possible.


How would you recover if that server were suddenly destroyed, let's say by a 
power supply failure that fried the motherboard and all the disks? If you can't 
bring up a machine on new, bare iron starting with nothing but your backups and 
a CD or USB stick with a recovery tool, you need to seriously reconsider your 
backup strategy.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NoScript allow scripts globally reversible?

2017-11-01 Thread Robert Nichols

On 11/01/2017 09:51 AM, Michael Hennebry wrote:


I'm running NoScript because otherwise Firefox freezes up a lot.
Recently I've had difficulty accessing a site.
I suspect the reason is that it uses redirection in a way that
frustrates my efforts to give it permission.
To test the notion, I'm considering temporarily allowing script globally.
How hard is it to reverse?
Will I need to redo previous permissions one at a time?


No, your saved permissions will not be affected.
Just click on "Forbid scripts globally" and you will be right back to where you 
were before.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [External] /boot partition too small

2017-10-11 Thread Robert Nichols

On 10/11/2017 02:04 AM, Toralf Lund wrote:

On 10/10/17 15:55, KM wrote:

First off - let me say I am not an administrator.   I need to know if there is 
an easy way to increase my /boot partition.  When I installed CentOS 6 after 
running 5, it was my oversight not to increase the /boot size.  it's too small 
and I can't do yum updates.
if it's not easy to actually increase it, is it safe to take a chunk in my root 
filesystem (like /new.boot or something) and just mount it as /boot from now on 
so it uses the space or is that not a good idea?  I am sure I could easily copy 
the rpms/kernel stuff over to it and then unmounts the real /boot and mount 
this new area as /boot.
Can you administrators let me know what you think of all this?   Thanks in 
advance.

Hi,

Since a lot of people seem to say none of the above can be done, I'm starting 
to feel slightly unsure, but I though gparted could extend, shrink and move 
partitions while preserving data.


You would be asking gparted to:
1. Reach inside an LVM PV and shrink one filesystem and its LV,
2. Rearrange the extents inside the PV to make free space at the beginning,
3. Move the start of the PV and adjust all of the starting offsets for the 
LVs,
4. Finally, enlarge partition 1 into the freed-up space.

Even if gparted was willing to attempt that, there is no way I would trust it 
to do it correctly.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] /boot partition too small

2017-10-10 Thread Robert Nichols

On 10/10/2017 09:53 AM, KM wrote:

  Thanks for all of the input, not really sure what if anything I will do.  i 
was hoping it would be easy and i could just create a /boot in root, and copy 
the actual boot contents to it and use it.   wishful thinking i guess.  just to 
give a complete picture here is the current partitioning on the serverin 
case anyone wants to say anymore.  Thanks in advance.
Filesystem    Size  Used Avail Use% Mounted on
/dev/mapper/vg_bldsrv-lv_root
    50G   26G   22G  55% /
tmpfs 9.0G  156K  9.0G   1% /dev/shm
/dev/sda1  96M   33M   59M  36% /boot
/dev/mapper/vg_bldsrv-lv_home
   861G  371G  447G  46% /home


Your root filesystem is in an LVM volume. CentOS 6 is still using GRUB legacy, 
which does not support /boot in LVM.

For you, there really is no way around the messy and delicate process of 
shrinking and relocating a filesystem and the LVM volumes to make space for a 
larger /boot partition. Frankly, I would hesitate to do that in place on my own 
system, and I have quite a bit of experience with doing unspeakable things with 
LVM volumes. You really need to do that resizing in the context of moving 
everything to another disk.

If it's a server that you don't want to take down for the time it takes for 
that procedure, you can do amazing things with pvmove while your system 
continues to run, but you still need another disk to hold those volumes 
temporarily.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Flush memory on a server?

2017-09-09 Thread Robert Nichols

On 09/09/2017 07:55 AM, Nicolas Kovacs wrote:

Le 09/09/2017 à 14:41, Phil Perry a écrit :

Why were you surprised? Linux systems use the available RAM, surely you
understand that?


I'm surprised because my system used the available RAM and then it even
began to swap.



Of course there is the possibility that you have discovered a bug


Minimal CentOS 7 installation with BIND, Apache, MySQL, Postfix and
Dovecot, regularly updated.

Hence my post. Wondering if other CentOS users experienced something
similar.


Every system that runs continuously for more that a few days will have some 
pages that were used once when some long-running process started and were never 
referenced again. Those pages will eventually migrate out to swap, and that's 
the best place for them. Right now, I see that this system has been up for 16 
days and has ~270MB of swap used. I typically see ~500MB of swap used when the 
system has been running a while longer.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Errors on an SSD drive

2017-08-11 Thread Robert Nichols

On 08/11/2017 02:32 PM, m.r...@5-cent.us wrote:

Robert Nichols wrote:

On 08/11/2017 12:16 PM, Chris Murphy wrote:

On Fri, Aug 11, 2017 at 7:53 AM, Robert Nichols
<rnicholsnos...@comcast.net> wrote:

On 08/10/2017 11:06 AM, Chris Murphy wrote:


On Thu, Aug 10, 2017, 6:48 AM Robert Moskowitz <r...@htt-consult.com>
wrote:

On 08/09/2017 10:46 AM, Chris Murphy wrote:


If it's a bad sector problem, you'd write to sector 17066160 and see
if the drive complies or spits back a write error. It looks like a bad
sector in that the same LBA is reported each time but I've only ever
seen this with both a read error and a UNC error. So I'm not sure
it's a bad sector.



That'll read that sector and display hex and ascii. If you recognize
the
contents, it's probably user data. Otherwise, it's file system
metadata or
a system binary.

If you get nothing but an I/O error, then it's lost so it doesn't
matter what it is, you can definitely overwrite it.

dd if=/dev/zero of=/dev/sda seek=17066160 count=1



You really don't want to do that without first finding out what file is
using that block. You will convert a detected I/O error into silent
corruption ofthat file, and that is a much worse situation.


Yeah he'd want to do an fsck -f and see if repairs are made, and also



fsck checks filesystem metadata, not the content of files. It is not going
to detect that a file has had 512 bytes replaced by zeros. If the file
is a non-configuration file installed from an RPM, then "rpm -Va" should
flag it.

LVM certainly makes the procedure harder. Figuring out what filesystem
block corresponds to that LBA is still possible, but you have to examine
the LV layout in /etc/lvm/backup/ and learn more than you probably wanted
to know about LVM.


I posted a link yesterday - let me know if you want me to repost it - to
someone's web page who REALLY knows about filesystems and sectors, and how
to identify the file that a bad sector is part of.

And it works. I haven't needed it in a few years, but I have followed his
directions, and identified the file on the bad sector.


But, have you tried it when LVM is involved? That's an additional mapping
layer for disk addresses that is not covered in the page you linked, which
is just a partial copy of the smartmontools bad block HOWTO at
https://www.smartmontools.org/browser/trunk/www/badblockhowto.xml .
That smartmontools page does have a section that deals with LVM. I advise
not looking at that on a full stomach.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Errors on an SSD drive

2017-08-11 Thread Robert Nichols

On 08/11/2017 12:16 PM, Chris Murphy wrote:

On Fri, Aug 11, 2017 at 7:53 AM, Robert Nichols
<rnicholsnos...@comcast.net> wrote:

On 08/10/2017 11:06 AM, Chris Murphy wrote:


On Thu, Aug 10, 2017, 6:48 AM Robert Moskowitz <r...@htt-consult.com>
wrote:




On 08/09/2017 10:46 AM, Chris Murphy wrote:


If it's a bad sector problem, you'd write to sector 17066160 and see if


the


drive complies or spits back a write error. It looks like a bad sector
in
that the same LBA is reported each time but I've only ever seen this
with
both a read error and a UNC error. So I'm not sure it's a bad sector.

What is DID_BAD_TARGET?



I have no experience on how to force a write to a specific sector and
not cause other problems.  I suspect that this sector is in the /
partition:

Disk /dev/sda: 240.1 GB, 240057409536 bytes, 468862128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xc89d

  Device Boot  Start End  Blocks   Id  System
/dev/sda12048 2099199 1048576   83  Linux
/dev/sda2 2099200 4196351 1048576   82  Linux swap /
Solaris
/dev/sda3 4196352   468862127   232332888   83  Linux



LBA 17066160 would be on sda3.

dd if=/dev/sda skip=17066160 count=1 2>/dev/null | hexdump -C

That'll read that sector and display hex and ascii. If you recognize the
contents, it's probably user data. Otherwise, it's file system metadata or
a system binary.

If you get nothing but an I/O error, then it's lost so it doesn't matter
what it is, you can definitely overwrite it.

dd if=/dev/zero of=/dev/sda seek=17066160 count=1



You really don't want to do that without first finding out what file is
using
that block. You will convert a detected I/O error into silent corruption of
that file, and that is a much worse situation.


Yeah he'd want to do an fsck -f and see if repairs are made, and also
rpm -Va. There *will* be legitimately modified files, so it's going to
be tedious to exactly sort out the ones that are legitimately modified
vs corrupt. If it's a configuration file, I'd say you could ignore it
but any modified binaries other than permissions need to be replaced
and is the likely culprit.

The smartmontools page has hints on how to figure out what file is
affected by a particular sector being corrupt but the more layers are
involved the more difficult that gets. I'm not sure there's an easy to
do this with LVM in between the physical device and file system.


fsck checks filesystem metadata, not the content of files. It is not going
to detect that a file has had 512 bytes replaced by zeros. If the file
is a non-configuration file installed from an RPM, then "rpm -Va" should
flag it.

LVM certainly makes the procedure harder. Figuring out what filesystem
block corresponds to that LBA is still possible, but you have to examine
the LV layout in /etc/lvm/backup/ and learn more than you probably wanted
to know about LVM.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Errors on an SSD drive

2017-08-11 Thread Robert Nichols

On 08/10/2017 11:06 AM, Chris Murphy wrote:

On Thu, Aug 10, 2017, 6:48 AM Robert Moskowitz  wrote:




On 08/09/2017 10:46 AM, Chris Murphy wrote:

If it's a bad sector problem, you'd write to sector 17066160 and see if

the

drive complies or spits back a write error. It looks like a bad sector in
that the same LBA is reported each time but I've only ever seen this with
both a read error and a UNC error. So I'm not sure it's a bad sector.

What is DID_BAD_TARGET?


I have no experience on how to force a write to a specific sector and
not cause other problems.  I suspect that this sector is in the /
partition:

Disk /dev/sda: 240.1 GB, 240057409536 bytes, 468862128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xc89d

 Device Boot  Start End  Blocks   Id  System
/dev/sda12048 2099199 1048576   83  Linux
/dev/sda2 2099200 4196351 1048576   82  Linux swap /
Solaris
/dev/sda3 4196352   468862127   232332888   83  Linux



LBA 17066160 would be on sda3.

dd if=/dev/sda skip=17066160 count=1 2>/dev/null | hexdump -C

That'll read that sector and display hex and ascii. If you recognize the
contents, it's probably user data. Otherwise, it's file system metadata or
a system binary.

If you get nothing but an I/O error, then it's lost so it doesn't matter
what it is, you can definitely overwrite it.

dd if=/dev/zero of=/dev/sda seek=17066160 count=1


You really don't want to do that without first finding out what file is using
that block. You will convert a detected I/O error into silent corruption of
that file, and that is a much worse situation.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] logical volume is unreadable

2017-07-06 Thread Robert Nichols

On 07/06/2017 01:31 PM, Robert Nichols wrote:

On 07/06/2017 10:47 AM, Volker wrote:

On 06.07.2017 15:35, Robert Nichols wrote:

That looks like a snapshot volume that became invalid because it was
filled to capacity. Such a snapshot is lost forever. It si your
responsibility to monitor snapshot usage to make sure it does not run
out of space. The base volume, lv-vm-tviewer_vorigin, should still have
its original content.



That's it. Thanks for the information.

How would I remove the only the snapshot but not the base volume? Will

$ lvremove /dev/vg0/lv-vm-tviewer

leave the base volume untouched?


That should do it. You will get one less warning if you deactivate that LV 
first:
 lvchange -an vg0/lv-vm-tviewer

You will still get an overly alarmist warning that removing the snapshot LV will change 
the source LV. Don't worry about it. The only "change" is that the source LV 
will no longer be flagged as a snapshot origin.


I should add, you may have to re-activate that base LV:
 lvchange -ay vg0/lv-vm-tviewer_vorigin

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] logical volume is unreadable

2017-07-06 Thread Robert Nichols

On 07/06/2017 10:47 AM, Volker wrote:

On 06.07.2017 15:35, Robert Nichols wrote:

That looks like a snapshot volume that became invalid because it was
filled to capacity. Such a snapshot is lost forever. It si your
responsibility to monitor snapshot usage to make sure it does not run
out of space. The base volume, lv-vm-tviewer_vorigin, should still have
its original content.



That's it. Thanks for the information.

How would I remove the only the snapshot but not the base volume? Will

$ lvremove /dev/vg0/lv-vm-tviewer

leave the base volume untouched?


That should do it. You will get one less warning if you deactivate that LV 
first:
lvchange -an vg0/lv-vm-tviewer

You will still get an overly alarmist warning that removing the snapshot LV will change 
the source LV. Don't worry about it. The only "change" is that the source LV 
will no longer be flagged as a snapshot origin.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] logical volume is unreadable

2017-07-06 Thread Robert Nichols

On 07/06/2017 04:43 AM, Volker wrote:

Hi all,

one of my lv has become completely unaccessible. Every read access
results in a buffer io error:

Buffer I/O error on dev dm-13, logical block 0, async page read

this goes for every block in the lv. A ddrescue failed on every single
block.


$ lvdisplay
   --- Logical volume ---
   LV Path/dev/vg0/lv-vm-tviewer
   LV Namelv-vm-tviewer
   VG Namevg0
   LV UUIDXdgHFs-RHVZ-9BAH-1ZSK-yiBX-qqf0-273CtT
   LV Write Accessread/write
   LV Creation host, time host1, 2016-02-06 14:58:19 +0100
   LV snapshot status INACTIVE destination for lv-vm-tviewer_vorigin
   LV Status  available
   # open 0
   LV Size58.59 GiB
   Current LE 15000
   COW-table size 5.86 GiB
   COW-table LE   1500
   Snapshot chunk size4.00 KiB
   Segments   1
   Allocation inherit
   Read ahead sectors auto
   - currently set to 8192
   Block device   253:13


That looks like a snapshot volume that became invalid because it was filled to 
capacity. Such a snapshot is lost forever. It si your responsibility to monitor 
snapshot usage to make sure it does not run out of space. The base volume, 
lv-vm-tviewer_vorigin, should still have its original content.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] sha256sum a dvd

2017-04-25 Thread Robert Nichols

On 04/24/2017 12:39 PM, Jonathan Billings wrote:

On Mon, Apr 24, 2017 at 12:53:36PM -0400, James B. Byrne wrote:


CentOS-6.9

I am trying to verify a locally created dvd.  I am using sha256sum in
this fashion:
sha256sum /dev/sr0

Which gave this result:

sha256sum: /dev/sr0: Input/output error


So I tried this:
sha256sum /dev/cdrom

Which, after some time, also produces:

sha256sum: /dev/cdrom: Input/output error

What does this mean and how do I fix it?


It means that you're getting an error while reading one of the sectors
of the DVD.  It might be a problem with the disc, but it could also be
a problem with the hardware.

Try doing a dd to copy all the bits to a local file, and pay attention
to see if it has a problem reading the disc.  Then run a sha256sum on
the file it created.
 
Note also that the sha256sum of the whole disk is going to include the padding that gets appended, and so will not match the sha256sum of the ISO file that was written to the disk. The "isosize" command will tell you the size of the original file, and you need to pass just that many bytes to the "sha256sum" command.


--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] upgrading Mysql 5.0.95

2017-03-19 Thread Robert Nichols

On 03/19/2017 07:32 AM, Mark Weaver wrote:

I'm getting things ready to upgrade my aging installation of MySQL
5.0.95 on my CentOS 5 LAMP server. With the impending EOL date of 3.31
fast approaching my sense of doom and urgency is increasing.


Packages don't disappear after 3/31. They just get moved to vault.centos.org, 
where they will remain, never to be updated again. Heck, you can still get 
CentOS 2.1 packages from there.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] question about directory size in linux..

2017-02-22 Thread Robert Nichols

On 02/22/2017 12:45 PM, Jason Welsh wrote:

So its normal behavior.. thanks!

Jason



On 02/22/2017 01:40 PM, Gordon Messmer wrote:

On 02/22/2017 06:34 AM, Jason Welsh wrote:

How does the directory *itself* have a size of 2.8 megs?



If you write a large number of directory entries in a directory, the directory 
will grow in order to provide storage for those directory entries.  You can 
imagine a directory as a text file containing all of the file names in the 
directory, with references to the location of those files, if that helps you 
understand why the directory itself will grow.


And for ext2/3/4 at least, an enlarged directory never shrinks. If the size 
gets really excessive (perhaps a rogue process created a huge number of files, 
which have since been deleted), you need to move everything you want to save to 
a new directory, remove the bloated directory, and then rename the new 
directory back to the old name.

You can also run e2fsck with the "-D" (optimize directories) option, but that 
acts on _all_ the directories in the filesystem and can take quite a long time.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7, systemd, NetworkMangler, oh, my

2017-02-15 Thread Robert Nichols

On 02/15/2017 07:41 AM, Johnny Hughes wrote:

On 02/15/2017 07:34 AM, Leroy Tennison wrote:

Too much temptation to resist, I don't know which one of us is older but I have a feeling it's a 
"horse race".  Like you, I still have a land line, WiFi is too slow and "WiFi 
security" seems to be an oxymoronic phrase.  Why people text (or IM for that matter) anything 
other than a one-liner is beyond me.

Now for the real issue, what happens when Network Manager (Systemd, journald, 
etc.) breaks?  Who is going to fix it?  Hiding the complexity in software 
effectively dumbs us down leaving us helpless when problems surface.  Anyone 
who has worked with Microsoft understands - give me the command prompt any day 
rather than layers of GUI hiding those possibly cryptic but also possibly 
useful messages.



The people who are going to fix it are people who have RHCE certs and/or
computer science degrees who work for the companies running Linux.


Thank you for agreeing that systemd is not suitable for use outside of an 
organization that employs such people.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Ghostscript update?

2017-01-10 Thread Robert Nichols

On 01/10/2017 11:28 AM, Frank Cox wrote:

Has the issue with the last ghostscript update been resolved?  I temporarily 
added ghostcript to the excludes line in my yum.conf to prevent problems and 
haven't seen any more mention of it here.


Nothing yet. You can add yourself to the CC list at 
 to monitor progress.

If you exclude only the specific version, you will get subsequent package 
updates as they become available.
exclude=ghostscript-8.70-21.el6_8.1

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ghostscript update breaks evince

2017-01-04 Thread Robert Nichols

On 01/04/2017 04:49 PM, David C. Miller wrote:


- Original Message -

From: "Robert Nichols" <rnicholsnos...@comcast.net>
To: centos@centos.org
Sent: Wednesday, January 4, 2017 12:21:48 PM
Subject: [CentOS] ghostscript update breaks evince



Today's ghostscript.x86_64 0:8.70-21.el6_8.1 update causes evince to refuse to
display any postscript file. Running evince from a terminal session, I see the
errors:

invalidaccess -7
invalidaccess -7
invalidaccess -7

** (evince:1252): WARNING **: Error rendering thumbnail

Downgrading to ghostscript.x86_64 0:8.70-21.el6 corrects the problem.

Anyone else seeing this?

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___



I'm seeing this too. I just submitted a bug to RedHat.


Thanks. I didn't want to do that without seeing if it was "just me."

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] ghostscript update breaks evince

2017-01-04 Thread Robert Nichols

Today's ghostscript.x86_64 0:8.70-21.el6_8.1 update causes evince to refuse to
display any postscript file. Running evince from a terminal session, I see the
errors:

invalidaccess -7
invalidaccess -7
invalidaccess -7

** (evince:1252): WARNING **: Error rendering thumbnail

Downgrading to ghostscript.x86_64 0:8.70-21.el6 corrects the problem.

Anyone else seeing this?

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-virt] Running i386 guests under CentOS7 amd64 kvm host

2016-11-30 Thread Robert Nichols

On 11/30/2016 09:54 AM, C. L. Martinez wrote:

On Wed 30.Nov'16 at  8:56:53 -0600, Robert Nichols wrote:

On 11/30/2016 02:21 AM, C. L. Martinez wrote:

On Tue 29.Nov'16 at 11:54:10 -0600, Robert Nichols wrote:

In Step 5 of Create a New Virtual Machine, click on "Advanced options" and you will find the 
architecture selection options "x86_64" and "i686".



Thanks Bob, but there is not "Advanced options". I can use "Customize configuration 
before install", but if I use this option, architecture is fixed and it can not be changed ...

I am using virt-manager 1.2.1-8.el7.


Looks like it's absent in that version. It's there in 
virt-manager-0.9.0-31.el6.x86_64.

--


But 0.9.0 is older than 1.2.1 ...


I thought that was obvious. I was just explaining where I was seeing that 
option.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Running i386 guests under CentOS7 amd64 kvm host

2016-11-30 Thread Robert Nichols

On 11/30/2016 02:21 AM, C. L. Martinez wrote:

On Tue 29.Nov'16 at 11:54:10 -0600, Robert Nichols wrote:

On 11/29/2016 08:46 AM, C. L. Martinez wrote:

On Tue 29.Nov'16 at 22:34:59 +0800, -=X.L.O.R.D=- wrote:

Dear Martinez,
You should be able to search the ubuntu  guest under virtManager from CentOS
desktop environment (Gnome for example).
For New VM machine creation with Ubuntu guest, you just select OS type
"Linux", Version " ubuntu12 " subject to available. Hope that helps!

Source:
http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-kvm-qemu-on-cent
os-7-rhel-7.html
Source:
https://raymii.org/s/articles/virt-install_introduction_and_copy_paste_distr
o_install_commands.html

Xlord


Thanks XLord, but using virtual manager, there is not an option to select "i386" or 
"amd64" guest ...


In Step 5 of Create a New Virtual Machine, click on "Advanced options" and you will find the 
architecture selection options "x86_64" and "i686".



Thanks Bob, but there is not "Advanced options". I can use "Customize configuration 
before install", but if I use this option, architecture is fixed and it can not be changed ...

I am using virt-manager 1.2.1-8.el7.


Looks like it's absent in that version. It's there in 
virt-manager-0.9.0-31.el6.x86_64.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Running i386 guests under CentOS7 amd64 kvm host

2016-11-29 Thread Robert Nichols

On 11/29/2016 08:46 AM, C. L. Martinez wrote:

On Tue 29.Nov'16 at 22:34:59 +0800, -=X.L.O.R.D=- wrote:

Dear Martinez,
You should be able to search the ubuntu  guest under virtManager from CentOS
desktop environment (Gnome for example).
For New VM machine creation with Ubuntu guest, you just select OS type
"Linux", Version " ubuntu12 " subject to available. Hope that helps!

Source:
http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-kvm-qemu-on-cent
os-7-rhel-7.html
Source:
https://raymii.org/s/articles/virt-install_introduction_and_copy_paste_distr
o_install_commands.html

Xlord


Thanks XLord, but using virtual manager, there is not an option to select "i386" or 
"amd64" guest ...


In Step 5 of Create a New Virtual Machine, click on "Advanced options" and you will find the 
architecture selection options "x86_64" and "i686".

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] Centos OS Crash Recovery, Inquiry.

2016-11-02 Thread Robert Nichols

On 11/02/2016 08:46 PM, Christopher G. Halnin wrote:


As I have mentioned in my previous email, is there a way to recover
or bring back to life a crashed Centos OS after doing a Hard Driver
repartition or resizing?


Possibly. It depends on how the disk was previously arranged, what
filesystems are in use, and exactly what you did to get to the
current state.

If the data is really important, professional data recovery would
be appropriate. A mailing list isn't a great place to carry on
such a conversation. A more appropriate venue would be
www.linuxquestions.org .

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] HP CP2025

2016-09-25 Thread Robert Nichols

On 09/25/2016 08:09 PM, Mark LaPierre wrote:


[mlapier@peach ~]$ rpm -qa | grep hplip
hplip-common-3.14.6-3.el6.x86_64
hplip-libs-3.14.6-3.el6.x86_64
[mlapier@peach ~]$ rpm -qa | grep cups
cups-1.4.2-74.el6.x86_64
cups-pk-helper-0.0.4-13.el6.x86_64
gutenprint-cups-5.2.5-2.el6.x86_64
cups-libs-1.4.2-74.el6.x86_64
cups-libs-1.4.2-74.el6.i686
[mlapier@peach ~]$

CentOS release 6.8 (Final)

I've been able to print to this printer with no issues, until this
evening.  When I tried to send a print job the job just sat in the print
queue.  I killed the job and deleted the printer, then re-installed the
printer using the Printer configuration tool found under
System/Administration/Printing.

I've tried all manner of settings, both on the Libre Office document and
in the Printer configuration tool.  Now I can print to the printer but I
cannot get the printer to print in Landscape orientation.  Only portrait
orientation comes out no matter what settings I choose.

I've done a bit of Google work but I find nothing that appears
applicable to my specific issue of not getting landscape prints no
matter what setting I choose.

The HPLIP web site says the latest version of hplip for my machine, RHEL
6 because they apparently have not heard of CentOS, is
hplip-3.16.9_rhel-6.0.x86_64.  CentOS does not have this version
available in the repo.

What's a guy to do?  Windows should be this hard to work with, but not
Linux.


A quick search reveals that you can get that RPM from hplipopensource.com:

 
http://hplipopensource.com/hplip-web/install/manual/distros/redhatenterprise.html

--
Bob Nichols "NOSPAM" is really part of my email address.
 Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to move /var to another partition

2016-09-25 Thread Robert Nichols

On 09/25/2016 04:51 PM, J Martin Rushton wrote:



On 25/09/16 20:56, Robert Nichols wrote:


What I do is have a separate logical volume for /var/lib/libvirt,
with /var/lib/libvirt/etc bind-mounted to /etc/libvirt. It keeps
all the libvirt stuff together, since the backup requirements
there are quite different from the rest of the system.


Good point that I should have mentioned earlier.  Remember that if
_anything_ in the VM changes (such as a log entry), then the host system
will see the virtual disk as changed and back the whole thing up.  You
can end up backing up 20 GiB per day just to accommodate a few KiB
change in the VM.

A lot depends on how you do your backups, but I set things so that if
the VM is running at backup time _it_ backs up its disks, not the host.


Indeed! Having the host include the VM image files in its backup
is equivalent to using "dd" to back up entire disk images and
having that as your sole backup mechanism.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to move /var to another partition

2016-09-25 Thread Robert Nichols

On 09/25/2016 12:23 PM, J Martin Rushton wrote:



On 25/09/16 18:03, Robert Nichols wrote:

On 09/25/2016 11:47 AM, TE Dukes wrote:

Hello,

I am getting low on space in my /(root) partition. I have 23GB free.

I have 350GB in my /home partition. I am the only user.

I was experimenting with virtualization and it causes the root
partition to
get very low. I would like to move /var from the root partition, to
the same
partition as /home, if that's safe to do.

Or, resize /home and add another partition for /var

I also don't want to screw the pooch doing it.

This is over my head. The more I read about it, the more confused I get.


The way I've been doing it for quite some time is to make /var a
separate partition, put the home directories on /var/home, and then
bind-mount /var/home on /home. In /etc/fstab that's:

/var/home   /home   none   bind   0 0

To keep SELinux happy, you need to set up an equivalence of /var/home
to /home:

semanage fcontext -a -e /home /var/home

It's all completely transparent in the running system. The only time I
have to remember that it's set up that way is when I'm looking in my
backups and need to know that home directories are backed up as part
of /var.



Alternatively create /home/VM and keep the virtualised disks in there.


What I do is have a separate logical volume for /var/lib/libvirt,
with /var/lib/libvirt/etc bind-mounted to /etc/libvirt. It keeps
all the libvirt stuff together, since the backup requirements
there are quite different from the rest of the system.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] How to move /var to another partition

2016-09-25 Thread Robert Nichols

On 09/25/2016 11:47 AM, TE Dukes wrote:

Hello,

I am getting low on space in my /(root) partition. I have 23GB free.

I have 350GB in my /home partition. I am the only user.

I was experimenting with virtualization and it causes the root partition to
get very low. I would like to move /var from the root partition, to the same
partition as /home, if that's safe to do.

Or, resize /home and add another partition for /var

I also don't want to screw the pooch doing it.

This is over my head. The more I read about it, the more confused I get.


The way I've been doing it for quite some time is to make /var a
separate partition, put the home directories on /var/home, and then
bind-mount /var/home on /home. In /etc/fstab that's:

/var/home   /home   none   bind   0 0

To keep SELinux happy, you need to set up an equivalence of /var/home
to /home:

semanage fcontext -a -e /home /var/home

It's all completely transparent in the running system. The only time I
have to remember that it's set up that way is when I'm looking in my
backups and need to know that home directories are backed up as part
of /var.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Verifing: CentOS 5 cannot resize a *live* root filesystem

2016-05-17 Thread Robert Nichols

On 05/17/2016 02:30 PM, Robert Heller wrote:

Just want to verify: CentOS 5's FS utilities are too old to safely resize a
*live* (mounted, etc.) root file system (and the CentOS 5 installer/rescue
system does not include either resize2fs or fsadm utilities).


I don't know of _any_ filesystem that supports live shrinking. Live 
expansion, yes. Live shrinking, no. The C5 install/rescue CD and DVD do

include resize2fs.


I'm
*hoping* Ubuntu's 32-bit installer can deal with a non-PAE 32-bit system).


Ubuntu is _not_ one of the few distributions that still support non-PAE 
32-bit. From what I can find, Lubuntu and Xubuntu 12.04 were the last 
versions to support non-PAE. Sorry.


--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] resize lvm

2016-05-07 Thread Robert Nichols

On 05/06/2016 02:15 PM, Wes James wrote:

I found this:

# lvextend -l +100%FREE /dev/myvg/testlv

doing a search.  What's the difference between 100%VG and 100%FREE?


For the special case of "100%" there is no difference. For values
less than 100% with a non-empty VG, the two are quite different,
e.g., (50% of VG) != (50% of the free space in VG).

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] resize lvm

2016-05-07 Thread Robert Nichols

On 05/06/2016 01:42 PM, John R Pierce wrote:

On 5/6/2016 11:39 AM, Wes James wrote:

file -s /dev/dm-0



and it says XFS



So would I use xfs_growfs?


bingo!xfs_growfs can be used with the file system online, I'm pretty
sure resize2fs requires the file system to be offline (unmounted).


Online expansion of a filesystem is allowed by resize2fs. It is only for 
shrinking that being offline and running fsck is required.


xfs does not allow shrinking at all.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] disk utility showing message "the partition is misaligned by"

2016-04-23 Thread Robert Nichols

On 04/22/2016 10:18 PM, g wrote:

after reading replies, i feel easiest way to get a good partition
layout was a complete repartitioning and formatting.

easiest way to do that is start with a new drive. during install,
i will do partitioning and formatting. that is i am presuming that
installation will know how to properly set up partitions so that
all partitions are by full cylinders.


A new install will default to partitions with 1-Megabyte alignment
(2048 LBA sectors). That is totally unrelated to "cylinders".

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [OT] disk utility showing message "the partition is misaligned by"

2016-04-22 Thread Robert Nichols

On 04/22/2016 09:43 AM, g wrote:

]$ sudo blockdev --getalignoff /dev/sdc1
0
]$ sudo blockdev --getalignoff /dev/sdc2
0
]$ sudo blockdev --getalignoff /dev/sdc5
2560
]$ sudo blockdev --report /dev/sdc1
RORA   SSZ   BSZ   StartSecSize   Device
rw   256   512  4096   2048   838860800   /dev/sdc1
]$ sudo blockdev --report /dev/sdc2
RORA   SSZ   BSZ   StartSecSize   Device
rw   256   512  40961640448  1048576000   /dev/sdc2
]$ sudo blockdev --report /dev/sdc5
RORA   SSZ   BSZ   StartSecSize   Device
rw   256   512  4096   33848955328282081792   /dev/sdc5

so, blockdev does not show end, but does confirm sdc5 start is off
by 2560, same as fdisk.

all of which indicates i should repartition drive with fdisk.

is there any easier way such as using gparted or sparted so that
partitioning will be by cylinder and not sector?


You do not want to partition by cylinder.  The CHS geometry that
fdisk reports has been meaningless on hard disks for at least the
last 10 years and bears no relationship to the actual cylinders on
the drive.  At that arbitrary 255 heads 63 sectors/track geometry,
you might have to skip over 7 full "cylinders" to find one that
starts on a 4096-byte boundary. The version of fdisk in CentOS 6
is old, and still defaults to the deprecated cylinder units.  You
should always switch to sector units when using it. The warning
about partitions that do not start or end on a cylinder boundary
should be ignored.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Suddenly increased my hard disk

2016-04-18 Thread Robert Nichols

On 04/18/2016 03:45 PM, Gordon Messmer wrote:

On 04/18/2016 01:18 PM, g wrote:

'lsof', aka, list open files, will list every open file on system, and
there
are a lot.

'grep deleted' will list_only_  the deleted files that are still open.


That's exactly the same thing that "ls -l /proc/*/fd/* | grep
'(deleted)'" will do. So how is lsof better, exactly?


lsof will show the sizes of the deleted files.

 lsof | grep deleted | sort -k7n

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount bind problem

2016-04-15 Thread Robert Nichols

On 04/15/2016 01:05 AM, 望月忠雄 wrote:

Dear Robert,

Before sending 'grep -r /home /etc' data, I want tell you what happned this
morning.

In order to solve the /home/home problem, 'umount /home' had been done,
system had been running in a normal file system.
But suddenly /home has been lost.


Key information of that time is as in the  lines.
And I found in the  lines messages log.
How do you think the reason of trouble.


Since you had two different things mounted on /home, it is unclear how
the system would interpret "umount /home". That is why I did not suggest
doing that.

From the error, it seems that some checks got bypassed and a busy
filesystem was disconnected. It is likely that there is now some
filesystem corruption on /dev/vdb, and you should reboot with a forced
fsck to clean it up.  You really should track down the cause of the
extra mount of /dev/vdb on /home first, or the system will just come
up wrong again.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount bind problem

2016-04-14 Thread Robert Nichols

On 04/13/2016 08:44 PM, 望月忠雄 wrote:

# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw,usrquota,grpquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vda1 on /boot type ext4 (rw)
/dev/vdb on /mnt/extradiskA type ext4 (rw,usrquota,grpquota)
/mnt/extradiskA/home on /home type none (rw,bind)
/mnt/extradiskA/log on /var/log type none (rw,bind)
/mnt/extradiskA/mysql on /var/lib/mysql type none (rw,bind)
/mnt/extradiskA/.backup on /.backup type none (rw,bind)
/mnt/extradiskA/.daily_backup on /.daily_backup type none (rw,bind)
/mnt/extradiskA/backups on /var/backups type none (rw,bind)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/vdb on /home type ext4

  ^^^

(rw,relatime,barrier=1,data=ordered,usrquota,grpquota)


Well, there it is, the extra mount of /dev/vdb on /home.  It's
not apparent how it got that way.  Since it appears to be at
the bottom of /etc/mtab, it apparently happened _after_ all
the other mounts.  Some script must have done that.  If it's
not in /etc/rc.d/rc.local, then I'd do a progressively wider
search for references to /home, starting with

grep -r /home /etc

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount bind problem

2016-04-13 Thread Robert Nichols

On 04/13/2016 12:02 AM, 望月忠雄 wrote:

In /etc/rc.d/rc.sysinit,
there's "mount -a -n -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2i,glusterfs -O
no_netdev".


I have other same type servers. And on other servers with same /etc/fstsb,
file system is correct.
There's no difference between normal server's rc.sysinit and this problem
server's rc.sysinit too.


It's not apparent how /dev/vdb (the whole filesystem) came to be mounted 
on both /mnt/extradiskA and /home.  Let's see the output

from "lsblk" and "mount".  Did you look in /mnt/extradiskA/home
and verify that just the expected user directories are there
(no "/mnt/extradiskA/home/home")?

It might also be worthwhile to verify that the mount point
directory /mnt/extradiskA in the root filesystem is empty.  If
there happens to be a /mnt/extradiskA/home directory present
before /dev/vdb gets mounted, that could allow the mounts to
be performed out of order, though I don't really see how that
could lead the to result you have.

mkdir /tmp/tmproot
mount --bind / /tmp/tmproot
ls -a /tmp/tmproot/mnt/extradiskA
umount /tmp/tmproot

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mount bind problem

2016-04-12 Thread Robert Nichols

On 04/12/2016 05:37 AM, Sylvain CANOINE wrote:



- Mail original -

De: "望月忠雄"  À: "centos"
 Envoyé: Mardi 12 Avril 2016 08:17:13 Objet:
[CentOS] mount bind problem



I have set on fstab /home with 'mount bind' but it seems like bind
is not effective.

Indeed. By default, nothing mounts "bind" filesystems. The init
scripts don't read the hole fstab file, there are filters to mount
only some filesystems types. If you want to mount the "bind" FS on
boot, you need to add the related commands into /etc/rc.d/rc.local.


Nonsense!  I'm also running CentOS 6.7 and have several bind-mounts
in my /etc/fstab:

   /var/home/home   none  bind   0 0
   /var/lib/libvirt/etc /etc/libvirtnone  bind   0 0
   /srv/news/var/spool/news none  bind   0 0

All of them occur automatically when the system boots.  The
"mount -a" in /etc/rc.d/rc.sysinit takes care of them just fine.
The filter on that command is _excluding_ certain types.  Note
that the first two letters are "no", which applies to all the
listed types:

mount -a -n -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2i,glusterfs -O 
no_netdev


[rkn] ~ $ df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/mapper/vg_omega3g-rootvol
  11963960   5995348   5337828  53% /
tmpfs  8194160   340   8193820   1% /dev/shm
/dev/sda1   689128130200508752  21% /boot
/dev/mapper/vg_omega3g-var
  38166008   8282340  27921892  23% /var
/dev/mapper/vg_omega3g-srvlv
 564310312 360619492 175002488  68% /srv
/dev/mapper/vg_omega3g-virt
 194274580 119917252  64617656  65% /var/lib/libvirt
tmpfs  2097152   652   2096500   1% /tmp
[rkn] ~ $ df /home /etc/libvirt /var/spool/news
Filesystem   1K-blocks  Used Available Use% Mounted on
/var/home 38166008   8282340  27921892  23% /home
/var/lib/libvirt/etc 194274580 119917252  64617656  65% /etc/libvirt
/srv/news564310312 360619508 175002472  68% /var/spool/news

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] SSD disk and SMART errors

2016-04-01 Thread Robert Nichols

On 04/01/2016 06:55 PM, Miguel Medalha wrote:

Two days ago I installed a brand new SSDNow E50 series (Enterprise) disk on a 
server. I intend to move the OS there. I just did the physical install and 
copied a few files to and from it just to see if it was OK. I left it there, 
waiting for an opportunity to configure it to do real work.

Now I have looked at it with smartctl -a and it gives me the following info:
198 Offline_Uncorrectable   0x0010   120   120   000Old_age Offline  -  
 75479755259904

Just look at the number under "198 Offline_Uncorrectable". Is this normal for 
this type of disk? Is smartctl misinterpreting the disk's features? The disk has been 
there essentially doing nothing and it presents such enormous numbers of errors. Why?


That raw parameter is holding something other than a raw count, and
smartctl doesn't know how to interpret the high-order bits.

75479755259904 = 0x44a6

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7, rsync problem

2016-03-31 Thread Robert Nichols

On 03/31/2016 12:23 PM, Gordon Messmer wrote:

On 03/31/2016 09:24 AM, Robert Nichols wrote:


The only thing I know of that's likely to cause rsync to run out of memory
is when there are a huge number of hard links and you are using the "-H"
option to preserve them.


If you're using -H, rsync has to keep a table of all of the files and 
inode/device number combinations.  It'll actually consume *more* memory if you 
have a smaller number of hard-linked files.


It only needs to keep track of that for files that have a link count
greater than 1 in their inodes.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7, rsync problem

2016-03-31 Thread Robert Nichols

On 03/31/2016 09:53 AM, m.r...@5-cent.us wrote:

Oddity: rsync *should* be recursing, and dealing with very large number of
files. It works, going from box a to box b. But when I try to back b up to
c, it fails, 100%, complaining of "out of hashtable space [sender]". I've
tried adding -r, and changing --delete to --delete-delay, and no joy.

All boxes are current, or fairly current, CentOS 7.


The only thing I know of that's likely to cause rsync to run out of memory
is when there are a huge number of hard links and you are using the "-H"
option to preserve them. (If you think you don't have many, look under
/var/lib/yum/yumdb and /usr/share/zoneinfo.)

And FYI, rsync doesn't do a very good job of preserving hard links when
going to a destination that already has some of the files. It doesn't
break any existing hard links at the destination, so you can end up with
a hard link topology that is somewhat different from the source.  I have
to run some very messy audits to make sure all copies of my backups have
the same arrangement of hard-linked files.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-virt] USB 3.0 in qemu-kvm-0.12

2016-03-30 Thread Robert Nichols

On 03/30/2016 04:49 AM, Sven Kieske wrote:

On 29/03/16 22:03, Robert Nichols wrote:

I suspect I know the answer here, but is qemu-kvm-0.12 simply incapable
of passing a USB 3.0 device to a guest? USB 2 devices work fine, but
USB 3 -- nothing.  USB 3.0 works fine in the host, of course.

Currently using qemu-kvm-0.12.1.2-2.479.el6_7.4.x86_64 in CentOS 6.7.

I'm guessing I have to upgrade to CentOS 7 to pass USB 3.0 devices
to the guest.  Hoping to avoid that just now.


A quick search for "rhel usb 3 support kvm" leads to this article:

http://www.tecmint.com/redhat-enterprise-linux-7-1-installation/

citing:

"USB 3.0 support enabled in KVM as Technology Preview."

also, reading the release notes of upstream might help:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html-single/7.2_Release_Notes/index.html

if you CTRL+F "usb 3" you can read:

  USB 3.0 host adapter (xHCI) emulation for KVM guests remains a
Technology Preview in Red Hat Enterprise Linux 7.2.

so it is available but not fully supported.


Thanks for the info.  I hadn't gotten to the point of looking into what
the support was/wasn't for USB 3 virtualization in RHEL 7.  Looks like
I can delay my upgrade at least until RHEL 7.3 appears.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] USB 3.0 in qemu-kvm-0.12

2016-03-29 Thread Robert Nichols

I suspect I know the answer here, but is qemu-kvm-0.12 simply incapable
of passing a USB 3.0 device to a guest? USB 2 devices work fine, but
USB 3 -- nothing.  USB 3.0 works fine in the host, of course.

Currently using qemu-kvm-0.12.1.2-2.479.el6_7.4.x86_64 in CentOS 6.7.

I'm guessing I have to upgrade to CentOS 7 to pass USB 3.0 devices
to the guest.  Hoping to avoid that just now.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] heads up: /boot space on kernel upgrade

2016-02-13 Thread Robert Nichols

On 02/13/2016 05:57 AM, Timothy Murphy wrote:

Devin Reade wrote:


I have a CentOS 6 machine that was initially installed as CentOS 6.4
in May of 2013.  It's /boot filesystem is 200M which, IIRC, was the
default /boot size at the time.


As a matter of interest, is there any advantage today
in having a /boot partition?
I thought it went back to the days when the boot-loader
had to be near the beginning of the disk?


With GRUB legacy, there are some limitations on /boot.  It cannot
be encrypted, cannot reside on some types of software RAID,
cannot be in an LVM logical volume, and must be in an ext2/3/4 
filesystem.  If your root filesystem violates any of that, then

you need a separate /boot partition.  GRUB 2 removes most of
those restrictions.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Utility to zero unused blocks on disk

2016-02-08 Thread Robert Nichols

On 02/08/2016 07:04 PM, Chris Adams wrote:

Once upon a time, Greg Bailey  said:

Wes didn't say the reason he wanted to zero unused blocks, but I
always do this in kickstart scripts when constructing VM images as
the image size is considerably reduced by doing this...


For that purpose, use something that can TRIM a VM image, like
virt-sparsify.


That's doing the same thing.

virt-sparsify works by mounting the filesystem, filling it to capacity
with zeros, then performing a copy operation which skips over the
all-zero blocks, leaving them unallocated in the sparse destination
file.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-virt] Mouse and display issues with Windows 10 guest

2016-02-07 Thread Robert Nichols

On 01/26/2016 01:51 PM, Robert Nichols wrote:
> Anyone managed to get a Windows 10 guest running well under
> qemu/kvm? I can get it up and running, but there is a major issue
> with losing use of the mouse, plus my display resolution is stuck at
> 1024x768.
>
> The mouse will work for a short time (a few seconds to a few
> minutes), but then stops responding. That's with the mouse coming in
> as the recommended QEMU tablet device. I can assign a USB mouse to
> the guest as a USB host device, but it also stops responding after a
> short time. At least with the USB mouse I can remove it from the
> guest and then reassign it again. That gives me use of the mouse, but
> again only for a short time. Trying run Windows 10 from just a
> keyboard is an exercise in frustration.
>
> I can't get Windows 10 to believe that any screen resolution besides
> 1024x768 is available. That's the case both with VNC/vga and
> Spice/qxl. This is in contrast with Windows 7, which offers a good
> selection of resolutions with VNC/vga.

Well, I got the mouse problem solved. I finally ran across
<http://unix.stackexchange.com/questions/131942/qemu-2-0-windows-guest-mouse-stops-working-vnc-when-using-usb-passthrough>
and followed the instructions to go into the power settings for
the tablet device and remove the check mark on "Allow the computer
to turn off this device to save power." Presto! No more mouse
problems.

I've still got to figure out how to get a display bigger than
1024x768, but fiddling with that should be a lot easier with
a working mouse.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] CentOS 7, man

2016-01-27 Thread Robert Nichols
On 01/27/2016 10:31 AM, m.r...@5-cent.us 
wrote:

This is... odd.

 From my workstation, where I'm directly logged in, if I ssh to any CentOS
7 box, as myself, and try to run man, it fails.
Example 1:
  man dd
man:
cannot write to /var/cache/man/cat1/dd.1.gz in catman mode
dd.

Example 2:
  man dd
man: can't chmod (null): Bad address
man: can't unlink (null): Bad address
dd.

In all cases, if I sudo -s to root, I have no trouble reading the manpage.
In all cases I've tried, selinux is in permissive mode.

 From one of these boxes:
ls -laF /var/cache/man/ | more
total 832
drwxr-xr-x. 38 root root   4096 Jan 27 07:52 ./
drwxr-xr-x.  9 root root105 Dec 28 12:42 ../
-rw-r--r--.  1 root root190 Dec 28 13:18 CACHEDIR.TAG
drwxr-xr-x.  4 root root 62 Jan 27 07:52 ca/
drwxr-xr-x.  2 root root 20 Jan 27 11:27 cat1/
<...>

But it's the same in CentOS 6. Clues?


I've had NOCACHE set in /etc/man.config for a long time. On a modern
machine there's not that much overhead generating the text page on
demand, and eliminating that avoids issues with pages formatted for
one window size being viewed on another.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-virt] Mouse and display issues with Windows 10 guest

2016-01-27 Thread Robert Nichols

On 01/27/2016 09:23 AM, Jean-Marc LIGER wrote:



Le 27/01/2016 15:24, Robert Nichols a écrit :

On 01/27/2016 07:34 AM, Dmitry E. Mikhailov wrote:

On 27.01.2016 00:51, Robert Nichols wrote:


Any suggestions or success reports would be appreciated.


What's the host OS?

I enjoy Windows 8.1 (virtio/qxl) on CentOS 7.2 laptop (the one I'm
writing now on).


CentOS 6.7. Sorry I forgot to mention that.

As I said, Windows 7 runs just fine in a couple of VMs.

One thing I haven't tried is removing the virtio drivers that got
carried over in the Windows 7 -> 10 upgrade. I haven't found any
virtio drivers labeled for use with Windows 10. (How the heck you
uninstall a driver that's no longer associated with any device is
going to take a bit of searching.)



You can use the virtio drivers for Windows 8.1


Perhaps I'll give that a try, but eliminating the virtio drivers by
switching back to IDE disks, uninstalling the balloon driver, etc.,
didn't improve things at all.

I had some problems initially with Windows Update, but that's
resolved now, and everything else seems to work. But, with a
1024x768 screen and no mouse, there's not much you can do with it
besides saying, "See, it runs!"

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Mouse and display issues with Windows 10 guest

2016-01-27 Thread Robert Nichols

On 01/27/2016 07:34 AM, Dmitry E. Mikhailov wrote:

On 27.01.2016 00:51, Robert Nichols wrote:


Any suggestions or success reports would be appreciated.


What's the host OS?

I enjoy Windows 8.1 (virtio/qxl) on CentOS 7.2 laptop (the one I'm
writing now on).


CentOS 6.7. Sorry I forgot to mention that.

As I said, Windows 7 runs just fine in a couple of VMs.

One thing I haven't tried is removing the virtio drivers that got
carried over in the Windows 7 -> 10 upgrade. I haven't found any
virtio drivers labeled for use with Windows 10. (How the heck you
uninstall a driver that's no longer associated with any device is
going to take a bit of searching.)

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] Mouse and display issues with Windows 10 guest

2016-01-26 Thread Robert Nichols

Anyone managed to get a Windows 10 guest running well under qemu/kvm?
I can get it up and running, but there is a major issue with losing
use of the mouse, plus my display resolution is stuck at 1024x768.

The mouse will work for a short time (a few seconds to a few minutes),
but then stops responding. That's with the mouse coming in as the
recommended QEMU tablet device. I can assign a USB mouse to the guest
as a USB host device, but it also stops responding after a short time.
At least with the USB mouse I can remove it from the guest and then
reassign it again. That gives me use of the mouse, but again only for
a short time. Trying run Windows 10 from just a keyboard is an
exercise in frustration.

I can't get Windows 10 to believe that any screen resolution besides
1024x768 is available. That's the case both with VNC/vga and
Spice/qxl. This is in contrast with Windows 7, which offers a good
selection of resolutions with VNC/vga.

Any suggestions or success reports would be appreciated.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] Just need to vent

2016-01-25 Thread Robert Nichols

On 01/24/2016 10:45 AM, Peter Duffy wrote:

It would be very interesting to know how many other users are still on
CentOS/Red Hat 6 as a result of reluctance to enjoy all the - erm -
improvements in 7.


That's were I am, CentOS 6.7 with a 3.18 LTS kernel from the Xen4CentOS
repo on machines with hardware too new for a 2.6 kernel. I plan to stay
there until CentOS 6 goes EOL (and if my past history is any guide,
probably quite a while beyond that -- I'd been running a patched-up
Fedora 12 until late 2014, 4 years past its EOL).

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-virt] LVM mirror database to ramdisk

2016-01-23 Thread Robert Nichols

On 01/22/2016 11:02 AM, Ed Heron wrote:

   I'm still running CentOS 5 with Xen.

   We recently replaced a virtual host system board with an Intel
S1400FP4, so the host went from a 4 core Xeon with 32G RAM to a 6 core
Xeon with 48G RAM, max 96G.  The drives are SSD.

   I was recently asked to move an InterBase server from Windows 7 to
Windows Server.  The database is 30G.

   I'm speculating that if I put the database on a 35G virtual disk and
mirror it to a 35G RAM disk, the speed of database access might improve.


If that were running under Linux rather than Windows I'd suggest just
giving that extra 35GB to its kernel and letting its normal caching
keep everything in RAM. Whether Windows (7 or Server) would be clever
enough to do that is another question. Of course you could just let
the Linux host do the caching, but that runs the risk of other VMs
or host activity displacing some of that cache and affecting the
performance of your database VM.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] Starting emacs gives "shmget failed: error 28" message

2015-09-03 Thread Robert Nichols

On 09/03/2015 04:00 AM, Nicolas Thierry-Mieg wrote:

On 09/03/2015 03:04 AM, Robert Nichols wrote:

In CentOS 6.7, if I start emacs from a terminal session, I always see
a message, "(emacs:{PID}): Gdk-WARNING **: shmget failed: error 28 (No
space left on device)"

The message is also logged to .xsession-errors, and that occurs
regardless of how emacs is started. The same thing occurs with
SELinux in permissive mode.

Emacs version is emacs-23.1-28.el6.x86_64 .

Output from strace shows:
shmget(IPC_PRIVATE, 393216, IPC_CREAT|0600) = -1 ENOSPC (No space
left on device)

/proc/mounts contains:
tmpfs /dev/shm tmpfs rw,seclabel,relatime 0 0

and "df /dev/shm" shows:
Filesystem 1K-blocks  Used Available Use% Mounted on
tmpfs8194164   172   8193992   1% /dev/shm

I can't identify any behavior problems that I can relate to this,
but it seems that something is wrong.  Any clues as to what?



just a shot in the dark, but what do you have in
/proc/sys/kernel/shmmni ?

According to man shmget:
ENOSPC All possible shared memory IDs have been taken  (SHMMNI),  or
allocating  a  segment  of  the requested  size  would  cause  the
system  to  exceed  the system-wide limit on shared memory (SHMALL).


"cat /proc/sys/kernel/shmmni" shows 4096.

And, I find that "wc -l /proc/sysvipc/shm" shows that they are indeed
all in use. A badly coded java game appears to be the culprit. It's
grabbing SHM IDs by the thousands.

Thanks for the pointer.  Your shot in the dark was right on target.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS-virt] Assigning a PCI sound device to a VM

2015-09-03 Thread Robert Nichols

On 09/03/2015 01:59 PM, Robert Nichols wrote:

On 09/03/2015 03:14 AM, George Dunlap wrote:

On Thu, Sep 3, 2015 at 2:29 AM, Robert Nichols
<rnicholsnos...@comcast.net> wrote:

I have a PCI sound card that I would like to assign to a VM, but
when I try to do so the VM fails to start and displays this message:

Error starting domain: Unable to read from monitor: Connection reset
by peer

[SNIP]

The sound card is an Asus Xonar DGX PCIe 5.1, and identifies itself
as "07:04.0 Multimedia audio controller: C-Media Electronics Inc CMI8788
[Oxygen HD Audio]".

I see the same problem if I try to assign the motherboard's Intel
Xeon E3-1200 HD Audio Controller to the VM.  Both of these devices
are supported by the host kernel (3.18.17-13.el6.x86_64).

I have no problem assigning a USB sound device, but those have very
limited capability.


Which hypervisor / CentOS version are you using?


libvirt-0.10.2-54.el6.x86_64 in CentOS 6.7,
using kernel-3.18.17-13.el6.x86_64 from the Xen4CentOS 6 repo.
(I need that kernel for the motherboard's sound controller.  The
  behavior when trying to assign a PCI device to the VM is the
  same with the standard 2.6.32 kernel in CentOS 6.7.)


That's qemu / KVM.


--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] Starting emacs gives "shmget failed: error 28" message

2015-09-03 Thread Robert Nichols
On 09/03/2015 01:56 PM, m.r...@5-cent.us 
wrote:

Robert Nichols wrote:

On 09/03/2015 04:00 AM, Nicolas Thierry-Mieg wrote:

just a shot in the dark, but what do you have in
/proc/sys/kernel/shmmni ?

According to man shmget:
ENOSPC All possible shared memory IDs have been taken  (SHMMNI),  or
allocating  a  segment  of  the requested  size  would  cause  the
system  to  exceed  the system-wide limit on shared memory (SHMALL).


"cat /proc/sys/kernel/shmmni" shows 4096.

And, I find that "wc -l /proc/sysvipc/shm" shows that they are indeed
all in use. A badly coded java game appears to be the culprit. It's
grabbing SHM IDs by the thousands.

Thanks for the pointer.  Your shot in the dark was right on target.



Simple solution: vi.


emacs was just the messenger. There was a real problem with the game
(which has nothing to do with emacs) grabbing all the SM IDs.  Simple
solution is to run the game under java-1.6.0-openjdk. It only
misbehaves with java-1.7.0-openjdk.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS-virt] Assigning a PCI sound device to a VM

2015-09-02 Thread Robert Nichols

I have a PCI sound card that I would like to assign to a VM, but
when I try to do so the VM fails to start and displays this message:

Error starting domain: Unable to read from monitor: Connection reset by peer

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in 
cb_wrapper

callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in tmpcb
callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1125, in 
startup

self._backend.create()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 686, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: Unable to read from monitor: Connection reset by peer

The XML generated by virt-manager for the device is


  

  
  function='0x0'/>



The sound card is an Asus Xonar DGX PCIe 5.1, and identifies itself
as "07:04.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 
[Oxygen HD Audio]".


I see the same problem if I try to assign the motherboard's Intel
Xeon E3-1200 HD Audio Controller to the VM.  Both of these devices
are supported by the host kernel (3.18.17-13.el6.x86_64).

I have no problem assigning a USB sound device, but those have very
limited capability.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


[CentOS] Starting emacs gives "shmget failed: error 28" message

2015-09-02 Thread Robert Nichols

In CentOS 6.7, if I start emacs from a terminal session, I always see
a message, "(emacs:{PID}): Gdk-WARNING **: shmget failed: error 28 (No 
space left on device)"


The message is also logged to .xsession-errors, and that occurs
regardless of how emacs is started. The same thing occurs with
SELinux in permissive mode.

Emacs version is emacs-23.1-28.el6.x86_64 .

Output from strace shows:
   shmget(IPC_PRIVATE, 393216, IPC_CREAT|0600) = -1 ENOSPC (No space 
left on device)


/proc/mounts contains:
   tmpfs /dev/shm tmpfs rw,seclabel,relatime 0 0

and "df /dev/shm" shows:
   Filesystem 1K-blocks  Used Available Use% Mounted on
   tmpfs8194164   172   8193992   1% /dev/shm

I can't identify any behavior problems that I can relate to this,
but it seems that something is wrong.  Any clues as to what?

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Shutdown hangs on "Unmounting NFS filesystems"

2015-08-31 Thread Robert Nichols

On 08/30/2015 04:32 PM, Frank Cox wrote:

On Sun, 30 Aug 2015 16:20:21 -0500
Robert Nichols wrote:


Once the system gets into this state, the only remedy is a forced
power-off.  What seems to be happening is that an NFS filesystem that
auto-mounted over a WiFi connection cannot be unmounted because the
WiFi connection is enabled only for my login and gets torn down when
my UID is logged off.

Any suggestions on how I can configure things to avoid this?  I
really don't want to expose my WPA2 key by making the connection
available to all users.


Perhaps you could unmount that share when you log off by putting a umount 
command into the appropriate file.

The definition of "appropriate file" varies depending on what DE you're using.


Thanks for the suggestion. I'm using Gnome, and created an
executable file /etc/gdm/PostSession/autofsNFS containing:

  #!/bin/bash
  if grep -q ':.* nfs[234]\? ' /proc/mounts; then
  if [ -r /var/run/autofs.pid ]; then
  Pid=$(https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Shutdown hangs on "Unmounting NFS filesystems"

2015-08-31 Thread Robert Nichols

On 08/31/2015 10:32 AM, Robert Nichols wrote:

On 08/30/2015 04:32 PM, Frank Cox wrote:

Perhaps you could unmount that share when you log off by putting a
umount command into the appropriate file.

The definition of "appropriate file" varies depending on what DE
you're using.


Thanks for the suggestion. I'm using Gnome, and created an
executable file /etc/gdm/PostSession/autofsNFS containing:

   #!/bin/bash
   if grep -q ':.* nfs[234]\? ' /proc/mounts; then
   if [ -r /var/run/autofs.pid ]; then
   Pid=$(

Weird!  That should not have worked since that file never gets
executed.  Apparently the problem is less repeatable than I thought.

I put that code into the /etc/gdm/PostSession/Default script,
where it actually gets executed and immediately runs into SELinux
issues.  I ran audit2allow on all the AVC denials, and now the
script runs properly and, again, seems to fix the issue.  Final
verdict on that is still pending, though.

Note that /etc/gdm/PostSession/Default is marked as a configuration
file in the gdm RPM, and so should not get wiped out by an update.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Shutdown hangs on "Unmounting NFS filesystems"

2015-08-31 Thread Robert Nichols

On 08/31/2015 05:22 AM, Dennis Jacobfeuerborn wrote:

On 08/31/2015 02:15 AM, Robert Nichols wrote:

On 08/30/2015 04:45 PM, John R Pierce wrote:

On 8/30/2015 2:20 PM, Robert Nichols wrote:

Once the system gets into this state, the only remedy is a forced
power-off.  What seems to be happening is that an NFS filesystem that
auto-mounted over a WiFi connection cannot be unmounted because the
WiFi connection is enabled only for my login and gets torn down when
my UID is logged off.

Any suggestions on how I can configure things to avoid this?  I
really don't want to expose my WPA2 key by making the connection
available to all users.


my experience is A) NFS doesn't like unreliable networks, and B) WiFi
isn't very reliable.

perhaps using the 'soft' mount option will help, along with intr ?


Making use of the "intr" option would require that the umount process
have the console as its controlling tty.  AFAICT, having been invoked
from the init process, it has _no_ controlling tty.  Hard to send a
SIGINT that way.


The "intr" option is no longer available. See the nfs man page:
"This option is provided for backward compatibility.  It is ignored
after kernel 2.6.25."

You should be able to kill -9 the process though.


The problem occurs late in the shutdown sequence. There is no shell
available for entering a "kill" command.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Shutdown hangs on Unmounting NFS filesystems

2015-08-30 Thread Robert Nichols

On 08/30/2015 04:20 PM, Robert Nichols wrote:

Once the system gets into this state, the only remedy is a forced
power-off.  What seems to be happening is that an NFS filesystem that
auto-mounted over a WiFi connection cannot be unmounted because the
WiFi connection is enabled only for my login and gets torn down when
my UID is logged off.

Any suggestions on how I can configure things to avoid this?  I
really don't want to expose my WPA2 key by making the connection
available to all users.


Oops, forgot to mention that this is CentOS 6.7.

--
Bob Nichols NOSPAM is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Shutdown hangs on Unmounting NFS filesystems

2015-08-30 Thread Robert Nichols

Once the system gets into this state, the only remedy is a forced
power-off.  What seems to be happening is that an NFS filesystem that
auto-mounted over a WiFi connection cannot be unmounted because the
WiFi connection is enabled only for my login and gets torn down when
my UID is logged off.

Any suggestions on how I can configure things to avoid this?  I
really don't want to expose my WPA2 key by making the connection
available to all users.

--
Bob Nichols NOSPAM is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Shutdown hangs on Unmounting NFS filesystems

2015-08-30 Thread Robert Nichols

On 08/30/2015 04:45 PM, John R Pierce wrote:

On 8/30/2015 2:20 PM, Robert Nichols wrote:

Once the system gets into this state, the only remedy is a forced
power-off.  What seems to be happening is that an NFS filesystem that
auto-mounted over a WiFi connection cannot be unmounted because the
WiFi connection is enabled only for my login and gets torn down when
my UID is logged off.

Any suggestions on how I can configure things to avoid this?  I
really don't want to expose my WPA2 key by making the connection
available to all users.


my experience is A) NFS doesn't like unreliable networks, and B) WiFi
isn't very reliable.

perhaps using the 'soft' mount option will help, along with intr ?


Making use of the intr option would require that the umount process
have the console as its controlling tty.  AFAICT, having been invoked
from the init process, it has _no_ controlling tty.  Hard to send a
SIGINT that way.

Really, I don't think the problem is specific to WiFi.  I believe I'd
run into the same thing for any network connection that was not marked
Available to all users in NetworkManager.

--
Bob Nichols NOSPAM is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] No firefox 38.1.1 update

2015-08-10 Thread Robert Nichols

On 08/10/2015 07:55 AM, Johnny Hughes wrote:

On 08/09/2015 10:42 AM, Robert Nichols wrote:

On 08/09/2015 10:21 AM, Peter Q. wrote:

On Aug 9, 2015 8:43 AM, Robert Nichols rnicholsnos...@comcast.net
wrote:


I'm still not getting the firefox-38.1.1-1.el6.centos.x86_64.rpm
that was announced yesterday (8 August) morning.  I looked at
several of the mirror sites I receive, and they all have the new
firefox in their Packages directory, but their repodata is all
a day older (7 August), so yum doesn't see the update.

Example mirror: http://mirror.cs.uwp.edu/pub/centos/6.7/updates/x86_64/


Yum clean metadata
Yum update


Did that several times.  The problem is with the out-of-date metadata
on the mirrors themselves.  Cleaning my local cache and re-downloading
the same bad metadata isn't going to help.

Downloading the package itself and updating from the local file works,
as does storing the package in a local repo and updating from that.



The metadata was stale on several mirrors .. I redid it and reuploaded it.


So I noticed. Thanks much for fixing it for others.

--
Bob Nichols NOSPAM is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] No firefox 38.1.1 update

2015-08-09 Thread Robert Nichols

I'm still not getting the firefox-38.1.1-1.el6.centos.x86_64.rpm
that was announced yesterday (8 August) morning.  I looked at
several of the mirror sites I receive, and they all have the new
firefox in their Packages directory, but their repodata is all
a day older (7 August), so yum doesn't see the update.

Example mirror: http://mirror.cs.uwp.edu/pub/centos/6.7/updates/x86_64/

--
Bob Nichols NOSPAM is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] No firefox 38.1.1 update

2015-08-09 Thread Robert Nichols

On 08/09/2015 10:21 AM, Peter Q. wrote:

On Aug 9, 2015 8:43 AM, Robert Nichols rnicholsnos...@comcast.net wrote:


I'm still not getting the firefox-38.1.1-1.el6.centos.x86_64.rpm
that was announced yesterday (8 August) morning.  I looked at
several of the mirror sites I receive, and they all have the new
firefox in their Packages directory, but their repodata is all
a day older (7 August), so yum doesn't see the update.

Example mirror: http://mirror.cs.uwp.edu/pub/centos/6.7/updates/x86_64/


 Yum clean metadata
 Yum update

Did that several times.  The problem is with the out-of-date metadata
on the mirrors themselves.  Cleaning my local cache and re-downloading
the same bad metadata isn't going to help.

Downloading the package itself and updating from the local file works,
as does storing the package in a local repo and updating from that.

--
Bob Nichols NOSPAM is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT - parted guidance

2015-08-01 Thread Robert Nichols

On 07/31/2015 09:19 AM, Ken Smith wrote:

parted says that the offending partition 5 begins at 512 byte sector no.
462999615. Its the first partition in the extended partition that begins
at 462999552.

If I just want to move the partition back to the nearest 4096 boundary,
which is 462999608, would the syntax be


unit s
move 5 462999608

Will parted sort itself out copying sector nos 462999615 to 462999608
and then 462999616 to 462999609 and on an on? Or will it not cope with
jiggling the partition down the disk by 7 sectors?


What filesystem is on that partition? For anything other than the FAT
variants, you'll find parted is hopelessly crippled for moving or
resizing partitions. And, you would have to use resize since parted
cannot move a partition onto itself.

--
Bob Nichols NOSPAM is really part of my email address.
Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


  1   2   3   4   >