Re: [gentoo-user] Adding a disk to a mirror

2003-08-31 Thread Jason Martin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Replying 'for the record', but what I did is to reboot with my install
disk (as I had /boot and / on the ersatz-raid), then create a raidtab that
had the new devices listed under 'failed-disk'. I then ran mkraid -f on
the raid devices, and it successfully rebuilt the raid w/o losing any
data. I then ran raidhotadd to bring the so-called 'failed' disk back into
sync with the existing disk.

This was on a raid 1, and I had already partitioned the new disk to
exactly match the existing one.

- -Jason Martin

On Sat, 30 Aug 2003, Jason Martin wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello, I built a system with the intention of mirroring all of the drives.
 To that end I built on a md 0,1,2 device, but I defined it to have just
 one drive.  Now its time for me to add the mirror, but I can't figure out
 hot to add a disk w/o reinstalling. Can anyone give me some hints on it?

 Thanks,
 - -Jason Martin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.3.2 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE/UVTSl2ODWuqVSBMRApFcAJ0WFADjxXdXSLuMnajBCm2yvBJCcQCgj3AP
bBUbvxhpaNddluYs0KsBkLg=
=njSf
-END PGP SIGNATURE-

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Adding a disk to a mirror

2003-08-31 Thread Jason Martin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 'raidhotadd' is the command you're looking for.  Then add the device to
That was my first attempt, but since the raid was defined with just 1
device, the hotadd just added the 2nd device as a un-sync'd spare.

- -Jason
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.3.2 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE/UVVHl2ODWuqVSBMRAlLmAJ9JX1WDHoWAJHfLevtFlhW3YWqxcACeL+fU
KxdLGhWpypyT4uVjfnt2MlQ=
=2X9c
-END PGP SIGNATURE-

--
[EMAIL PROTECTED] mailing list



[gentoo-user] Adding a disk to a mirror

2003-08-30 Thread Jason Martin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello, I built a system with the intention of mirroring all of the drives.
To that end I built on a md 0,1,2 device, but I defined it to have just
one drive.  Now its time for me to add the mirror, but I can't figure out
hot to add a disk w/o reinstalling. Can anyone give me some hints on it?

Thanks,
- -Jason Martin
(raidtab below)

# md device [dev 9, 0] /dev/md/0 queried online
raiddev /dev/md/0
raid-level  1
nr-raid-disks   1
nr-spare-disks  0
persistent-superblock   1
chunk-size  32

device  /dev/ide/host0/bus0/target0/lun0/part1
raid-disk   0

# md device [dev 9, 1] /dev/md/1 queried online
raiddev /dev/md/1
raid-level  1
nr-raid-disks   1
nr-spare-disks  0
persistent-superblock   1
chunk-size  32

device  /dev/ide/host0/bus0/target0/lun0/part2
raid-disk   0

# md device [dev 9, 2] /dev/md/2 queried online
raiddev /dev/md/2
raid-level  1
nr-raid-disks   1
nr-spare-disks  0
persistent-superblock   1
chunk-size  32

device  /dev/ide/host0/bus0/target0/lun0/part3
raid-disk   0

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.3.2 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD4DBQE/UP3Gl2ODWuqVSBMRAoLOAJdRGMGcleaNor/ltqKLxhhFZPnnAJ9Hd77C
K92tBKHONO9jntx5l3weGg==
=exx3
-END PGP SIGNATURE-

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] iptables help

2003-08-29 Thread Jason Martin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'd suggest the second option, but be sure to change the policy to DROP
_after_ you've set up rules to allow you access.

- -Jason Martin


On Fri, 29 Aug 2003, Andrew Gaffney wrote:

 I'm trying to create a firewall using iptables. I want it to drop
 incoming packets except to ports 22, 25, and 80 unless the source
 address is 192.168.254.x. I'm asking before I do this because I'm
 accessing the computer remotely right now and I don't want to cut myself
 off from it. I'm thinking something like:

 iptables -A INPUT -s 192.168.254.0/24 -p all -j ACCEPT
 iptables -A INPUT -p tcp --dport 22 -j ACCEPT
 iptables -A INPUT -p tcp --dport 25 -j ACCEPT
 iptables -A INPUT -p tcp --dport 80 -j ACCEPT
 iptables -A INPUT -p all -j DROP

 -or-

 iptables -P INPUT DROP
 iptables -A INPUT -s 192.168.254.0/24 -p all -j ACCEPT
 iptables -A INPUT -p tcp --dport 22 -j ACCEPT
 iptables -A INPUT -p tcp --dport 25 -j ACCEPT
 iptables -A INPUT -p tcp --dport 80 -j ACCEPT

 Would either of these get me the desired results?


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.3.2 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE/T3WLl2ODWuqVSBMRAjaFAJ4u7K/8vRn4V+U2ZiXeK/P6XsfgMgCfUlmM
bTfnZuOLgTiwZeCfOjrvTQc=
=vjys
-END PGP SIGNATURE-

--
[EMAIL PROTECTED] mailing list