[CentOS] Putty error "Network error: Software caused connection abort"
Hi every: I have a test or development environment in my Windows workstation with VMware Workstation 8.0 where I have around 7 VM with CentOS 6.2 and each of them have 2 network interfaces: one bridge and the other NAT. Since a few days I have been experimenting some problems with Putty because I get this error: --- PuTTY Fatal Error --- Network error: Software caused connection abort --- OK --- I did not touch any SSH configuration so I can't see where the problem is, any help or solution to this? Cheers and thanks in advance Ing. Reynier Pérez Mira Cel: +58 424.180.5609 / +58 416.921.7406 Correo: reynie...@gmail.com / reynie...@hotmail.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] upstart CentOS vs upstart Ubuntu is there any difference between them?
I'm moving some server configurations from Ubuntu Server 12.04 to CentOS 6.6. Now I'm working on `/etc/init` script that should be handled by `upstart` at both OS as far as I know. The files on both server are the same and I mean the same at content level and also at path level and permissions level, is the exactly copy from Ubuntu to CentOS. I'm having some issues with upstart at CentOS since scripts doesn't start and I can't find why (the cause). This is the output from `initctl list` at Ubuntu server: # Ubuntu 12.04 root@qa:/etc/init# initctl list // rest of processes goes here pdoneVendorBroker start/running, process 854 repToolBroker start/running, process 3705 emailBroker start/running, process 3738 cmeBroker start/running, process 3760 messageBroker start/running, process 3727 shareEventHandler start/running, process 3686 edetailBroker start/running, process 3749 pdoneLoginProctor start/running, process 3716 All the processes has been started at OS boot, that's fine. This is the output from CentOS server: # CentOS 6.6 root@staging:/etc/init# initctl list // rest of processes goes here pdoneVendorBroker stop/waiting repToolBroker stop/waiting emailBroker stop/waiting cmeBroker stop/waiting messageBroker stop/waiting shareEventHandler stop/waiting edetailBroker stop/waiting pdoneLoginProctor stop/waiting None processes has been started after OS boot, and that's wrong. Why? What I'm missing here? Can any give me some advice? At CentOS I've tried also to start the process manually by running this: initctl start messageBroker And this is the output at console: messageBroker start/running, process 3587 But if I run the command `initctl list` I didn't see the process started: initctl list rc stop/waiting tty (/dev/tty3) start/running, process 2565 tty (/dev/tty2) start/running, process 2562 tty (/dev/tty1) start/running, process 2558 tty (/dev/tty6) start/running, process 2577 tty (/dev/tty5) start/running, process 2574 tty (/dev/tty4) start/running, process 2571 plymouth-shutdown stop/waiting control-alt-delete stop/waiting debug stop/waiting rcS-emergency stop/waiting kexec-disable stop/waiting pdoneVendorBroker stop/waiting quit-plymouth stop/waiting rcS stop/waiting prefdm stop/waiting repToolBroker stop/waiting init-system-dbus stop/waiting emailBroker stop/waiting splash-manager stop/waiting cmeBroker stop/waiting start-ttys stop/waiting messageBroker stop/waiting shareEventHandler stop/waiting edetailBroker stop/waiting pdoneLoginProctor stop/waiting rcS-sulogin stop/waiting serial stop/waiting This is the content for the file `/ etc/init/messageBroker.conf`: description "messageBroker" start on runlevel [234] stop on runlevel [0156] respawn exec php /usr/local/bin/messageBroker/messageBroker.php post-start script PID=`status messageBroker| egrep -oi '([0-9]+)$' | head -n1` echo $PID > /var/run/messageBroker.pid end script post-stop script rm -f /var/run/messageBroker.pid end script Why it's not starting? What is wrong? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Cannot open: No space left on device
I have a VBox VM running CentOS 6.7 and I want to extract the content of a 14G tar file. I'm doing as: *tar -xvf www.tar.gz* But I am getting a lot of errors like the ones shown below: html/elclarinweb.dev/wp-content/uploads/2015/03/12-Aura-Ávila-400x320.jpg tar: html/elclarinweb.dev/wp-content/uploads/2015/03/12-Aura-Ávila-400x320.jpg: Cannot open: No space left on device html/elclarinweb.dev/wp-content/uploads/2015/03/Julianne-Moore-11-585x378.jpg tar: html/elclarinweb.dev/wp-content/uploads/2015/03/Julianne-Moore-11-585x378.jpg: Cannot open: No space left on device So, trying to find why the VHDD (Virtual HDD) has left out of space I ran the following command: *df -h* Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_server-lv_root 26G 24G 869M 97% / tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sda1 477M 80M 373M 18% /boot And then I've tried to find the conflictive files by running: *du -hsx * | sort -rh | head -10* du: cannot access `proc/3662/task/3662/fd/4': No such file or directory du: cannot access `proc/3662/task/3662/fdinfo/4': No such file or directory du: cannot access `proc/3662/fd/4': No such file or directory du: cannot access `proc/3662/fdinfo/4': No such file or directory 14G var 1.8Gusr 278Mlib 77M boot 31M etc 27M lib64 15M sbin 7.8Mbin 188Kdev 112Kroot Why *df -h* is reporting 24G used? Where the space did go? How I can fix this? ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Cannot open: No space left on device
On Fri, Sep 11, 2015 at 2:45 PM, Warren Young wrote: > 24 - 16 = 8, which sounds suspiciously like the size of a swap file. What > does mount say? What do you mean with "mount says"? Can you point me on the right command to execute? ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Cannot open: No space left on device
On Fri, Sep 11, 2015 at 3:19 PM, Dario Lesca wrote: > the result. # du -sc /* /.??* --exclude /proc|sort -n 0 /.autofsck 0 /.autorelabel 0 /misc 0 /net 0 /sys 4 /cgroup 4 /media 4 /mnt 4 /selinux 4 /srv 8 /opt 16 /home 16 /lost+found 16 /tmp 112 /root 188 /dev 7956/bin 14624 /sbin 27088 /lib64 31636 /etc 78796 /boot 284672 /lib 1882548 /usr 14422860/var 16750556total lsblk /dev/sda NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda8:00 30G 0 disk ├─sda1 8:10 500M 0 part /boot └─sda2 8:20 29.5G 0 part ├─vg_server-lv_root (dm-0) 253:00 26.5G 0 lvm / └─vg_server-lv_swap (dm-1) 253:103G 0 lvm [SWAP] ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Cannot open: No space left on device
On Fri, Sep 11, 2015 at 3:52 PM, zep wrote: > did you (or someone else with root access) possibly delete a very large > file in /var that may still have been in use?it's very annoying but > if you do a rm on a large file under /var that is still open by some > process for writing, it won't actually clear the space. you can > overcome that by just truncating the file instead of doing an rm (e.g. > either > /var/log/bigfile or cp /dev/null /var/log/bigfile). the only > way I know to fix the problem once you're having it is to force the > process to close/reopen the file... either by killing & restarting or > getting the process to do it if it's got that designed in. in practice > I've often found it much easier to reboot a machine to fix such a > problem condition. > In fact, that's exactly what I did. I have tried to open that 14G .tar.gz file from mc and it crashes several times so I delete the temporary files from /tmp and also from /home where originally I copied. I've rebooted the VM and now the output of df -h looks better: # df -h FilesystemSize Used Avail Use% Mounted on /dev/mapper/vg_server-lv_root 26G 16G 8.7G 65% / tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sda1 477M 80M 373M 18% /boot ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] SOT: MariaDB 5.5.x-MariaDB logs are not going to desired .log file
Hi there, I know this is off-topic or semi off-topic but I really need some help since I am stucked. I'm trying to redirect MariaDB logs to `/var/log/mysql/*.log` files as shown below on the `/etc/my.cnf.d/server.cnf` file: # # These groups are read by MariaDB server. # Use it for options that only the server (but not clients) should see # # See the examples of server my.cnf files in /usr/share/mysql/ # # this is read by the standalone daemon and embedded servers [server] # this is only for the mysqld standalone daemon [mysqld] #wait_timeout=28800 #interactive_timeout = 28800 max_allowed_packet=512M #General Query Log general_log_file= /var/log/mysql/mysql_query.log general_log = 1 #Error Log log_error = /var/log/mysql/mysql_error.log #Slow Query Log slow_query_log = 1 slow_query_log_file = /var/log/mysql/mysql_slow.log long_query_time = 2 log-queries-not-using-indexes collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 # this is only for embedded server [embedded] # This group is only read by MariaDB servers, not by MySQL. # If you use the same .cnf file for MySQL and MariaDB, # you can put MariaDB-only options here [mariadb] # This group is only read by MariaDB-10.0 servers. # If you use the same .cnf file for MariaDB of different versions, # use this group for options that older servers don't understand [mariadb-5.5] `mysql_query.log`, `mysql_error.log` and `mysql_slow.log` should go to `/var/log/mysql/`, right? For some reason, unknow to me, they are not going. I did run the following query: MariaDB [(none)]> show variables like '%log%'; And this is the output: +---+--+ | Variable_name | Value | +---+--+ | aria_checkpoint_log_activity | 1048576 | | aria_log_file_size| 1073741824 | | aria_log_purge_type | immediate | | aria_sync_log_dir | NEWFILE | | back_log | 50 | | binlog_annotate_row_events| OFF | | binlog_cache_size | 32768 | | binlog_checksum | NONE | | binlog_direct_non_transactional_updates | OFF | | binlog_format | STATEMENT | | binlog_optimize_thread_scheduling | ON | | binlog_stmt_cache_size| 32768 | | expire_logs_days | 0 | | general_log | OFF | | general_log_file | pdone-prod.log | | innodb_flush_log_at_trx_commit| 1 | | innodb_locks_unsafe_for_binlog| OFF | | innodb_log_block_size | 512 | | innodb_log_buffer_size| 8388608 | | innodb_log_file_size | 5242880 | | innodb_log_files_in_group | 2 | | innodb_log_group_home_dir | ./ | | innodb_mirrored_log_groups| 1 | | innodb_recovery_update_relay_log | OFF | | innodb_use_global_flush_log_at_trx_commit | ON | | log | OFF | | log_bin | OFF | | log_bin_trust_function_creators | OFF | | log_error | /var/lib/mysql/pdone-prod.pdi-inc.com.err | | log_output| FILE | | log_queries_not_using_indexes | OFF | | log_slave_updates | OFF | | log_slow_filter | admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk | | log_slow_queries | OFF | | log_slow_rate_limit | 1 | | log_slow_verbosity| | | log_warnings | 1 | | max_binlog_cache_size | 18446744073709547520 | | max_binlog_size | 1073741824 | | max_binlog_stmt_cache_size| 18446744073709547520 | | max_relay_log_size| 0 | | relay_log | | | relay_log_index | | | relay_log_info_file | relay-log.info | | relay_log_purge | ON | |
Re: [CentOS] SOT: MariaDB 5.5.x-MariaDB logs are not going to desired .log file
On Mon, Nov 30, 2015 at 5:50 PM, Wes James wrote: > Does this help: > > > http://dba.stackexchange.com/questions/98732/how-to-enable-queries-logs-in-mariadb > < > http://dba.stackexchange.com/questions/98732/how-to-enable-queries-logs-in-mariadb > > > > did search online - maybe you need to change mysql log location that might > override mariadb conf file. > Lol, that belongs to me I have updated that post to see if I can get some help, thanks for remember me that old post from past April ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Write content to file from Dockerfile and/or any other method
I am building a Dockerfile and I am setting up MariaDB repos as follow: # Setup MariaDB repos RUN touch /etc/yum.repos.d/MariaDB.repo I should write this inside the MariaDB.repo file: [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 What's the right way to do this? The one below? echo "[mariadb]" >> "/etc/yum.repos.d/MariaDB.repo" echo "name = MariaDB" >> "/etc/yum.repos.d/MariaDB.repo" echo "baseurl = http://yum.mariadb.org/5.5/centos6-amd64"; >> "/etc/yum.repos.d/MariaDB.repo" echo "gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"; >> "/etc/yum.repos.d/MariaDB.repo" echo "gpgcheck=1" >> "/etc/yum.repos.d/MariaDB.repo" ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] SOT: Best strategy for automatize a flow that need user interaction
I am working in a Dockerfile but there is a "secure" MariaDB server script I need to run which is interactive and I don't know how to deal with this. Basically this is the flow I have follow on the script at test environment and is the same I want to achieve in the Dockerfile without user interaction by just answering as you seen on the flow below: # /usr/bin/mysql_secure_installation Enter current password for root (enter for none): [ENTER] // because there is no password OK, successfully used password, moving on... Set root password? [Y/n] n ... skipping. Remove anonymous users? [Y/n] Y ... Success! Disallow root login remotely? [Y/n] n ... skipping. Remove test database and access to it? [Y/n] Y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] Y ... Success! Cleaning up... So I need to write a bash script or something else that could handle this automatically but has not idea, how would you take care of this? ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Write content to file from Dockerfile and/or any other method
Thx to both of you, I forgot to add a SOT before the title because yes this is more a Docker question than a Linux one, my bad On Fri, Jan 29, 2016 at 7:12 AM, Yamaban wrote: > On Fri, 29 Jan 2016 06:31, Keith Keller wrote: > >> On 2016-01-29, reynie...@gmail.com wrote: >> >>> >>> I am building a Dockerfile and I am setting up MariaDB repos as follow: >>> >> >> This question is probably way offtopic for a CentOS mailing list. >> >> # Setup MariaDB repos >>> RUN touch /etc/yum.repos.d/MariaDB.repo >>> >>> What's the right way to do this? The one below? >>> >>> echo "[mariadb]" >> "/etc/yum.repos.d/MariaDB.repo" >>> echo "name = MariaDB" >> "/etc/yum.repos.d/MariaDB.repo" >>> echo "baseurl = http://yum.mariadb.org/5.5/centos6-amd64"; >> >>> "/etc/yum.repos.d/MariaDB.repo" >>> echo "gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB"; >> >>> "/etc/yum.repos.d/MariaDB.repo" >>> echo "gpgcheck=1" >> "/etc/yum.repos.d/MariaDB.repo" >>> >> >> You probably want to do a COPY. The Docker docs cover Dockerfile syntax >> in detail: >> >> https://docs.docker.com/engine/reference/builder/#copy >> > > Yep, this is a much better way to do such things. > create the 'MariaDB.repo' in the direstory the 'Dockerfile' resides in, > and use the following line in the Dockerfile: > > [code] > COPY MariaDB.repo /etc/yum.repos.d/MariaDB.repo > [/code] > > much better that way, for further tips on Dockerfile writing, > I'll point you to the offical site "docs.docker.com", esp: > > https://docs.docker.com/engine/articles/dockerfile_best-practices/ > > Have a nice weekend, > - Yamaban. > > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Apache doesn't display "It works page" under CentOS 7
I have Apache/2.4.6 installed in a minimal CentOS 7 VM. I am trying to access the default page when Apache is installed by accessing the CentOS IP as http://192.168.3.130 (is a host only interface) but I got "This webpage is not available: ERR_CONNECTION_TIMED_OUT" and I can't find why. I have stopped iptables and then checked: # service iptables status Redirecting to /bin/systemctl status iptables.service ● iptables.service - IPv4 firewall with iptables Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled) Active: inactive (dead) Jan 29 11:22:43 devserver.local systemd[1]: Stopped IPv4 firewall with iptables. isn't running. I have checked the status of Apache: # service httpd status Redirecting to /bin/systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2016-01-29 11:16:00 EST; 7min ago Docs: man:httpd(8) man:apachectl(8) Main PID: 18738 (httpd) Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: /system.slice/httpd.service ├─18738 /usr/sbin/httpd -DFOREGROUND ├─18739 /usr/sbin/httpd -DFOREGROUND ├─18740 /usr/sbin/httpd -DFOREGROUND ├─18741 /usr/sbin/httpd -DFOREGROUND ├─18742 /usr/sbin/httpd -DFOREGROUND └─18743 /usr/sbin/httpd -DFOREGROUND Jan 29 11:15:58 devserver.local systemd[1]: Starting The Apache HTTP Server... Jan 29 11:15:59 devserver.local httpd[18738]: AH00557: httpd: apr_sockaddr_info_get() failed for devserver.local Jan 29 11:15:59 devserver.local httpd[18738]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message Jan 29 11:16:00 devserver.local systemd[1]: Started The Apache HTTP Server. it's running. I have checked network status: # ifconfig eno1628: flags=4163 mtu 1500 inet 192.168.222.133 netmask 255.255.255.0 broadcast 192.168.222.255 inet6 fe80::20c:29ff:fe6f:2b72 prefixlen 64 scopeid 0x20 ether 00:0c:29:6f:2b:72 txqueuelen 1000 (Ethernet) RX packets 152628 bytes 225455749 (215.0 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 54931 bytes 3355746 (3.2 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eno33554952: flags=4163 mtu 1500 inet 192.168.3.130 netmask 255.255.255.0 broadcast 192.168.3.255 inet6 fe80::20c:29ff:fe6f:2b7c prefixlen 64 scopeid 0x20 ether 00:0c:29:6f:2b:7c txqueuelen 1000 (Ethernet) RX packets 9655 bytes 702056 (685.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 5800 bytes 529054 (516.6 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 0 (Local Loopback) RX packets 20 bytes 1700 (1.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 20 bytes 1700 (1.6 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 it's fine. I have ping server from Windows: C:\Users\reynierpm>ping 192.168.3.130 Pinging 192.168.3.130 with 32 bytes of data: Reply from 192.168.3.130: bytes=32 time<1ms TTL=64 Reply from 192.168.3.130: bytes=32 time<1ms TTL=64 Reply from 192.168.3.130: bytes=32 time<1ms TTL=64 Reply from 192.168.3.130: bytes=32 time<1ms TTL=64 Ping statistics for 192.168.3.130: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms it works. So ... what's wrong? What I am missing here? ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] SOT: Best strategy for automatize a flow that need user interaction
On Fri, Jan 29, 2016 at 11:25 AM, Keith Keller < kkel...@wombat.san-francisco.ca.us> wrote: > Honestly, I think your best long-term strategy for getting help with > Docker is a Docker list. Personally I have no major problems with OT > questions, but if you ask your question someplace where everyone uses > (and maybe even develops) your software you're much more likely to get > a more complete and correct answer. On this list you're hoping that > there's enough of a subset of users to answer your questions, and of > that subset who knows how many of them really know what they're doing. > > If the software you were asking about were some strange obscure program > that few people use any more, I could see asking everywhere you could on > the off-chance that someone knows about it. But for something so > popular like Docker there's no reason to go away from their discussion > forums. > No problem Keith, I will move this discussion to Docker google groups and perhaps I will get a better answer :-) thanks for your suggestion Cheers ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Where did network setup goes under setup utility in CentOS 7?
In CentOS 6.7 I ran setup command and I could configure network settings from that "gui" utility at command line. In CentOS 7 I don't know where this goes or how to enabled. I have installed a few packages: yum install setuptool -y \ && yum install system-config-network-tui -y \ && yum install system-config-firewall* -y \ && yum install system-config-securitylevel-tui -y \ && yum install system-config-keyboard -y \ && yum install ntsysv -y But I can't see the network settings, see this pic: http://content.screencast.com/users/ReynierPM/folders/Snagit/media/39e744c6-1575-47b6-b3fb-6e95280fe21d/01.29.2016-11.38.png Should I install any other package? ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Apache doesn't display "It works page" under CentOS 7
On Fri, Jan 29, 2016 at 11:41 AM, Michael H wrote: > setsebool -P httpd_can_network_connect on > firewall-cmd --add-service=http --permanent > I have ran those two and still can't access. I have restarted httpd and iptables services after ran those lines. BTW, what those means? setsebool is part of SELinux? Or this is new kind of extra security layer on CentOS7? I am moving from Centos 6.7 to 7 and things change between versions. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Apache doesn't display "It works page" under CentOS 7
On Fri, Jan 29, 2016 at 11:48 AM, Michael H wrote: > Selinux has been around for a while. > Yes, I know this but ... > > setsebool - set selinux boolean > What I am asking is if the command above is part of SELinux since I doesn't use before because it's a VM running on my PC so I not need such security levels. > > You should probably be using the firewall-cmd rather than iptables; > firewall-cmd --add-service=http --permanent - add the http service to > your firewall. > > I forgot, unless you run > > firewall-cmd --reload > > the rules may not be in play. > U # firewall-cmd --reload FirewallD is not running ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Apache doesn't display "It works page" under CentOS 7
I should add this is a minimal CentOS perhaps it's lacks a few packages and I am not aware of which ones On Fri, Jan 29, 2016 at 11:52 AM, reynie...@gmail.com wrote: > > On Fri, Jan 29, 2016 at 11:48 AM, Michael H wrote: > >> Selinux has been around for a while. >> > > Yes, I know this but ... > > >> >> setsebool - set selinux boolean >> > > What I am asking is if the command above is part of SELinux since I > doesn't use before because it's a VM running on my PC so I not need such > security levels. > > >> >> You should probably be using the firewall-cmd rather than iptables; >> firewall-cmd --add-service=http --permanent - add the http service to >> your firewall. >> >> I forgot, unless you run >> >> firewall-cmd --reload >> >> the rules may not be in play. >> > > U > > # firewall-cmd --reload > FirewallD is not running > > ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Apache doesn't display "It works page" under CentOS 7
On Fri, Jan 29, 2016 at 11:56 AM, Michael H wrote: > I've setup several web servers this week, if this isn't working, you > broke something. We always use minimal installs. > No problem, it works! Thx ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] SOT: Can Fedora be installed from Live images?
Maybe world has changed I am not aware and I am still the old fashion way where I download a DVD image and install from there like in CentOS but has Fedora changed something? I mean I am trying to find the proper image for download it put on USB flash memory and install on my PC but all that I can find are "live images" so what happen here? Did I miss something? Can any put me on the right path? Thx in advance *Reynier Perez Mira* Phone: (786) 5807572 EMail: reynie...@gmail.com ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Upgrade from CentOS 6.5 to 7.0
Hi there, I have a CentOS 6.5 installation and I'll like to upgrade to 7.0, which are the steps to follow in order to get this done and mantain 6.5 services and configuration? Regards and thx in advance ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Upgrade from CentOS 6.5 to 7.0
On Wed, Jul 9, 2014 at 3:22 PM, Reindl Harald wrote: > if you would seriously follow that list you would > know the *for now* there is no such tool *but* > it is planned - so just wait and don't rush to > a x.0 release for no benefit > > You're right I just want to test, this is a development server, so no rush for now > why don't you wait and let others get expierience > and report? do you need the thrill? > I can wait, just ask since gurus are here, anyway thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] EPEL-7 is Released
Hi guys, sorry for this newbie question but how I do add EPEL repo to my CentOS 7? In the past I do this as follow: $ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm But now I don't know how to? Any help? On Sat, Aug 30, 2014 at 6:05 PM, Keith Keller < kkel...@wombat.san-francisco.ca.us> wrote: > On 2014-08-30, Valeri Galtsev wrote: > > > >>> On Fri, August 29, 2014 3:21 pm, Karanbir Singh wrote: > >>> > EPEL-7 is now considered GA > > > > Just to add everybody some loughs: State of Georgia was as far as I came > > about GA without your help ;-) > > I think it'd be great if EPEL took over Georgia! :) > > --keith > > > -- > kkel...@wombat.san-francisco.ca.us > > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] CentOS7 Minimal installation on Vmware missing network interface
Hi there, I'm playing with CentOS 7 (don't know if it's recommended at all have this one as a development server as maybe is not stable enough yet) and I installed it on a Vmware VM with two network interfaces: one as a bridged connected directly to the physical network and replicating the network state and the second one as a host only interface (the one I use to manage the VM) so after I got the CentOS installed I can see the first interface but not the second one and I don't know how to enable it. If I run the command ifconfig -a this is what I see: eno1628: flags=4163 mtu 1500 inet 192.168.1.112 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::250:56ff:fe2e:e245 prefixlen 64 scopeid 0x20 ether 00:50:56:2e:e2:45 txqueuelen 1000 (Ethernet) RX packets 126 bytes 17122 (16.7 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 83 bytes 12627 (12.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 0 (Local Loopback) RX packets 8 bytes 552 (552.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 552 (552.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 What I need to do in order to enable the other interface? Also how I change the name eno1628 to eth0-internet without get down my server? Thanks in advace ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] EPEL-7 is Released
On Sun, Aug 31, 2014 at 12:33 PM, Digimer wrote: > This is the most you would need to do: > > yum clean all > You mean run only this command or run first the command sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm and then yum clean all? I try the command sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm and I got error since file doesn't exists "curl: (22) The requested URL returned error: 404 Not Found" so what other thing I should try? Cheers and thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] EPEL-7 is Released
Thanks, I get it and now it's working On Sun, Aug 31, 2014 at 1:53 PM, Digimer wrote: > On 31/08/14 02:18 PM, reynie...@gmail.com wrote: > > On Sun, Aug 31, 2014 at 12:33 PM, Digimer wrote: > > > >> This is the most you would need to do: > >> > >> yum clean all > >> > > > > You mean run only this command or run first the command sudo rpm -Uvh > > > http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm > > and then yum clean all? I try the command sudo rpm -Uvh > > > http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm > > and I got error since file doesn't exists "curl: (22) The requested URL > > returned error: 404 Not Found" so what other thing I should try? > > > > Cheers and thanks > > That is the beta URL (epel/beta/7), you need to full release RPM: > > > https://fedoraproject.org/wiki/EPEL#What_packages_and_versions_are_available_in_EPEL.3F > > -- > Digimer > Papers and Projects: https://alteeve.ca/w/ > What if the cure for cancer is trapped in the mind of a person without > access to education? > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS7 Minimal installation on Vmware missing network interface
On Sun, Aug 31, 2014 at 1:56 PM, Reindl Harald wrote: > i don't see you VMware configuration in your post > > Which configuration you need? The one I made at Windows side? The Vmware is running on Windows 7 (I didn't send here since I don't know if I can attach images to this list and to not be banned so I omit then) > you need to use the "vmxnet3" ethernet interface for the VM > that module is part of the Linux upstream Kernel for a long time > > that below is straight out-of-box on REHL7 > the open-vm-tools now are only the user-space daemon > the times where you need to compile kernel modules are gone 2013 > > [root@localhost:~]$ lsmod | grep vm > vmw_balloon13415 0 > vmxnet349541 0 > vmw_vmci 67106 0 > vmw_pvscsi 22858 4 > What about if I didn't see vmxnet3? [root@webserver ~]# lsmod | grep vm vmw_balloon13415 0 vmw_vmci 67106 0 vmwgfx135143 1 ttm83948 1 vmwgfx drm 297829 2 ttm,vmwgfx ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS7 Minimal installation on Vmware missing network interface
On Sun, Aug 31, 2014 at 1:56 PM, Digimer wrote: > This is something of a loaded question and also quite dependent on what > you are doing. If the server is very critical, I would probably wait > until 7.1 or 7.2. If the server is not very critical, then sure, use EL7 > and start learning it (and report bugs! :) ). > > It's not critical, just a development server I'll like to configure in order to start learn a bit CentOS 7 (I'm not a System Administrator expert but a developer) > If 'ifconfig -a' doesn't see it, the kernel probably doesn't, either. Do > you see it in lspci or dmidecode? If not, I would look at the hypervisor > for a problem. > As I said above I'm not a expert but I did "man dmidecode" since lspci isn't available and I can't find a TYPE for see network interfaces also I do not know if the output is related to motherboard (the one I have) or is related to emulated board (if this has sense), so what command should I run to give you proper info? > > Yes you can do it without rebooting, but it still requires taking the > network down. > > I wrote this a while ago: > > https://alteeve.ca/w/Changing_Ethernet_Device_Names_in_EL7_and_Fedora_15%2B > > It probably needs to be updated/cleaned up, but it should be good enough > to help you. I'll take a look in a few minutes after system updates complete ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS7 Minimal installation on Vmware missing network interface
On Sun, Aug 31, 2014 at 2:05 PM, Reindl Harald wrote: > ook what adapter type you have configured for your virtual machine > maybe the GUI don't show it - it's even on vSphere a pain where you > need to remove the NIC and add it again by take care of the type > > * in doubt shut down the guest > * close VMware > * open the .vxm file > > ethernet0.virtualDev = "vmxnet3" > > depens if that "ethernet0.virtualDev" exists > if yes -> change it to vmxnet3 > if not add it somewhere around the other ethernet settings > This is what I have in .vxm file: ethernet0.present = "TRUE" ethernet0.virtualDev = "e1000" ethernet0.wakeOnPcktRcv = "FALSE" ethernet0.addressType = "static" ethernet0.address = "00:50:56:2E:E2:45" ethernet0.linkStatePropagation.enable = "TRUE" ethernet1.present = "TRUE" ethernet1.vnet = "VMnet1" ethernet1.connectionType = "custom" ethernet1.wakeOnPcktRcv = "FALSE" ethernet1.addressType = "static" ethernet1.address = "00:50:56:3F:86:30" And this is how I configured the network interface at Vmware http://imgur.com/GSX9N6c the weird part here is the same network configuration works fine in a CentOS 6.5 VM ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS7 Minimal installation on Vmware missing network interface
On Sun, Aug 31, 2014 at 2:18 PM, Reindl Harald wrote: > ethernet0.virtualDev = "e1000" > ethernet0.virtualDev = "vmxnet3" > Thanks now with the solution you give me I'm able to see the network interface and yes I learn something new today so thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Can't reach Internet
I'm having some issues with Internet access from CentOS7 server which is installed in Vmware Workstation 10.0.3 build-1895310 in Windows 7 x64. At this point I can't get if the error is on CentOS configuration or it's another problem so I leave here what I did in order to get Internet working on that VM. 1) */etc/resolv.conf* # Generated by NetworkManager nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 4.2.2.2 2) */etc/sysconfig/network* # Created by anaconda HOSTNAME=webserver DNS1=8.8.8.8 DNS2=8.8.4.4 DNS3=4.2.2.2 3)* /etc/sysconfig/network-scripts/ifcfg-eno1628* TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes NAME="Internet Eth0" UUID=0a79e5fc-ee8a-41eb-93dd-a76e3cb8c7c1 ONBOOT=yes HWADDR=00:50:56:2E:E2:4 4) ifconfig -a *eno1628*: flags=4163 mtu 1500 inet 192.168.1.112 netmask 255.255.255.0 broadcast 192.168.1.255 ether 00:50:56:2e:e2:45 txqueuelen 1000 (Ethernet) RX packets 186 bytes 20568 (20.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 31 bytes 4956 (4.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 *eno33555200*: flags=4163 mtu 1500 inet 192.168.3.131 netmask 255.255.255.0 broadcast 192.168.3.255 ether 00:50:56:3f:86:30 txqueuelen 1000 (Ethernet) RX packets 1016 bytes 106110 (103.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 859 bytes 108641 (106.0 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 *lo*: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 0 (Local Loopback) RX packets 8 bytes 552 (552.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 8 bytes 552 (552.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 *eno1628 *is the interface that should access to Internet since this is the one I've configured in Vmware as bridged (connected directly to the physical network interface of host) and also it's replicating physical network connection. When I try to ping any as for example: www.google.com DNS are not responding, see below: # ping google.com ping: unknown host google.com Is something wrong in my configuration? I have some others CentOS 6.5 VM running on the same Vmware Workstation and all of them can access Intertnet but this one not. Any help? Thx ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Can't reach Internet
What you mean with check default route? On Aug 31, 2014 4:31 PM, wrote: > > Check default route.. If installed > -- > Enviado pelo aplicativo muMail para Android > domingo, 31 agosto 2014, 05:53PM -03:00 de "reynie...@gmail.com" < > reynie...@gmail.com>: > I'm having some issues with Internet access from CentOS7 server which is > installed in Vmware Workstation 10.0.3 build-1895310 in Windows 7 x64. At > this point I can't get if the error is on CentOS configuration or it's > another problem so I leave here what I did in order to get Internet working > on that VM. > 1) */etc/resolv.conf* > # Generated by NetworkManager > nameserver 8.8.8.8 > nameserver 8.8.4.4 > nameserver 4.2.2.2 > 2) */etc/sysconfig/network* > # Created by anaconda > HOSTNAME=webserver > DNS1=8.8.8.8 > DNS2=8.8.4.4 > DNS3=4.2.2.2 > 3)* /etc/sysconfig/network-scripts/ifcfg-eno1628* > TYPE=Ethernet > BOOTPROTO=dhcp > DEFROUTE=yes > NAME="Internet Eth0" > UUID=0a79e5fc-ee8a-41eb-93dd-a76e3cb8c7c1 > ONBOOT=yes > HWADDR=00:50:56:2E:E2:4 > 4) ifconfig -a > *eno1628*: flags=4163 mtu 1500 > inet 192.168.1.112 netmask 255.255.255.0 broadcast 192.168.1.255 > ether 00:50:56:2e:e2:45 txqueuelen 1000 (Ethernet) > RX packets 186 bytes 20568 (20.0 KiB) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 31 bytes 4956 (4.8 KiB) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > *eno33555200*: flags=4163 mtu 1500 > inet 192.168.3.131 netmask 255.255.255.0 broadcast 192.168.3.255 > ether 00:50:56:3f:86:30 txqueuelen 1000 (Ethernet) > RX packets 1016 bytes 106110 (103.6 KiB) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 859 bytes 108641 (106.0 KiB) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > *lo*: flags=73 mtu 65536 > inet 127.0.0.1 netmask 255.0.0.0 > loop txqueuelen 0 (Local Loopback) > RX packets 8 bytes 552 (552.0 B) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 8 bytes 552 (552.0 B) > TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > *eno1628 *is the interface that should access to Internet since this is > the one I've configured in Vmware as bridged (connected directly to the > physical network interface of host) and also it's replicating physical > network connection. When I try to ping any as for example: www.google.com > DNS are not responding, see below: > # ping google.com > ping: unknown host google.com > Is something wrong in my configuration? I have some others CentOS 6.5 VM > running on the same Vmware Workstation and all of them can access Intertnet > but this one not. Any help? > Thx > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Can't reach Internet
On Sun, Aug 31, 2014 at 4:44 PM, Ed Donahue III wrote: > $ route -n > > the one listed as gateway is your default route. > Ok, since my default route is bad, # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 0.0.0.0 192.168.3.1 0.0.0.0 UG1024 00 eno33555200 192.168.1.0 0.0.0.0 255.255.255.0 U 0 00 eno16780032 192.168.3.0 0.0.0.0 255.255.255.0 U 0 00 eno33555200 I tried this two ways: 1) */etc/sysconfig/network* Add line GATEWAY=192.168.1.1 Restart the newtork service: # service network restart Restarting network (via systemctl):[ OK ] # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 0.0.0.0 192.168.3.1 0.0.0.0 UG1024 00 eno33555200 192.168.1.0 0.0.0.0 255.255.255.0 U 0 00 eno16780032 192.168.3.0 0.0.0.0 255.255.255.0 U 0 00 eno33555200 Still no changes 2) */etc/sysconfig/network-scripts/ifcfg-eno1628* Add line GATEWAY=192.168.1.1 Restart the newtork service: # service network restart Restarting network (via systemctl):[ OK ] # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 0.0.0.0 192.168.3.1 0.0.0.0 UG1024 00 eno33555200 192.168.1.0 0.0.0.0 255.255.255.0 U 0 00 eno16780032 192.168.3.0 0.0.0.0 255.255.255.0 U 0 00 eno33555200 Still no changes What I'm doing wrong? Every time I do a network change/configuration I need to restart the complete OS in order changes to take effect, why? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Can't reach Internet
On Sun, Aug 31, 2014 at 4:54 PM, Reindl Harald wrote: > > who knows - looking at other threads - why did you assign *two* > network interfaces to your virtual machine at all? > > Because if for any reason WAN is down then I can reach the VM trough the DHCP assigned IP I though > > who knows? > why don't you just restart your network service in the guest? > Because this is not the problem, as I mention before I have another VM running on the same Vmware and all of them has Internet access so the problem is here with this one at some part but I'm able to find it ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Can't reach Internet
Ok, now I've fixed the Internet connection by running this command: ip route replace default via 192.168.1.1 but now I have two default routes: # ip route show default via 192.168.1.1 dev eno16780032 default via 192.168.3.1 dev eno33555200 proto static metric 1024 192.168.1.0/24 dev eno16780032 proto kernel scope link src 192.168.1.112 192.168.3.0/24 dev eno33555200 proto kernel scope link src 192.168.3.131 Is that right? How do I remove the second one? (default via 192.168.3.1 dev eno33555200 proto static metric 1024) On Sun, Aug 31, 2014 at 4:57 PM, reynie...@gmail.com wrote: > > On Sun, Aug 31, 2014 at 4:54 PM, Reindl Harald > wrote: > >> >> who knows - looking at other threads - why did you assign *two* >> network interfaces to your virtual machine at all? >> >> > Because if for any reason WAN is down then I can reach the VM trough the > DHCP assigned IP I though > > >> >> who knows? >> why don't you just restart your network service in the guest? >> > > Because this is not the problem, as I mention before I have another VM > running on the same Vmware and all of them has Internet access so the > problem is here with this one at some part but I'm able to find it > > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Can't reach Internet
On Sun, Aug 31, 2014 at 5:03 PM, John R Pierce wrote: > grep 192.168.3.1 /etc/sysconfig/network-scripts/* > > # grep 192.168.3.1 /etc/sysconfig/network-scripts/* /etc/sysconfig/network-scripts/ifcfg-local:IPADDR=192.168.3.131 /etc/sysconfig/network-scripts/ifcfg-local:GATEWAY=192.168.3.1 > alternately, is the 192.168.3.x interface being configured by DHCP? > perhaps its DHCP server is handing out that gateway. > No, it's handled static: TYPE=Ethernet ONBOOT=yes BOOTPROTO=static IPADDR=192.168.3.131 GATEWAY=192.168.3.1 NETMASK=255.255.255.0 NAME="Local Eth1" UUID=0a79e5fc-ee8a-41eb-93dd-a76e3cb8c7c1 HWADDR=00:50:56:3F:86:30 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
I'm trying to extend a logical volume and I'm doing as follow: 1- Run `fdisk -l` command and this is the output: Disk /dev/sda: 85.9 GB, 85899345920 bytes 255 heads, 63 sectors/track, 10443 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00054fc6 Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 641044483371008 8e Linux LVM Disk /dev/mapper/vg_devserver-lv_swap: 4194 MB, 4194304000 bytes 255 heads, 63 sectors/track, 509 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x Disk /dev/mapper/vg_devserver-lv_root: 27.5 GB, 27523022848 bytes 255 heads, 63 sectors/track, 3346 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x 2- Run `fdisk /dev/sda`and print partition using `p`: Disk /dev/sda: 85.9 GB, 85899345920 bytes 255 heads, 63 sectors/track, 10443 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00054fc6 DeviceBoot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 1044483371008 8e Linux LVM Try to create the partition by running: Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 No free sectors available I also check the free available space using vgdisplay and watching the Free PE / Size part near the end and seems like I've free space available (Free PE / Size 7670 / 29.96 GiB) so I tried to extend the LV by using the command:lvextend -L+29G /dev/vg_devserver/lv_root but I got some errors and don't know where to go from here. The first error I see at console is this /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. Cannot change VG vg_devserver while PVs are missing. Consider vgreduce --removemissing. Then following the suggestion from the previous command results I run this other command vgreduce --removemissing vg_devserver but again got this error: WARNING: Partial LV lv_root needs to be repaired or removed. There are still partial LVs in VG vg_devserver. To remove them unconditionally use: vgreduce --removemissing --force. Proceeding to remove empty missing PVs. so I change the command to the one suggested but once again another message Removing partial LV lv_root. Logical volume vg_devserver/lv_root contains a filesystem in use. so at this point I don't know what else to do,can any give me some ideas or help? Don't kill me if is something basic I'm not a Linux Admin or a Linux Advanced User just a developer trying to setup their development environment. How I can get this done? What I'm doing wrong? I'm following [this][1] guide because my filesytem is Ext4. Also [this][2] is helpful too but applies to Ext3 only [1]: http://www.uptimemadeeasy.com/vmware/grow-an-ext4-filesystem-on-a-vmware-esxi-virtual-machine/ [2]: http://kb.vmware.com/selfservice/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1006371 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Mon, Oct 27, 2014 at 3:54 PM, Zhang, Jonathan wrote: > Rebooting your system, then run fdisk /dev/sda > > Then run > P > N > P > 3 > Can't pass from here, it says: Partition number (1-4): 3 No free sectors available Why? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
Hi SilverTip nice answer and very helpful, I'll try to get some more help here since as I said in the main post I'm not an expert on Linux or a Administrator I'm just a developer trying to setup a development enviroment so ... It's telling you the truth. > Sounds like you want another Logical Volume (LV) not partition. > > You're right, what I need is a new LV but how I do that? > Sounds like you destroyed one or more of your LVs through all this. > > Probable and I'm pretty sure I do it :-( > Please read the following documentation before forging further ahead. > And you might spin up a VM or live CD to experiment with LVM operations > before going any further as well. > - speaks about extents [0] > - read the entire Chapter 2 on LVM [1] as it applies to your scenario (ex: > snapshots probably don't) > - dated/older, but it may prove helpful [2] > > [0] > > https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/lv_overview.html > [1] > > https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/LVM_components.html > [2] http://www.tldp.org/HOWTO/html_single/LVM-HOWTO/ > Fine, I read it but know doubts persist on my mind. First, I'm running OS in a Vmware Workstation VM and I'll not like to loose every I have there since then I'll need to reconfigure all from scratch but if there is not another option to save my mess the we should go through it. Now I'm almost sure what I need here is a "Linear Volumes" configuration why? Well because my VM disks have 30GB in first and now I resize it to 80GB and that's the space I want to see in my Linux and can't get it. In order to get it working again, what steps I should follow? That's my concern and what I've clear at all Thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
Uppsss I think this goes more and more advanced all the time but here I go more doubts On Mon, Oct 27, 2014 at 9:20 PM, Ted Miller wrote: > If I were in your position, I think I would: > * Create a new, 80GB disk using VMWare > Not problem at all > * Partition that disk into your /boot and LVM partitions > How I do that out of the box? I mean should I mount that disk in the VM and partition from there, right? > * pvcreate > * vgcreate > Ok, create physical volume and volume group > * lvcreate the disk structure you want in your new disk, making sure all > LVs are at least a little bigger than the old ones. > Here I get lost, what structure should I create here? I only have one LV lv_root you mean create the same and of course bigger than the old one, right? > * use dd to copy disks from old drives to corresponding old drives > And here I declare myself complete lost, this is the first time I see this command and don't know how to use it > * use resize2fs to expand your file system to the full size of each of the > LVs you created. > * detach old virtual disk from your VM > * reboot, and see if you succeeded > > If I forgot something here, hopefully someone else will chime in. The > idea is to dump your corrupted LVM structure without loosing its content. > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Mon, Oct 27, 2014 at 11:21 PM, Robert Nichols wrote: > Those I/O errors are alarming. They suggest that you have a disk that is > failing. Does anything about disk sda appear in /var/log/messages when > you do that? You should indeed have 29GB available for growing lv_root, > but perhaps the disk error is what is preventing the tool from finding > the LV's UUID. > If I search through grep uuid this is what I get #cat /var/log/messages | grep uuid Oct 27 17:56:08 localhost kernel: dracut: Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. Oct 27 17:56:08 localhost kernel: dracut: Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. Oct 27 17:56:08 localhost kernel: dracut: Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. Oct 27 17:56:08 localhost kernel: dracut: Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. And if I do throug sda instead I get this: #cat /var/log/messages | grep sda Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] 167772160 512-byte logical blocks: (85.8 GB/80.0 GiB) Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] Write Protect is off Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] Cache data unavailable Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] Assuming drive cache: write through Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] Cache data unavailable Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] Assuming drive cache: write through Oct 27 17:56:08 localhost kernel: sda: sda1 sda2 Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] Cache data unavailable Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] Assuming drive cache: write through Oct 27 17:56:08 localhost kernel: sd 2:0:1:0: [sda] Attached SCSI disk Oct 27 17:56:08 localhost kernel: dracut: Scanning devices sda2 for LVM logical volumes vg_devserver/lv_root vg_devserver/lv_swap Oct 27 17:56:08 localhost kernel: dracut: Scanning devices sda2 for LVM logical volumes vg_devserver/lv_root vg_devserver/lv_swap Oct 27 17:56:08 localhost kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 1:08 AM, John R Pierce wrote: > what do you get from the commands: > > pvs -v > vgs -v > lvs > > and, if pvs shows any /dev/mdXX devices, the output of mdadm --detail > /dev/mdXX > Hi John, here are the results: #pvs -v Scanning for physical volume names /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Wiping cache of LVM-capable devices /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. There are 1 physical volumes missing. There are 1 physical volumes missing. There are 1 physical volumes missing. PV VG Fmt Attr PSize PFree DevSize PV UUID /dev/sda2 vg_devserver lvm2 a-- 29.51g 0 79.51g ij17Vf-kY56-jfg0-j769-Z1E5-Nk7C-RqYG18 unknown device vg_devserver lvm2 a-m 29.99g 29.96g 0 vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS # vgs -v Finding all volume groups /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Finding volume group "vg_devserver" Wiping cache of LVM-capable devices /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. There are 1 physical volumes missing. There are 1 physical volumes missing. VG Attr Ext #PV #LV #SN VSize VFree VG UUIDVProfile vg_devserver wz-pn- 4.00m 2 2 0 59.50g 29.96g VidRBE-37ri-HYfd-Sd1x-6lZX-ph9I-F3wvCG # lvs /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert lv_root vg_devserver -wi-ao--p- 25.63g lv_swap vg_devserver -wi-ao 3.91g And there is not mdXX device so I ommit that command ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 10:31 AM, Robert Nichols wrote: > Please post the output from >ls -l /dev/root /dev/mapper > and the contents of file /etc/lvm/backup/vg_devserver . > Here, # ls -l /dev/root /dev/mapper lrwxrwxrwx 1 root root 4 Oct 27 17:55 /dev/root -> dm-2 /dev/mapper: total 0 crw-rw 1 root root 10, 58 Oct 27 17:55 control lrwxrwxrwx 1 root root 7 Oct 27 17:55 vg_devserver-lv_root -> ../dm-2 lrwxrwxrwx 1 root root 7 Oct 27 17:55 vg_devserver-lv_root-missing_1_0 -> ../dm-1 lrwxrwxrwx 1 root root 7 Oct 27 17:55 vg_devserver-lv_swap -> ../dm-0 # cat /etc/lvm/backup/vg_devserver # Generated by LVM2 version 2.02.100(2)-RHEL6 (2013-10-23): Mon Oct 20 15:27:17 2014 contents = "Text Format Volume Group" version = 1 description = "Created *after* executing 'vgreduce --removemissing vg_devserver'" creation_host = "localhost" # Linux localhost 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 creation_time = 1413835037 # Mon Oct 20 15:27:17 2014 vg_devserver { id = "VidRBE-37ri-HYfd-Sd1x-6lZX-ph9I-F3wvCG" seqno = 6 format = "lvm2" # informational status = ["RESIZEABLE", "READ", "WRITE"] flags = [] extent_size = 8192 # 4 Megabytes max_lv = 0 max_pv = 0 metadata_copies = 0 physical_volumes { pv0 { id = "ij17Vf-kY56-jfg0-j769-Z1E5-Nk7C-RqYG18" device = "/dev/sda2"# Hint only status = ["ALLOCATABLE"] flags = [] dev_size = 61888512 # 29.5107 Gigabytes pe_start = 2048 pe_count = 7554 # 29.5078 Gigabytes } pv1 { id = "vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS" device = "unknown device" # Hint only status = ["ALLOCATABLE"] flags = ["MISSING"] dev_size = 62906520 # 29.9962 Gigabytes pe_start = 2048 pe_count = 7678 # 29.9922 Gigabytes } } logical_volumes { lv_root { id = "Ee2apF-rS1m-7Xny-4XYk-u2ZM-lMp7-IBQPnL" status = ["READ", "WRITE", "VISIBLE"] flags = [] creation_host = "devserver" creation_time = 1361816267 # 2013-02-25 13:47:47 -0430 segment_count = 2 segment1 { start_extent = 0 extent_count = 6554 # 25.6016 Gigabytes type = "striped" stripe_count = 1# linear stripes = [ "pv0", 0 ] } segment2 { start_extent = 6554 extent_count = 8# 32 Megabytes type = "striped" stripe_count = 1# linear stripes = [ "pv1", 0 ] } } lv_swap { id = "hW0BAn-BzE4-aHXm-b18h-8rg0-JyBS-ycbOVd" status = ["READ", "WRITE", "VISIBLE"] flags = [] creation_host = "devserver" creation_time = 1361816271 # 2013-02-25 13:47:51 -0430 segment_count = 1 segment1 { start_extent = 0 extent_count = 1000 # 3.90625 Gigabytes type = "striped" stripe_count = 1# linear stripes = [ "pv0", 6554 ] } } } } ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 10:48 AM, Dominic Geevarghese wrote: > By looking at fdisk output pasted in your first mail, I don't see more than > 2 partition in your first disk - /dev/sda . > The first partition is - /dev/sda1 - is allocated for /boot and > second partition is - /dev/sda2 - for your PV/VG/LV where root resided. > However, the above output indicates you had 2 PVs , which is contradicting > with the information you have shared so far. > > I assume that, you have added an additional disk , then extended the VG, > but later removed ? OR tried another vgcreate ( afaik, lvm shouldn't allow > this but a wild guess ) on actual PV - /dev/sda2 ? > You're right in some moment I added a new disk and try to extend the VG and yes once again I removed by trying to do the same from Gparted Live CD and I messed all, this is what I'm trying to fix if it's possible so what procedure I should follow having this extra info? (apologies perhaps I should say this from the begining) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 11:45 AM, Robert Nichols wrote: > Yes, that would have helped a lot. I can see in file > /etc/lvm/backup/vg_devserver that the lv_root LV has been extended by a > mere 32 Megabytes (yes, Mega) on the missing physical volume. Do you > still have the additional disk? The best thing to do would be to put > it back, make a partition on it, and then re-create the missing PV. > I'll assume that the new partition is /dev/sdb1. Adjust all references > in the following if it si something else. > I don't think I have that disk alive, take a look to this image http://imgur.com/jMuhM03 this is how my disk looks like > > Make a copy of /etc/lvm/backup/vg_devserver on vg_devserver.bak, and > then run > >pvcreate -v --restorefile vg_devserver.bak \ > --uuid "vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS" \ > /dev/sdb1 > > This is the result of the command above: # pvcreate -v --restorefile /etc/lvm/backup/vg_devserver.bak --uuid "vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS" /dev/sdb1 /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Wiping cache of LVM-capable devices /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Couldn't find device with uuid vSbuSJ-o1Kh-N3ur-JYkM-Ktr4-WEO2-JWe2wS. Wiping cache of LVM-capable devices /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Device /dev/sdb1 not found (or ignored by filtering). > (I've broken that up into multiple lines to avoid word wrap problems.) > > You should then be able to run pvs and lvs successfully. To properly > remove this PV from the LVM structure, run > >lvreduce --extents -8 /dev/vg_devserver/lv_root >vgreduce vg_devserver /dev/sdb1 >pvremove /dev/sdb1 > > That lvreduce will get rid of the 32MB that were allocated on that > added PV. You will probably get a warning about possible data loss > and will have to confirm. The vgreduce and pvremove should then > proceed without any issues. > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 1:05 PM, Robert Nichols wrote: > You will have to find the archived configuration from before you tried to > extend that LV, and restore that configuration. Let's see what file you > have. Post the output from > >grep -H 'description =' /etc/lvm/archive/vg_devserver* > Here, # grep -H 'description =' /etc/lvm/archive/vg_devserver* /etc/lvm/archive/vg_devserver_0-1387802225.vg:description = "Created *before* executing '/sbin/vgs --noheadings -o name --config 'log{command_names=0 prefix=\" \"}''" /etc/lvm/archive/vg_devserver_1-1037597683.vg:description = "Created *before* executing 'vgextend vg_devserver /dev/sda3'" /etc/lvm/archive/vg_devserver_2-1876503.vg:description = "Created *before* executing 'lvextend -L+29.99 /dev/vg_devserver/lv_root'" /etc/lvm/archive/vg_devserver_3-1263624397.vg:description = "Created *before* executing 'vgreduce --removemissing vg_devserver'" /etc/lvm/archive/vg_devserver_4-313693030.vg:description = "Created *before* executing 'vgreduce --removemissing vg_devserver --force'" ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 1:43 PM, Robert Nichols wrote: > That all there are??? By default that archive should go back a minimum of > 30 days and a minimum of 10 files, whichever is larger. All I see here is > a history of your recovery efforts. Did you make that change from a live > CD, or something? > Yes, that is all and yes I made the changes from a Gparted LiveCD :-\ > > If necessary I could edit the backup file that you have now and clean > out all reference to the missing PV, but I'd rather not do that if there > is a safer way. > Ok, I attached the file here but also will be nice to extend the LVM so it can grow up until not empty space leave. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 2:17 PM, Robert Nichols wrote: > The attachment didn't come through, but I can use the file that you posted > before. The PV you have is completely used, but restoring this > configuration > should get you back to a state where you can try again to extend the VG to > a new PV. You can do _all_ of that online -- no need to resort to a live > CD. And this time, don't remove or overwrite that new PV until you have > successfully purged it from the LVM structure. > > Updated file attached as LVMconfig.new . All I have done is comment out > two blocks of lines referring to "pv1" and change the segment count to "1" > for lv_root. You will need to run > > vgcfgrestore -v --file LVMconfig.new vg_devserver > > You might want to try it first including the "--test" option to see what > it is going to do. > Well seem to be not working # vgcfgrestore -v --file LVMconfig.new vg_devserver --test File descriptor 7 (pipe:[18995]) leaked on vgcfgrestore invocation. Parent PID 3790: bash TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. Parse error at byte 81 (line 2): unexpected token Couldn't read volume group metadata. Restore failed. Test mode: Wiping internal cache Wiping internal VG cache ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
Nevermind I fixed this is the result of running the command in test mode: # vgcfgrestore -v --file LVMconfig.new vg_devserver --test File descriptor 7 (pipe:[18995]) leaked on vgcfgrestore invocation. Parent PID 3790: bash TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated. /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Restored volume group vg_devserver Test mode: Wiping internal cache Wiping internal VG cache Should I go? On Tue, Oct 28, 2014 at 2:25 PM, reynie...@gmail.com wrote: > > On Tue, Oct 28, 2014 at 2:17 PM, Robert Nichols < > rnicholsnos...@comcast.net> wrote: > >> The attachment didn't come through, but I can use the file that you posted >> before. The PV you have is completely used, but restoring this >> configuration >> should get you back to a state where you can try again to extend the VG to >> a new PV. You can do _all_ of that online -- no need to resort to a live >> CD. And this time, don't remove or overwrite that new PV until you have >> successfully purged it from the LVM structure. >> >> Updated file attached as LVMconfig.new . All I have done is comment out >> two blocks of lines referring to "pv1" and change the segment count to "1" >> for lv_root. You will need to run >> >> vgcfgrestore -v --file LVMconfig.new vg_devserver >> >> You might want to try it first including the "--test" option to see what >> it is going to do. >> > > > Well seem to be not working > > # vgcfgrestore -v --file LVMconfig.new vg_devserver --test > File descriptor 7 (pipe:[18995]) leaked on vgcfgrestore invocation. Parent > PID 3790: bash > TEST MODE: Metadata will NOT be updated and volumes will not be > (de)activated. > Parse error at byte 81 (line 2): unexpected token > Couldn't read volume group metadata. > Restore failed. > Test mode: Wiping internal cache > Wiping internal VG cache > > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 2:47 PM, Robert Nichols wrote: > That looks good. I understand the I/O error now. It is from an attempt to > read from the missing PV. The one question I have is, "Did you ever resize > the root filesystem?" I suspect not, since you would have seen errors from > the missing blocks. If you _did_, then it should be "interesting" trying > to get the filesystem back into its available space. In any case, fixing > the LVM structure has to come first, so I say go ahead without the "--test" > Ok, done: vgcfgrestore -v --file LVMconfig.new vg_devserver File descriptor 7 (pipe:[18995]) leaked on vgcfgrestore invocation. Parent PID 3790: bash /dev/root: read failed after 0 of 4096 at 27522957312: Input/output error /dev/root: read failed after 0 of 4096 at 27523014656: Input/output error Restored volume group vg_devserver What's next? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
Well I reboot the VM and now it does not boot up with kernel panic seems like this is bad. See attached image. On Tue, Oct 28, 2014 at 3:32 PM, Robert Nichols wrote: > On 10/28/2014 02:47 PM, reynie...@gmail.com wrote: > >> >> Ok, done: >> >> vgcfgrestore -v --file LVMconfig.new vg_devserver >> File descriptor 7 (pipe:[18995]) leaked on vgcfgrestore invocation. Parent >> PID 3790: bash >>/dev/root: read failed after 0 of 4096 at 27522957312: Input/output >> error >>/dev/root: read failed after 0 of 4096 at 27523014656: Input/output >> error >>Restored volume group vg_devserver >> >> What's next? >> > > See if things look sane. Do vgs and lvs run without error now? > > > -- > 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 mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 4:08 PM, Robert Nichols wrote: > Again, your attachments aren't coming through. Did you try running vgs > and lvs > before rebooting? What was the result? > That's weird maybe the list is configured to not allow attachments and no I didn't try any just reboot after the latest command and now get kernel panic, VM do not start ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] "No free sectors available" while try to extend logical volumen in a virtual machine running CentOS 6.5
On Tue, Oct 28, 2014 at 4:40 PM, Robert Nichols wrote: > The list does allow attachments. The file I sent you was an attachment. > I do not know why then my attachment are not attached, anyway here I uploaded the image http://imgur.com/B7YWY10 > > I wish you hadn't jumped right into rebooting. My only consolation is that > the result you got is probably what would have happened had you tried to > reboot _without_ changing anything. > Yes, before the latest change I reboot several times and system always pass trough > > Are you seeing any messages prior to the kernel panic? If not, reboot and > press TAB to see the GRUB menu. Press "a" to get to the kernel parameters > and then remove the parameters "rhgb" and "quiet". Then you will get to > see > what leads to the panic. > I leave you the printscreen on the image link, anyway is a VM the only problem is that I lost all the data and need to reinstall it all from scratch but recently CentOS 6.6 comes out so I'll give a try to this one and this time creating the proper LVM with a lot of space and keep this email secure for the future Thanks to everyone here one the list, great support ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Right way to install phpMyAdmin through Nginx and PHP-FPM
First I know this is not a list for PHP or Nginx setup or something else but I'll give it a try and ask here for support I'm running a new server with PHP 5.5.18 and Nginx 1.6.2 through FPM/FastCGI. The server is working fine since I have other websites running on it. Now I'm trying to configure phpMyAdmin and I tried this: * 1. *Create a file under `/etc/nginx/sites-available/phpMyAdmin with this content: server { server_name phpmyadmin.dev pma; root /usr/share/phpMyAdmin; location / { index index.php; } ## Images and static content is treated different location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ { access_logoff; expires 360d; } location ~ /\.ht { deny all; } location ~ /(libraries|setup/frames|setup/libs) { deny all; return 404; } location ~ \.php$ { include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name; } access_log /var/log/nginx/phpmyadmin/access.log; error_log /var/log/nginx/phpmyadmin/error.log; } But any time I restart Nginx service I got this error: nginx: [emerg] unknown "root" variable nginx: configuration file /etc/nginx/nginx.conf test failed * 2. *Create a symbolic link in `/var/www/html` to the route where phpMyAdmin was installed `/usr/share/phpMyAdmin` by running `ln -s /usr/share/phpMyAdmin/ /var/www/html` that way Nginx start fine but when I go to `http://devserver/phpMyAdmin` I got `Access denied.` What I'm doing wrong? What is the right way to configure the server in order to serve phpMyAdmin as any other site? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Right way to install phpMyAdmin through Nginx and PHP-FPM
On Wed, Oct 29, 2014 at 8:05 PM, Alexei Altuhov wrote: > If SElinux is in enforcing mode, check /var/log/audit/audit.log for > messages with "denied" to nginx trying accessing your pma path. > Or altermatevely you could run > audit2why -brvw, > provided you have installed the required rpm the above command is part of > beforehand. (Smth like python-policy-blah. Can't tell from the top of my > head) > SELinux is disabled so I not have any message for "deniend" on audit.log file and the second command was not found I think I need to install something else ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Conflicts updating packages, hot to get ride of them without mess up all my OS?
Apparently I install some packages in the wrong way and now I'm having some problems updating my OS. This is what I'm doing: # yum update --enablerepo=remi,remi-php5 Loaded plugins: fastestmirror, security Setting up Update Process Loading mirror speeds from cached hostfile epel/metalink 2.3 kB 00:00 * base: centos.xpg.com.br * epel: mirror.globo.com * extras: centos.xpg.com.br * remi: mirror.pw * updates: centos.ar.host-engine.com base 3.7 kB 00:00 epel 4.4 kB 00:00 epel/primary_db 6.3 MB 01:55 extras3.3 kB 00:00 mariadb 1.9 kB 00:00 nginx 2.9 kB 00:00 pgdg92 3.7 kB 00:00 remi 2.9 kB 00:00 remi/primary_db 1.0 MB 00:06 updates 3.4 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package libevent.x86_64 0:1.4.13-4.el6 will be updated --> Processing Dependency: libevent-1.4.so.2()(64bit) for package: 1:nfs-utils-1.2.3-54.el6.x86_64 ---> Package libevent.x86_64 0:2.0.19-1.rhel6 will be an update ---> Package phpMyAdmin.noarch 0:4.2.10.1-1.el6.remi will be updated ---> Package phpMyAdmin.noarch 0:4.2.11-1.el6.remi will be an update ---> Package scl-utils.x86_64 0:20120927-8.el6 will be updated ---> Package scl-utils.x86_64 0:20120927-23.el6_6 will be an update ---> Package tzdata.noarch 0:2014h-1.el6 will be updated ---> Package tzdata.noarch 0:2014i-1.el6 will be an update ---> Package tzdata-java.noarch 0:2014h-1.el6 will be updated ---> Package tzdata-java.noarch 0:2014i-1.el6 will be an update ---> Package wget.x86_64 0:1.12-5.el6 will be updated ---> Package wget.x86_64 0:1.12-5.el6_6.1 will be an update --> Running transaction check ---> Package compat-libevent14.x86_64 0:1.4.13-1.rhel6 will be installed --> Finished Dependency Resolution But I get this error: Total size: 5.5 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Check Error: file /usr/lib64/libevent-2.0.so.5 from install of libevent-2.0.19-1.rhel6.x86_64 conflicts with file from package libevent-last-2.0.21-4.el6.remi.x86_64 file /usr/lib64/libevent_core-2.0.so.5 from install of libevent-2.0.19-1.rhel6.x86_64 conflicts with file from package libevent-last-2.0.21-4.el6.remi.x86_64 file /usr/lib64/libevent_extra-2.0.so.5 from install of libevent-2.0.19-1.rhel6.x86_64 conflicts with file from package libevent-last-2.0.21-4.el6.remi.x86_64 Error Summary - So my question is how to get ride _secure_ of this conflicts and continue updating my system as I'm do it before this? What packages should I remove and if by remove them I won't take my whole system down and mess up, any advice? Thanks ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Conflicts updating packages, hot to get ride of them without mess up all my OS?
On Sun, Nov 2, 2014 at 10:10 PM, Peter wrote: > remi is known to mess things up like that if you don't install it > properly. First thing I would do is "yum remove remi-release" unless > you have something you specifically need the remi repo for > Yes I have latest PHP release 5.5.18 not present at CentOS repo so it's not possible to remove that repo since I'll need in the future for updates otherwise I'll have a lot of conflicts between versions at CentOS repo and REMI versions. > , then I would > try this: > > yum shell > remove libevent-last > install libevent > run > > Pay particular attention to make sure it isn't removing a bunch of extra > packages on your system, it should just remove libevent-last and replace > it with libevent, if it tries to do more then don't accept the changes, > report back here instead. > > When that's done you should be able to issue a "yum update". > Any other workaround that wouldn't be remove the repository? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Conflicts updating packages, hot to get ride of them without mess up all my OS?
On Mon, Nov 3, 2014 at 8:01 AM, John R. Dennison wrote: > php-5.5.18 is also available at the IUS repo which has a better > reputation than Remi. > Hi John, in order to remove all packages from REMI repo and move, following your suggestion, to IUS, what should I do? Basically, though, what I have from REMI is PHP, perhaps httpd and phpMyAdmin so any chance to select only REMI dependencies and remove them? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Conflicts updating packages, hot to get ride of them without mess up all my OS?
This is what I've installed: # rpm -qa |grep -i remi php-cli-5.5.18-1.el6.remi.x86_64 php-pdo-5.5.18-1.el6.remi.x86_64 php-mcrypt-5.5.18-1.el6.remi.x86_64 php-tcpdf-6.0.097-1.el6.remi.noarch php-pecl-jsonc-1.3.6-1.el6.remi.5.5.1.x86_64 php-pecl-memcache-3.0.8-2.el6.remi.5.5.x86_64 php-phpseclib-crypt-base-0.3.8-1.el6.remi.noarch php-recode-5.5.18-1.el6.remi.x86_64 php-process-5.5.18-1.el6.remi.x86_64 php-pear-1.9.5-3.el6.remi.noarch php-pecl-igbinary-1.2.1-1.el6.remi.5.5.x86_64 php-pgsql-5.5.18-1.el6.remi.x86_64 php-mysqlnd-5.5.18-1.el6.remi.x86_64 php-opcache-5.5.18-1.el6.remi.x86_64 php-bcmath-5.5.18-1.el6.remi.x86_64 php-common-5.5.18-1.el6.remi.x86_64 php-fpm-5.5.18-1.el6.remi.x86_64 libmemcached-last-libs-1.0.18-2.el6.remi.x86_64 php-pecl-msgpack-0.5.5-4.el6.remi.1.x86_64 php-gd-5.5.18-1.el6.remi.x86_64 php-pecl-sqlite-2.0.0-0.4.svn332053.el6.remi.5.5.x86_64 php-pecl-apcu-4.0.7-1.el6.remi.5.5.x86_64 php-channel-phpseclib-1.3-1.el6.remi.noarch php-phpseclib-crypt-aes-0.3.8-1.el6.remi.noarch php-tcpdf-dejavu-sans-fonts-6.0.097-1.el6.remi.noarch phpMyAdmin-4.2.10.1-1.el6.remi.noarch php-5.5.18-1.el6.remi.x86_64 php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64 gd-last-2.1.0-3.el6.remi.x86_64 php-pecl-mongo-1.5.7-1.el6.remi.5.5.x86_64 php-phpseclib-crypt-rijndael-0.3.8-1.el6.remi.noarch php-php-gettext-1.0.11-4.el6.remi.noarch php-soap-5.5.18-1.el6.remi.x86_64 php-xml-5.5.18-1.el6.remi.x86_64 php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64 php-mbstring-5.5.18-1.el6.remi.x86_64 php-tidy-5.5.18-1.el6.remi.x86_64 How to remove all of them or I need to do it in one line as per example: remove -e package1 package2 and so on? On Mon, Nov 3, 2014 at 8:35 AM, reynie...@gmail.com wrote: > > On Mon, Nov 3, 2014 at 8:01 AM, John R. Dennison wrote: > >> php-5.5.18 is also available at the IUS repo which has a better >> reputation than Remi. >> > > > Hi John, in order to remove all packages from REMI repo and move, > following your suggestion, to IUS, what should I do? Basically, though, > what I have from REMI is PHP, perhaps httpd and phpMyAdmin so any chance to > select only REMI dependencies and remove them? > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Can't connect trough SSH to a new fresh CentOS 7 minimal server
I have installed a new CentOS 7 minimal virtual machine in Vmware Workstation. I have disabled the firewall by running: *systemctl disable firewalld* => this one for disable it permanently (I don't need it since it's a VM for development) *systemctl stop firewalld* => this one for stop the service I have set SELinux to be permissive. SSH is up and running as the output from: *service sshd status* But I can't connect trough SSH, I am missing something? Thanks in advance *Reynier Perez Mira* Phone: (786) 5807572 EMail: reynie...@gmail.com [image: Facebook] <https://facebook.com/ReynierPM> [image: Github] <https://github.com/reypm> [image: Google+] <https://plus.google.com/u/0/+ReynierP%C3%A9rezMira> [image: Twitter] <https://twitter.com/reypm> [image: LinkedIn] <https://www.linkedin.com/in/reynierpm> ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Can't connect trough SSH to a new fresh CentOS 7 minimal server
Ohhh it was my bad, this VM has two interfaces and the one I was trying to reach was down so NEVER it will respond. Anyway thanks for the time *Reynier Perez Mira* Phone: (786) 5807572 EMail: reynie...@gmail.com [image: Facebook] <https://facebook.com/ReynierPM> [image: Github] <https://github.com/reypm> [image: Google+] <https://plus.google.com/u/0/+ReynierP%C3%A9rezMira> [image: Twitter] <https://twitter.com/reypm> [image: LinkedIn] <https://www.linkedin.com/in/reynierpm> On Thu, Aug 4, 2016 at 7:52 PM, Monty Shinn wrote: > A few things you might try: > > 1. Verify ssh is listening: > > netstat -antp | grep :22 | grep -i listen > > 2. Verify you can ssh locally: > > ssh localhost > > 3. Try to telnet to ssh port: > > telnet 22 > > 4. run nmap against the ipaddress to verify port 22 is seen. > > Hope this helps. > > Regards, > > Monty > > > On 08/04/2016 06:36 PM, reynie...@gmail.com wrote: > >> I have installed a new CentOS 7 minimal virtual machine in Vmware >> Workstation. I have disabled the firewall by running: >> >> *systemctl disable firewalld* => this one for disable it permanently (I >> don't need it since it's a VM for development) >> *systemctl stop firewalld* => this one for stop the service >> >> I have set SELinux to be permissive. >> >> SSH is up and running as the output from: *service sshd status* >> >> But I can't connect trough SSH, I am missing something? >> Thanks in advance >> >> *Reynier Perez Mira* >> Phone: (786) 5807572 >> EMail: reynie...@gmail.com >> >> [image: Facebook] <https://facebook.com/ReynierPM> [image: Github] >> <https://github.com/reypm> [image: Google+] >> <https://plus.google.com/u/0/+ReynierP%C3%A9rezMira> [image: Twitter] >> <https://twitter.com/reypm> [image: LinkedIn] >> <https://www.linkedin.com/in/reynierpm> >> ___ >> CentOS mailing list >> CentOS@centos.org >> https://lists.centos.org/mailman/listinfo/centos >> > > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Enable all permissions for root in Samba ...
As I said in previous messages I have a local virtual machine running CentOS 7 so I do not need any security. Having that in mind I have installed Samba and this is how I setup for access the remote server: [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = CentOS Server security = user map to guest = bad user dns proxy = no [root] path = / browsable =yes writable = yes guest ok = yes read only = no force user = root force group = root I am able to connect as root without password but I can't chdir into a few directories like for example /var/www. The permissions for such directory are: # ls -la /var/www/ total 4 drwxr-xr-x. 4 root root 31 Aug 4 19:00 . drwxr-xr-x. 20 root root 4096 Aug 4 20:02 .. drwxr-xr-x. 2 root root6 Jul 18 11:30 cgi-bin drwxrwsr-x. 2 apache root 22 Jun 30 05:05 html Why I can't access to /var/html? What I am doing wrong? Thanks in advance *Reynier Perez Mira* Phone: (786) 5807572 EMail: reynie...@gmail.com [image: Facebook] <https://facebook.com/ReynierPM> [image: Github] <https://github.com/reypm> [image: Google+] <https://plus.google.com/u/0/+ReynierP%C3%A9rezMira> [image: Twitter] <https://twitter.com/reypm> [image: LinkedIn] <https://www.linkedin.com/in/reynierpm> ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Enable all permissions for root in Samba ...
On Thu, Aug 4, 2016 at 9:47 PM, John R Pierce wrote: > On 8/4/2016 6:23 PM, reynie...@gmail.com wrote: > >> local virtual machine running >> CentOS 7 so I do not need any security. >> > > thats a mighty big assumption. I understand your concern because is a security flag but I can tell you that this is only a development environment because I use Windows as a host but I like to have all related to server in a VM > > > > Having that in mind I have >> installed Samba and this is how I setup for access the remote server: >> >> [global] >> workgroup = WORKGROUP >> server string = Samba Server %v >> netbios name = CentOS Server >> security = user >> map to guest = bad user >> dns proxy = no >> >> [root] >> path = / >> browsable =yes >> writable = yes >> guest ok = yes >> read only = no >> force user = root >> force group = root >> > > your remote user who connects to this local VM is running windows as > 'root' ? thats unusual. I am not sure what are you asking|telling me but I was never asked for a username/password to connect; it only goes ahead and connect but then I can't do anything like chdir or mkdir or create new files *Reynier Perez Mira* Phone: (786) 5807572 EMail: reynie...@gmail.com [image: Facebook] <https://facebook.com/ReynierPM> [image: Github] <https://github.com/reypm> [image: Google+] <https://plus.google.com/u/0/+ReynierP%C3%A9rezMira> [image: Twitter] <https://twitter.com/reypm> [image: LinkedIn] <https://www.linkedin.com/in/reynierpm> ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos