Re: Software RAID question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 14 Dec 2009, Jeffrey Ross wrote: Date: Mon, 14 Dec 2009 21:03:46 -0500 From: Jeffrey Ross j...@bubble.org To: Community assistance, encouragement, and advice for using Fedora. fedora-list@redhat.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=unavailable version=3.2.3 Subject: Re: Software RAID question I took a break from converting /dev/sd[ab]6 to a raid partition for a little while and noticed that selinux was complaining (the data has been moved from system to system before selinux was part of the distribution) so I disabled selinux. Later I gave it one more shot at creating the raid volume and it worked. I didn't link selinux to building of the raid partition until I read your response. My next question is... what do I do about selinux? I've always disabled it because my system has always complained about something not being right with this file or that file. Well, it you disable the selinux, change something (files, folders) and enable-it back without reseting context on files an folders, probably nothing will work anymore. If selinux is enabled, and something does not work (not just a silly message from audit daemon - something REALLY does not work) just create a custom policy. man audit2allow Gabriel - -- // Gabriel VLASIU // // OpenGPG-KeyID : 0xE684206E // OpenGPG-Fingerprint: 0C3D 9F8B 725D E243 CB3C 8428 796A DB1F E684 206E // OpenGPG-URL: http://www.vlasiu.net/public.key -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFLJ65heWrbH+aEIG4RAqNVAJ4vU3WEKYRip/h3O50Jz71KHO3iJwCcDtZY u6Ky8kyzqN4rmFgiip4eqH4= =BUDU -END PGP SIGNATURE- -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Software RAID question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 13 Dec 2009, Jeffrey Ross wrote: Date: Sun, 13 Dec 2009 16:54:45 -0500 From: Jeffrey Ross j...@bubble.org To: For users of Fedora fedora-list@redhat.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.2.3 Subject: Software RAID question #following is /dev/md6 UUID=e0eb5abe-1765-48f7-923f-da8295b54313 /usr ext4defaults 1 2 Try first without UUID: /dev/md6 /usr ext4defaults 1 2 boot with selinux in permissive mode. Restore selinuix context on /usr: restorecon -RvF /usr reboot. Boot normaly (with selinux in enforcing mode). If everything is ok, change /dev/md6 back to UUID in fstab. Also, make sure all partitions of /dev/md6 have ID raid autodetect. Gabriel - -- // Gabriel VLASIU // // OpenGPG-KeyID : 0xE684206E // OpenGPG-Fingerprint: 0C3D 9F8B 725D E243 CB3C 8428 796A DB1F E684 206E // OpenGPG-URL: http://www.vlasiu.net/public.key -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFLJfeOeWrbH+aEIG4RAnJzAJ9sQBSeFDOcsIYxx9ikrZPPv1jhhACeMa/g qkivStKBcRMqc2CFaJGkWaQ= =m9A/ -END PGP SIGNATURE- -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Software RAID question
On 12/14/2009 03:30 AM, Gabriel VLASIU wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 13 Dec 2009, Jeffrey Ross wrote: Date: Sun, 13 Dec 2009 16:54:45 -0500 From: Jeffrey Rossj...@bubble.org To: For users of Fedorafedora-list@redhat.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.2.3 Subject: Software RAID question #following is /dev/md6 UUID=e0eb5abe-1765-48f7-923f-da8295b54313 /usr ext4defaults 1 2 Try first without UUID: /dev/md6 /usr ext4defaults 1 2 boot with selinux in permissive mode. Restore selinuix context on /usr: restorecon -RvF /usr reboot. Boot normaly (with selinux in enforcing mode). If everything is ok, change /dev/md6 back to UUID in fstab. Also, make sure all partitions of /dev/md6 have ID raid autodetect. Gabriel - -- // Gabriel VLASIU // // OpenGPG-KeyID : 0xE684206E // OpenGPG-Fingerprint: 0C3D 9F8B 725D E243 CB3C 8428 796A DB1F E684 206E // OpenGPG-URL: http://www.vlasiu.net/public.key -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFLJfeOeWrbH+aEIG4RAnJzAJ9sQBSeFDOcsIYxx9ikrZPPv1jhhACeMa/g qkivStKBcRMqc2CFaJGkWaQ= =m9A/ -END PGP SIGNATURE- I took a break from converting /dev/sd[ab]6 to a raid partition for a little while and noticed that selinux was complaining (the data has been moved from system to system before selinux was part of the distribution) so I disabled selinux. Later I gave it one more shot at creating the raid volume and it worked. I didn't link selinux to building of the raid partition until I read your response. My next question is... what do I do about selinux? I've always disabled it because my system has always complained about something not being right with this file or that file. Thanks! Jeff -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Software RAID question
I'm trying to mirror my two disks in my system (F12 x86_64)... I have the following disk partitions Filesystem 1K-blocks Used Available Use% Mounted on /dev/md127 7692840508960 6793104 7% / tmpfs 1016196 260 1015936 1% /dev/shm /dev/md1380760 44094316993 13% /boot /dev/sda6 7684844 3956688 3337780 55% /usr /dev/md5 7692776418204 6883800 6% /var /dev/md7 934037448 388908936 497682148 44% /home I am trying to get /dev/sda6 and /dev/sdb6 to become a RAID-1 volume... I have created /dev/md6 as a degraded array and copied everything from /dev/sda6 to /dev/md6 in single user mode (actually booted from the recovery CD) and after mounting both partitions ran find . -depth | cpio --passthrough --reset-access-time --make-directories --preserve-modification-time /mnt2 (/dev/md6 was mounted on /mnt2). The copy took a few minutes and completed successfully. I then modified my /etc/fstab to read (only showing physical disks) (I commented the old UUID and added the new UUID) UUID=abcf3490-11d2-4641-bf47-c33d1614066d / ext4defaults 1 1 UUID=e28d03fe-50ec-4313-a281-f1abecd4ed10 /boot ext4defaults 1 2 # following is /dev/sda6 #UUID=3b891301-1b89-447b-81e3-4ddc5c835b3f /usrext4defaults 1 2 # following is /dev/md6 UUID=e0eb5abe-1765-48f7-923f-da8295b54313 /usr ext4defaults 1 2 UUID=e35b19c3-b303-49fc-87d4-0712ac3de571 /varext4defaults 1 2 UUID=6f6600c4-5577-4617-b312-649fc2e2706a swapswapdefaults 0 0 UUID=93cc01f6-98e7-445b-bdc4-37356588e957 /home ext4defaults 0 0 My mdadm.conf file reads - MAILADDR root ARRAY /dev/md1 level=raid1 num-devices=2 UUID=1c0ba7ba:5b4e8354:14c0bbc3:de3ed72e ARRAY /dev/md127 level=raid1 num-devices=2 UUID=1bcb5496:c7d158e6:14c0bbc3:de3ed72e ARRAY /dev/md3 level=raid1 num-devices=2 UUID=1cea36b2:9f1a3ab8:14c0bbc3:de3ed72e ARRAY /dev/md5 level=raid1 num-devices=2 UUID=ab27f39f:f0e972c9:14c0bbc3:de3ed72e ARRAY /dev/md7 level=raid1 num-devices=2 UUID=398fe67f:959048ba:14c0bbc3:de3ed72e ARRAY /dev/md6 level=raid1 num-devices=2 UUID=9b98d1c6:73b621e1:14c0bbc3:de3ed72e The entries for the disks in /dev/disk/by-uuid - lrwxrwxrwx 1 root root 10 2009-12-13 15:44 3b891301-1b89-447b-81e3-4ddc5c835b3f - ../../sda6 lrwxrwxrwx 1 root root 9 2009-12-13 15:44 e0eb5abe-1765-48f7-923f-da8295b54313 - ../../md6 I copied the initramfs-2.6.31.6-166.fc12.x86_64.img file to another directory and decompressed and extracted it and the only reference I found in there to the raid disks was in etc/mdadm.conf which was identical what is in /etc/mdadm.conf I can mount /dev/md6 manually (as something other than /usr) with no issues I think I'm missing something pretty simple, another set of eyes would be appreciated TIA, Jeff -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Software RAID question
On Sun, 2009-12-13 at 16:54 -0500, Jeffrey Ross wrote: I'm trying to mirror my two disks in my system (F12 x86_64)... I have the following disk partitions Filesystem 1K-blocks Used Available Use% Mounted on /dev/md127 7692840508960 6793104 7% / tmpfs 1016196 260 1015936 1% /dev/shm /dev/md1380760 44094316993 13% /boot /dev/sda6 7684844 3956688 3337780 55% /usr /dev/md5 7692776418204 6883800 6% /var /dev/md7 934037448 388908936 497682148 44% /home I am trying to get /dev/sda6 and /dev/sdb6 to become a RAID-1 volume... I have created /dev/md6 as a degraded array and copied everything from /dev/sda6 to /dev/md6 in single user mode (actually booted from the recovery CD) and after mounting both partitions ran find . -depth | cpio --passthrough --reset-access-time --make-directories --preserve-modification-time /mnt2 (/dev/md6 was mounted on /mnt2). The copy took a few minutes and completed successfully. I then modified my /etc/fstab to read (only showing physical disks) (I commented the old UUID and added the new UUID) UUID=abcf3490-11d2-4641-bf47-c33d1614066d / ext4defaults 1 1 UUID=e28d03fe-50ec-4313-a281-f1abecd4ed10 /boot ext4defaults 1 2 # following is /dev/sda6 #UUID=3b891301-1b89-447b-81e3-4ddc5c835b3f /usrext4defaults 1 2 # following is /dev/md6 UUID=e0eb5abe-1765-48f7-923f-da8295b54313 /usr ext4defaults 1 2 UUID=e35b19c3-b303-49fc-87d4-0712ac3de571 /varext4defaults 1 2 UUID=6f6600c4-5577-4617-b312-649fc2e2706a swapswapdefaults 0 0 UUID=93cc01f6-98e7-445b-bdc4-37356588e957 /home ext4defaults 0 0 My mdadm.conf file reads - MAILADDR root ARRAY /dev/md1 level=raid1 num-devices=2 UUID=1c0ba7ba:5b4e8354:14c0bbc3:de3ed72e ARRAY /dev/md127 level=raid1 num-devices=2 UUID=1bcb5496:c7d158e6:14c0bbc3:de3ed72e ARRAY /dev/md3 level=raid1 num-devices=2 UUID=1cea36b2:9f1a3ab8:14c0bbc3:de3ed72e ARRAY /dev/md5 level=raid1 num-devices=2 UUID=ab27f39f:f0e972c9:14c0bbc3:de3ed72e ARRAY /dev/md7 level=raid1 num-devices=2 UUID=398fe67f:959048ba:14c0bbc3:de3ed72e ARRAY /dev/md6 level=raid1 num-devices=2 UUID=9b98d1c6:73b621e1:14c0bbc3:de3ed72e The entries for the disks in /dev/disk/by-uuid - lrwxrwxrwx 1 root root 10 2009-12-13 15:44 3b891301-1b89-447b-81e3-4ddc5c835b3f - ../../sda6 lrwxrwxrwx 1 root root 9 2009-12-13 15:44 e0eb5abe-1765-48f7-923f-da8295b54313 - ../../md6 I copied the initramfs-2.6.31.6-166.fc12.x86_64.img file to another directory and decompressed and extracted it and the only reference I found in there to the raid disks was in etc/mdadm.conf which was identical what is in /etc/mdadm.conf I can mount /dev/md6 manually (as something other than /usr) with no issues I think I'm missing something pretty simple, another set of eyes would be appreciated TIA, Jeff I assume that the new setup doesn't boot? (You didn't mention what's wrong.) What is the new partition type? (Should be Linux raid autodetect or fb) .. As for your fstab, why are you using the UUID? I usually remove the UUID's and use the actual device name, IMHO its far easier to work with... - Gilboa -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines