Jump to content

chj

Members
  • Content Count

    11
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by chj

  1. Ok, I solved the issue. Thanks to even more googeling, and a failed drive that "forced" me into moving on with this. What solved it? Installing an experimental version of mdadm, allows the removal of a drive. NOTE: This is an experimental case, so please do not run if you are not willing to risk data. Links: Blog Post with Howto Ubuntu forum post about upgrading Debian Package for mdadm How to Resize RAID (tips only) Here is my "solution": 1. 4 Drives in RAID5, 1 drive failed cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid5 sdb1[0] sdd1[3] sde1[2] 4152360960 blocks level 5, 64k chunk, algorithm 2 [4/3] [u_UU] mdadm --detail /dev/md0 /dev/md0: Version : 00.90 Creation Time : Fri Apr 8 12:39:06 2011 Raid Level : raid5 Array Size : 4152360960 (3960.00 GiB 4252.02 GB) Used Dev Size : 1384120320 (1320.00 GiB 1417.34 GB) Raid Devices : 4 Total Devices : 3 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun Sep 9 11:34:27 2012 State : clean, degraded Active Devices : 3 Working Devices : 3 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 64K UUID : 3ce16aed:03b66e97:272fb3ce:18a82fda Events : 0.310190 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 0 0 1 removed 2 8 65 2 active sync /dev/sde1 3 8 49 3 active sync /dev/sdd1 2. Forced 3 of 4 drives online mdadm --assemble --force /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sde1 /dev/sdd1 3. Copied out data leaving only 1.3 TB on degraded RAID5 4. Resized /dev/md0 to 1.3TB instead of 4 TB e2fsck -f /dev/md0 resize2fs /dev/md0 1300GB 5. Installed mdadm experimental # wget http://ftp.se.debian.org/debian/pool/main/m/mdadm/mdadm_3.2.5-3_i386.deb #dpkg -i mdadm_3.2.5-3_i386.deb # mdadm --version mdadm - v3.2.5 - 18th May 2012 6. Resize Array # mdadm /dev/md0 --grow --array-size=1385120320 # mdadm --detail /dev/md0 /dev/md0: Version : 0.90 Creation Time : Fri Apr 8 12:39:06 2011 Raid Level : raid5 Array Size : 1385120320 (1320.95 GiB 1418.36 GB) Used Dev Size : 1384120320 (1320.00 GiB 1417.34 GB) Raid Devices : 4 Total Devices : 3 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun Sep 9 12:46:27 2012 State : clean, degraded Active Devices : 3 Working Devices : 3 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 64K UUID : 3ce16aed:03b66e97:272fb3ce:18a82fda Events : 0.310204 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 0 0 1 removed 2 8 65 2 active sync /dev/sde1 3 8 49 3 active sync /dev/sdd1 7. Decrease number of drives # mdadm /dev/md0 --grow --raid-devices=3 --backup-file=/tmp/mdadm.backup mdadm: Need to backup 384K of critical section.. 8. View new raid set # mdadm --detail /dev/md0 /dev/md0: Version : 0.91 Creation Time : Fri Apr 8 12:39:06 2011 Raid Level : raid5 Array Size : 1385120320 (1320.95 GiB 1418.36 GB) Used Dev Size : 1384120320 (1320.00 GiB 1417.34 GB) Raid Devices : 3 Total Devices : 3 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun Sep 9 14:03:55 2012 State : clean, degraded, reshaping Active Devices : 3 Working Devices : 3 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 64K Reshape Status : 0% complete Delta Devices : -1, (4->3) UUID : 3ce16aed:03b66e97:272fb3ce:18a82fda Events : 0.310214 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 0 0 1 removed 2 8 65 2 active sync /dev/sde1 3 8 49 3 active sync /dev/sdd1 8. Monitor progress cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid5 sdb1[0] sdd1[3] sde1[2] 1385120320 blocks super 0.91 level 5, 64k chunk, algorithm 2 [3/2] [u_U] [>....................] reshape = 0.0% (476800/1384120320) finish=3005.5min speed=7672K/sec Now I just need to wait for 50 hours for the reshape to be done! Data is accessable still, so lets hope that nothing kills the data on the drive.
  2. I need some comments in regars to my NAS. I have a Linux Server running Ubuntu 10.04 (may upgrade) and I have a RAID5 for my storage aray, it consits of 4 x 1.5 TB HDDs. OS is running on a seperate disk and I have a 1 TB USB drive that is currently empty. I am thinking of "destroying" the RAID 5, to gain additional storage space, and start using MHDDFS to mount multiple drives too one mount point for a "large array". Today I loose 1 x 1.5 TB diskspace the the RAID 5. I do not want to run 1 large volume, because if I lose 1 disk, I lose it all. Any comments in regards to using MHDDFS? I have never tried it before. Also, any comments in regards to breaking a raid5 using that is setup with MDADM. My plan is to: 1. Move 1 TB of data off the 4 TB raid 5 2. Remove 1 of the drives from the RAID5 3. Format the "broken" drive 4. Move 1.5 TB off the degraded RAID5 5. Reshape the RAID5 with 3 drives 6. Remove 1 of the drives from the "new" RAID5 7. Format the 2nd "broken" drive 8. Move 1.5 TB off the new degraded RAID5, which should be empty 9. Format the remaining 2 drives 10. Mount all drives using MHDDFS Questions: A. Is my plan viable (assumbing that I have enough data space available) B. Am I risking all the data by breaking the drives (assuming no HW failures) C. Comments in regards to MHDDFS D. Can I mount multiple drives, with data, using MHDDFS to one mountpoint? Any views and comments? BTW: I do know that I will not have any redundancy any more, but the main point is not to lose ALL data if A SINGLE drive fails. Thanks.
  3. The IPs has been setup, but my question is regarding iptables and how to setup the routing. Because you can not route on virtual devices, I need to route on IP level, and can not find any good information about that anywhere.
  4. I am trying to setup my linux box to act as a gateway for a few systems, with only 1 NIC installed. eth0 - is a DHCP IP and is always in the same range, let us use 111.112.58.* eth0:1 is 10.0.0.1 and is the internal network. All I want is for my internal systems to be able to access internett, and for the linux box's external port 1999 to be routed to 10.0.0.2 port 1999 Anyone got any tips?
  5. I have been able to solve the isue, with a lot of help. I downloaded the test kernel source for 2.6.16 and patched the kernel and recompiled. And now I have sound. There has been a fix for this, in the new ALSA release 1.0.11rc3. RC4 is currently out, but not as a RPM. So I guess the issue will be fixed in the next kernel update with the updated ALSA drivers. In the meantime you can go the this post at Fedora Forum and get the patch and recompile the kernel.
  6. I can confirm that this fix did work on my FC5 using 945 chipset.
  7. hijinks, the fedoraforum post is where I got some of the tests etc. So I have read that one, and no effect. The other post was an older version of ALSA-lib and kernel. My problem is that it does recognize the card and codec, but it does not want to give me audio. I have not been able to find any error messages regarding this issue, so the HW seems to be working, system wise.
  8. Yesterday I installed Fedora Core 5 on a notebook, and there is no sound on the notebook. I am not a Linux expert, and it is the first time doing multumedia on a linux installations. The notebook is based on the Intel 945NG Chipset, and utilises the Sigmatel STAC9200 CODEC for HD sound. When I use headphones I can hear a very very faint noise when I play music. When I am unplugging the headphones, there is no sound at all, not that I can hear. All the volume controls have been tested at max, min etc. No change. # lsmod | grep snd snd_hda_intel 21329 4 snd_hda_codec 116033 1 snd_hda_intel snd_seq_dummy 7749 0 snd_seq_oss 33345 0 snd_seq_midi_event 11073 1 snd_seq_oss snd_seq 52401 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_seq_device 12877 3 snd_seq_dummy,snd_seq_oss,snd_seq snd_pcm_oss 49105 0 snd_mixer_oss 20417 1 snd_pcm_oss snd_pcm 81093 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss snd_timer 26693 3 snd_seq,snd_pcm snd 55109 15 snd_hda_intel,snd_hda_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_m xer_oss,snd_pcm,snd_timer soundcore 13345 1 snd snd_page_alloc 14537 2 snd_hda_intel,snd_pcm # lspci 00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01) 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01) 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controllers cc=IDE (rev 01) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01) 02:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02) 0c:00.0 Network controller: Intel Corporation Unknown device 4222 (rev 02) I have read many posts around on this and other forums, regarding issues with 82801G (IHC7) Intel HDA sound, but my card does seem to be detected. In alsamixer it states that it is a Intel HD card and uses a STAC9200 chip. The available options that I have in alsamixer is: Master , PCM, Capture , Input So Under input there is only the option "mic". I have checked gnome-volume-control preferences and kmix settings. I have tested with headphones, and checked that all settings are unmuted. # cat /etc/modprobe.conf alias eth0 b44 alias scsi_hostadapter ata_piix #alias snd-card-0 snd-hda-intel #options snd-card-0 index=0 #options snd-hda-intel index=0 #remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || :; }; /sbin/modprobe -r --ignore-remove snd-hda-intel Note: The comments ("#") I have added myeself, this had no change on the sound in any way. Again, I use Fedora Core 5 Final, it has Alsa 1.0.11rc2 and the Kernel 2.6.15-1.2054_FC5smp I would appreciate any help you can offer. Thanks.
  9. It will be installed on a Dimension XPS or an Inspiron 630m. I am somewhat courius on the New Fedora. It looks nice, but I am not sure. I did the Linux Distro. Chooser and I got 100% on Madriva, SuSE and Fedora. So it should suit my needs. FC5 is not released for the next 2.5 weeks, so I need to wait. The good thing here is that all is brand new. In the past I have always used KDE (Back when I used Slackware and RedHat back in the late 90s). What is it that makes you want to use Gnome? Design or functions?
  10. Ok, I will scrap my plans for Madriva then. I am however still leaning against SuSE. I need a simple solution to get all of my requirements met. I do have previous knowlege of running Fedora, Core 4, as a webserver. But none as a "home computer". The most important thing for me is that everything works as easily as possible. To see if I am able to use my computer with linux, without any major hickups. Can I delete Windows forever without getting gray hair within the first month? So then my choice is now, Fedora or SuSE. Do you have any pro(s)/con(s)?
  11. I need some help here. I am to install linux and use it full time for the first time in my life. I have in the past used RedHat/Fedora for web server and when SlackWare was in versions 2 and 3 I had them on my DT. But I am somewhat more lazy now, and just want it all to work. I have had some discussions with my friends, and they say that Linux can never replace Windows completely, for the home users. And I agree. But I am at least going to test it. I am going to install either Mandriva or Open SuSE on a laptop. - Any comments on which distro I am to use of these two? - Which is the easiest to manager in regards to updates etc? Requirements: - External USB HDD - USB MP3 Player - USB Digital Camera Support (External Drive) - Dual monitor? - TV Out (To view DVD etc. on TV) - Bluetooth support - WiFi Support - Gigabit Network - Notebook support (Advanced power etc).
×
×
  • Create New...