Results 1 to 7 of 7

Thread: Lnux LVM problem

  1. #1
    Junior Member
    Join Date
    Mar 2006
    Posts
    57

    Lnux LVM problem

    I had installed 2 hdds-IDE ,40 gb on red hat linux enterprise 4.I used LVM to combine both the hdds.I had configured it as

    below

    /boot /dev/hdc1 200 mb -- This was not a part of LVM

    /dev/hdc2 LVMPV 37966 mb
    /dev/hdd1 LVPM 38162 mb --both hdds created as physical vol

    volgropu00 free space 76.32.00mb

    logvol01 /var ext3 8384
    logvolo3 swap 512
    logvol02 / ext3 8512
    logvol00 .home ext3 54016

    rest partition ,i had kept free ,for future expansion.


    When i created swap partition in the volgroup00 ,it didnt showup as Swap.
    I created a grub bootloader and installed the packages.

    I could boot into linux GUI mode ,and then changed it to runlevel 3.

    I faced the following problems
    ***
    1)When i tried to mount a cdrom ,it gave an error as check /etc/fstab and /etc/mtab
    Normally i think,it should have been added

    2)When i was in the text mode ,sometimes the sytem used to crash and reboot.

    Where am i going wrong .kindly help.

  2. #2
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630
    Where are you trying to view the swap? Try this:

    sudo /sbin/swapon -s
    Filename Type Size Used Priority/dev/mapper/sys-swap partition 2031608 0 -1

    Also in the GUI under system tools you can use the LVM tool to view what you have set up.

    For the CDROM issue, post your fstab. Other than those, it's really hard to blame the problems on LVM, but can't rule it out I suppose.

  3. #3
    Junior Member
    Join Date
    Mar 2006
    Posts
    57

    linux lvm problem

    hi
    i had again reformatted the system ,but the prob was not with the swap space ,It was with the cdrom drive.Due to bad cdrom drive the system was crashing with an error "buffer i/o error on device hda ,sector 0"

    Thks for telling me to look in the fstab ,since from there i found out that in rhel 4
    to mount cdrom ,it is

    mount /media/cdrom

    Reg the command which u gave me for swap space is good ,the o/p is as below

    /dev/mapper/volgroup000 -logvol03 partition 688120 0 -1

    The only problem is that ,there would be no redundancy if one of the hdd crashes.

    Any ideas of implementing software raid1 or raid5 on lvm.repectively.

    Also ,i read thru some articles which mentioned that /boot can only be a member of raid 1 .Is it the same for hardware raid .

  4. #4
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758
    You can do sofware raid, but I wouldnt rely on it.

    Have you looked at the following sites for a decent solution?

    http://www.linux-backup.net/
    http://www.mondorescue.org/

  5. #5
    Junior Member
    Join Date
    Mar 2006
    Posts
    57

    Linux LVM problem

    I will check the sites.

    Bur ithink i should go for some form of raid ,as data redundacy is a must ,since if any one hdd fails ,it will be a prob.

  6. #6
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758
    Redundancy isnt needed if you can copy it over to another working system (or reformat).

    What I do is backup the data and setup a kickstart disk that does an install off of the dvd of just what I need, and then I can run a yum upgrade. Eventually I will get to the point where I am making a yum server that doles the updates to the servers, and I can generate a new install update dvd while the kickstart is going on each server.

    In due time I suppose ....

  7. #7
    Junior Member
    Join Date
    Mar 2006
    Posts
    57

    Linux Lvm problem

    Thks for the info.


    Have u configured software raid on linux as i have gone thru some articles which suggests that it supports hot swapping ,as currently due to budget constraints we can't opt for hw raid.

    Another question ,is the .boot partition only possible in raid 1 and not in raid 5.
    Else does hw raid support /boot to be a part of raid in raid 5.

Similar Threads

  1. Problem with POSIX semaphores
    By wej@wejc.com in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 12-15-2007, 12:46 AM
  2. HELP PLEASE! Long file names problem
    By paulmarcw in forum Windows - General Topics
    Replies: 1
    Last Post: 02-24-2006, 04:12 AM
  3. problem with windows linux network
    By grooverider in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 01-29-2005, 12:36 AM
  4. Device Manager Error Codes
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 12:52 AM
  5. Problem with D-Link DFE-580tx
    By Lysander in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 11-15-2004, 08:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •