[CentOS] LVM change disk
Dear all, I have a 4,1TB Logical volume consist of four disks with size of 2TB, 1TB, 1TB, and 500GB. The LV currently full. I plan to change the 1Tb disks and 500Gb disks. I plan to remove one 1TB disk or the 500GB so that I can replace it with 2TB disk. most LVM tutorial ask to use pvmove to move phisical extent to the new disk. The problem is that I have no SATA port left so that I can't move PE to the new disk. How to migrate the data safely so that I can replace the disk? Thank you in advance regards, -- - Muhammad Panji ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] LVM change disk
On Mon, Dec 6, 2010 at 9:23 PM, Adam Tauno Williams wrote: > On Sat, 2010-12-04 at 10:29 -0800, John R Pierce wrote: >> On 12/03/10 10:47 PM, muhammad panji wrote: >> > Dear all, >> > I have a 4,1TB Logical volume consist of four disks with size of 2TB, >> > 1TB, 1TB, and 500GB. The LV currently full. I plan to change the 1Tb >> > disks and 500Gb disks. I plan to remove one 1TB disk or the 500GB so >> > that I can replace it with 2TB disk. most LVM tutorial ask to use >> > pvmove to move phisical extent to the new disk. The problem is that I >> > have no SATA port left so that I can't move PE to the new disk. How to >> > migrate the data safely so that I can replace the disk? Thank you in >> > advance > > Attach the drive to the system using a USB caddy. > Do the the pvmove > Remove the old physical volume from the volume group > Shutdown > Remove the drive from the caddy > Install the drive into the system in place of the old drive. > Boot. Hi all, Thanks for the reply. I know I didn't plan well when I setup for the first time, even the PE size is 128MB so that I can only have a 8TB LV. I have moved around 1,3Tb data to another computers, is it save to resize the LV filesystem and then resize the volume group so that I can remove one of the disks? I plan to do more less like this tutorial http://www.tcpdump.com/kb/os/linux/lvm-resizing-guide/shrink.html After removing the disk, I can attach the new disks, add it to the VG and then resize the LV and the filesystem. Second alternative is to buy and use SATA-to-USB cable and do pvmove etc The third is, I have similar machine that will be used to hold the removed disk from the first machine. At the end the first machine will have 4x 2Tb disks and the second machine will have 2x1Tb disks + 500Gb disk. So I will attach the new disks to the second machine, move all the data from the first machine, and remove the 2Tb disk from the first machine and attach it to the second machine. Any Suggestion which one is the best way to do this? Thank you in advance regards, -- - Muhammad Panji http://www.panji.web.id http://www.kurungsiku.com http://sumodirjo.wordpress.com http://www.kurungsiku.web.id http://www.linuxbox.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Installing OS on Flash Drive on Server
Hi All, On my gateway server I'm Installing CentOS on a flashdrive. is that a bad idea? the server keep hang, I can ping the server from the LAN and from the internet, the internet connection from LAN to internet is OK but another service is down, ssh, VPN (PPTPD) and another service. Even the console is unresponsive so I have to reset the server. Last time when I still can do SSH to server the / drive is mounted read only, when I try to remount rw it said error write protected but the flash drive itself have no write protection. I'm wondering is using Flashdrive on server OS is a bad idea? anyone have similar experience? thank you. regards, -- - Muhammad Panji http://www.panji.web.id http://www.kurungsiku.com http://sumodirjo.wordpress.com http://www.kurungsiku.web.id http://www.linuxbox.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Installing OS on Flash Drive on Server
On Mon, Jul 11, 2011 at 9:14 PM, Keith Roberts wrote: > On Mon, 11 Jul 2011, Muhammad Panji wrote: > >> To: CentOS mailing list >> From: Muhammad Panji >> Subject: [CentOS] Installing OS on Flash Drive on Server >> >> Hi All, >> On my gateway server I'm Installing CentOS on a flashdrive. is that a bad >> idea? the server keep hang, I can ping the server from the LAN and from the >> internet, the internet connection from LAN to internet is OK but another >> service is down, ssh, VPN (PPTPD) and another service. Even the console is >> unresponsive so I have to reset the server. Last time when I still can do >> SSH to server the / drive is mounted read only, when I try to remount rw it >> said error write protected but the flash drive itself have no write >> protection. I'm wondering is using Flashdrive on server OS is a bad idea? >> anyone have similar experience? thank you. >> regards, > > Hi Muhammad. You might like to check the mailing-list > archives for June, as there was quite a long discusiion on > using Flash USB drives an SSD's for Centos installations. > > I think the general conclusions were that Flass drives are > not really designed for this, and will wear out quickly, and > the SDD's can fail without any warning whatsoever - and > bang does your OS and/or your data. Hi Keith thank you for the info. I will look at the archive. I just change the flash drive with another flash drive last monday and today the server error again. will reinstall the OS on a hard drive. Thank you. Regards, -- - Muhammad Panji http://www.panji.web.id http://www.kurungsiku.com http://sumodirjo.wordpress.com http://www.kurungsiku.web.id http://www.linuxbox.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] looking for alternative to SME & Clark Connect
On Wed, Apr 15, 2009 at 9:37 PM, Rudi Ahlers wrote: > Hi all, > > I'm looking for a (preferably free) alternative to SME / Clark Connect. > > I basically need the following: > - firewall > - nat > - VPN > - bandwidth limiting / monitoring > - email (SMTP / POP3 / IMAP) & groupware > - file & printer sharing > - RAID support > - if possible fail-over / high availability support. > > I need to support about 15 - 30 (some part time) students, so I would > like to keep the costs low. If it's free, so much better. SME works > for most of the stuff, but it still runs on CentOS 4, and I'd prefer > to use 5. clarkconnect 5 is on beta 2 http://distrowatch.com/5407 just wait a little while :) -- Muhammad Panji http://sumodirjo.wordpress.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] script help - '3rd last field'
On Mon, Jun 8, 2009 at 4:29 PM, Tom Brown wrote: > Hi > > I need some logic to work out a value for me - this value is _always_ > the 3rd last field in a string seperated by '.' but the string could be > 5 or 6 fields long, e.g > > foo.bar.VALUE.baz.lala > > foor.bar.gigi.VALUE.baz.lala > > I need to find VALUE - if this were python or something i could do it > but this has to be in shell - awk -F\. {'print $3'} awk -F\. {'print $5'} awk -F\. {'print $6'} -- Muhammad Panji http://sumodirjo.wordpress.com http://www.kurungsiku.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Weird permission
Dear all, I got weird permission on one of my server, when I ls -l the / i got permission for all directory set to "drwxr-xr-x." there are dot after the executable permission for others. what dot mean in permission and how to fix it? the actual problem is I could login via ssh but cannot login via winscp. any idea how to fix this? thanks in advance best regards, -- Muhammad Panji http://sumodirjo.wordpress.com http://www.kurungsiku.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Weird permission
On Fri, Jul 31, 2009 at 4:46 PM, Mike A. Harris wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > muhammad panji wrote: >> Dear all, >> I got weird permission on one of my server, when I ls -l the / i got >> permission for all directory set to "drwxr-xr-x." there are dot after >> the executable permission for others. what dot mean in permission and >> how to fix it? the actual problem is I could login via ssh but cannot >> login via winscp. any idea how to fix this? thanks in advance >> best regards, > > IIRC, the "." at the end of the permissions indicates that the file has > additional permission controls beyond the standard DAC bits, such as > filesystem ACLs, filesystem capabilities, or other attributes. > > Filesystem capabilities support is not present in CentOS 5, so are you > using ACLs? What does the following show: > > getfacl --tabular /* AFAIK by default on centos partition mounted with acl option but I haven't set anything related to ACL the output of getfacl --tabular /* # file: bin USER root rwx GROUP root r-x otherr-x # file: boot USER root rwx GROUP root r-x otherr-x # file: dev USER root rwx GROUP root r-x otherr-x # file: etc USER root rwx GROUP root r-x otherr-x # file: home USER root rwx GROUP root r-x otherr-x # file: lib USER root rwx GROUP root r-x otherr-x # file: lost+found USER root rwx GROUP root --- other--- # file: media USER root rwx GROUP root r-x otherr-x # file: mnt USER root rwx GROUP root r-x otherr-x # file: opt USER root rwx GROUP root r-x otherr-x # file: proc USER root r-x GROUP root r-x otherr-x # file: root USER root rwx GROUP root r-x otherr-x # file: sbin USER root rwx GROUP root r-x otherr-x # file: selinux USER root rwx GROUP root r-x otherr-x # file: srv USER root rwx GROUP root r-x otherr-x # file: sys USER root rwx GROUP root r-x otherr-x # file: tmp USER root rwx GROUP root rwx otherrwx # file: usr USER root rwx GROUP root r-x otherr-x # file: var USER root rwx GROUP root r-x otherr-x seems normal to me :) more clues please regards, -- Muhammad Panji http://sumodirjo.wordpress.com http://www.kurungsiku.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Weird permission
On Fri, Jul 31, 2009 at 4:31 PM, Kai Schaetzl wrote: > Muhammad panji wrote on Fri, 31 Jul 2009 14:48:29 +0700: > >> I got weird permission on one of my server, when I ls -l the / i got >> permission for all directory set to "drwxr-xr-x." there are dot after >> the executable permission for others. what dot mean in permission and >> how to fix it? > > I have never seen or heard of this. I would assume that is a formatting > glitch produced by some shell login setting. It might help if you showed > the whole output. > > > the actual problem is I could login via ssh but cannot >> login via winscp > > Change the default WinSCP login from SFTP to SCP. I always use SCP because I got better experience with it rather than SFTP the output of root home : [r...@clarisa ~]# ls -lha total 52K drwxr-xr-x 4 root root 4.0K 2009-08-01 02:38 . drwxr-xr-x. 23 root root 4.0K 2009-07-31 15:47 .. drwxr-xr-x 2 root root 4.0K 2009-07-31 15:06 backup -rw---. 1 root root 14K 2009-08-01 08:34 .bash_history -rw-r--r--. 1 root root 18 2009-03-30 18:51 .bash_logout -rw-r--r--. 1 root root 176 2009-03-30 18:51 .bash_profile -rw-r--r-- 1 root root 587 2009-07-20 14:34 .bashrc -rw--- 1 root root 43 2009-07-31 15:20 .lesshst drwxr-xr-x 2 root root 4.0K 2009-07-31 15:38 .uml there are dot on .. (parent dir), and several files on root's home dir regards, -- Muhammad Panji http://sumodirjo.wordpress.com http://www.kurungsiku.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Safely Remove Disk on LVM
Dear All, I plan to replace an error disk that is part of an LV. from LVM how-to it could be done with using pvmove to move all PE from old disk to new disk.But the howto also said that pvmove is slow. Anyone has experience using pvmove on 2TB disk? Is it possible to make all PE on the old disk empty so I don't have to do pvmove (assuming that I can make a free space >= 2TB). Thank you in advance Regards, -- - Muhammad Panji ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Safely Remove Disk on LVM
On Fri, Sep 16, 2011 at 5:57 PM, Theo Band wrote: > On 09/16/2011 05:03 AM, Muhammad Panji wrote: > > Dear All, > > I plan to replace an error disk that is part of an LV. from LVM how-to > > it could be done with using pvmove to move all PE from old disk to new > > disk.But the howto also said that pvmove is slow. Anyone has > > experience using pvmove on 2TB disk? > > > > Is it possible to make all PE on the old disk empty so I don't have to > > do pvmove (assuming that I can make a free space >= 2TB). Thank you in > > advance > > Regards > Yes it is slow, but it works. You can condider to remove some (unused) > LVM that have extends on the physical disk. That speeds it up, as the > extends are marked free again. How many disks do you now have in your > volume group? If only one, then simply try to copy the entire disk to > another one (dd/ddrescue/clonezilla). If the disk has bad sectors, then > the pvmove will most likely fail anyhow. > Hi Theo, thank you for the reply. I have four disk in one LV. so yesterday I already done pvmove the 2TB disk and it took time about 20 hours. I think the disk is just start to fail and most part of the disk is still good, that's why the pvmove process didn't take time that long. Regards, -- - Muhammad Panji http://www.panji.web.id http://www.kurungsiku.com http://sumodirjo.wordpress.com http://www.kurungsiku.web.id http://www.linuxbox.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] RTL8111/8168B always 100mbps
Dear All, I have an onboard Realtek RTL8111/8168B NIC. from lspci -vv : 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02) It is detected, but why the speed is always 100Mbps, already change cable but still no luck. I use ethtool and from the output it seems that system know that this NIC support gigabit speed : Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full have change the driver r8169 with r8168 and follow the guide on CentOS wiki http://wiki.centos.org/AdditionalResources/HardwareList/RealTekRTL8111b but still it only get 100Mbps speed. I user kernel 2.6.18-274.3.1.el5 and 2.6.18-274.3.1.el5-PAE. on another machine with the same specs I use kernel 2.6.18-238.9.1.el5 and the gigabit speed works. Any idea why this happened and how to solve it? Thank you. Regards, -- - Muhammad Panji http://www.panji.web.id http://www.kurungsiku.com http://sumodirjo.wordpress.com http://www.kurungsiku.web.id http://www.linuxbox.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] LVM question
On Tue, Jan 17, 2012 at 10:26 AM, Jonathan Vomacka wrote: > CentOS Community, > > It is to my understanding that the /boot partition should never be > placed on LVM and should be a physical partition on the hard drives > (or on top of a RAID array). Is this an accurate statement? > Yup. Because GRUB < 1.95 cannot read it http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-lvm-diskdruid-manual.html > > Also please advise if the SWAP filesystem is safe to be placed under > LVM, or if this should be a hard partition / hard limit as well. I am > unsure if boot issues or any filesystem issues would be caused by > placing them on LVM. Please educate me if possible. > The default partition from anaconda put the swap on LVM so I think that wouldn't be a problem. even if you need more swap you can make (additional) swap file. Regards, -- - Muhammad Panji http://www.panji.web.id http://www.kurungsiku.com http://sumodirjo.wordpress.com http://www.kurungsiku.web.id http://www.linuxbox.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Logrotate base
On Thu, Feb 12, 2009 at 11:05 AM, Fajar Priyanto wrote: > Hi guys, > Logrotate is checked every day by cron.daily, right? > I notice in logrotate.conf by default it's weekly. > If I change it into monthly (now, on 12 of Feb), when will it do the > monthly rotation? AFAIK it is a default value to rotate the log file which could be override by individual configuration on /etc/logrotate.d/ so if it the individual configuration doesn't specify the rotation period it will use the default which is weekly > a. On 12 of March or > b. On 1st of March? weekly use monday so I think it will be 1st of march. CMIIW regards, -- Muhammad Panji http://sumodirjo.wordpress.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Suggestion for Server Room monitoring
On Mon, Feb 16, 2009 at 9:11 AM, Fajar Priyanto wrote: > On Mon, Feb 16, 2009 at 10:04 AM, Christopher Chan > wrote: >> You can get temperature reads of your cpu and motherboard with >> lm_sensors...provided your motherboard's chipset is supported... > > That's a good idea. I'll work on it. > I know it sucks, how about MS Windows, several of the machines run it, > does anyone know similar tool to monitor the temperature? > Thanks. what about using monitoring tools like zenoss, groundwork, zabbix etc. I think the could monitor temperature too. regards, -- Muhammad Panji http://sumodirjo.wordpress.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] reading sar data
Hi, I have a problem reading sar data. I have some server but no monitoring tools like cacti or nagios on it. every end of month I got the sar log manually and have to generate report for it but I have no idea how to read it. on this page :http://pagesperso-orange.fr/sebastien.godard/tutorial.html i found there is tool called sadf, can i use it on CentOS 4 or it just available on Centos 5? I found sadf on centos5 but not on centos 4. are there any tools that could be used to generate a graphic from a month historical sar data? best regards, -- Muhammad Panji http://sumodirjo.wordpress.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Wrong PV UUID
Dear All, I have one VG with one LV inside consist of four disk (and four PV) somehow the UUID is changed. I try to restore with the last known good configuration and use pvcreate --uuid xxx --restorefile xxx but I think when I first time do it I did use wrong UUID for two device. but haven't only using command above and haven't used vgcfgrestore. After carefully read the configuration, using hdparm to know device serial number I think I have assign the right UUID for each device. I succesfully use vgcfgrestore, but I cannot mount the device (unknown filesystem, bad superblock, etc). My questions are, is my first attempt to assigning (wrong) UUID make all the LVM corrupt? I see that all LE and PE is still there, the VG and LV size is right but still I cannot mount the volume. Is this just a bad filesystem or the data really gone? Thank you. Regards, -- - Muhammad Panji http://www.panji.web.id http://www.kurungsiku.com http://sumodirjo.wordpress.com http://www.kurungsiku.web.id http://www.linuxbox.web.id ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos