On 11/15/06, Vijay Sankar <[EMAIL PROTECTED]> wrote:
Good day,
Hope this helps,
Yup some final confusions :-(
The raid seems to be working fine. But how do I access the RAID partitions?
it seems I have 3 copies of the OpenBSD system on "wd0a" and "wd1a"
and also raid0a
and how do I run on the OpenBSD system that is on "raid0"
I 'l explain.
1) I can boot both from wd0a and wd01
2) I am running the RAID kernel
======================================================
# uname -a
OpenBSD backupserver.hifxchn2.local 4.0 GENERIC.RAID#0 amd64
#
=========================================================
3) The raid is working fine :-)
=============================================================
# raidctl -sv raid0
raid0 Components:
/dev/wd0d: optimal
/dev/wd1d: optimal
No spares.
Component label for /dev/wd0d:
Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
Version: 2, Serial Number: 200611160, Mod Counter: 139
Clean: No, Status: 0
sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
Queue size: 100, blocksize: 512, numBlocks: 229218048
RAID Level: 1
Autoconfig: Yes
Root partition: Yes
Last configured as: raid0
Component label for /dev/wd1d:
Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
Version: 2, Serial Number: 200611160, Mod Counter: 139
Clean: No, Status: 0
sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
Queue size: 100, blocksize: 512, numBlocks: 229218048
RAID Level: 1
Autoconfig: Yes
Root partition: Yes
Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
==================================================================
but
# mount
/dev/wd0a on / type ffs (local)
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 2.0G 649M 1.2G 34% /
#
# disklabel raid0
# /dev/rraid0c:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 8
sectors/cylinder: 1024
cylinders: 223845
total sectors: 229218048
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097152 0 4.2BSD 2048 16384 323 # Cyl 0 - 2047
b: 8388608 2097152 swap # Cyl 2048 - 10239
c: 229218048 0 unused 0 0 # Cyl 0 -223845*
d: 4194304 10485760 4.2BSD 2048 16384 323 # Cyl 10240 - 14335
e: 2097152 14680064 4.2BSD 2048 16384 323 # Cyl 14336 - 16383
f: 8388608 16777216 4.2BSD 2048 16384 323 # Cyl 16384 - 24575
g: 125829120 25165824 4.2BSD 2048 16384 323 # Cyl 24576 -147455
h: 78223104 150994944 4.2BSD 2048 16384 323 # Cyl 147456 -223845*
i: 2031616 2097152 unused 0 0 # Cyl 2048 - 4031
j: 2031616 2097152 unused 0 0 # Cyl 2048 - 4031
k: 2031616 2097152 unused 0 0 # Cyl 2048 - 4031
l: 2031616 2097152 unused 0 0 # Cyl 2048 - 4031
#
# mount /dev/raid0a /mnt
# cat /mnt/etc/fstab
/dev/raid0a / ffs rw 1 1
/dev/raid0b none swap 00
/dev/raid0d /tmp ffs rw,nodev,nosuid,softdep 1 2
/dev/raid0e /home ffs rw,nodev,nosuid,softdep 1 2
/dev/raid0f /usr ffs rw,nodev,softdep 1 2
/dev/raid0g /var ffs rw,nodev,nosuid,softdep 1 2
/dev/raid0h /Backup ffs rw,nodev,nosuid,softdep 1 2
#
How do I access the wd0d partitions that are Raided?
Do I need to mount them manually under /
Just a bit confused :-)
Thank you so much
Kind Regards
Siju