RAID5 filesystem

I created a RAID5 array using Sun Volume Manager. a metastat returns the listing for the array as a metadevice -- d15.How would I create a filesystem for the metadevice that spans the whole array -- one that includes the parity stripe?
[256 byte] By [philstraton] at [2007-11-25 23:00:09]
# 1
# newfs [-Nv] [mkfs-options] raw-device
mlennon at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 2
As long as you have setup the Raid correctly and access the device through the /dev/md/dsk or /dev/md/rdsk paths SVM and solaris will take care of the rest. So just treat the new d15 device that you have created just as a normal disk, as that is now what Solaris thinks it is.
stumoor at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 3

I created a new filesystem:

newfs -Nv /dev/md/dsk/d15

and am now experiencing the following:

# mount /dev/md/dsk/d15 /RAID5

mount: /dev/md/dsk/d15 is not this fstype.

Did I create the wrong type of filesystem?

I have appended the following to the vfstab:

/dev/md/dsk/d15 /dev/md/rdsk/d15/RAID5 ufs2yes-

philstraton at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 4
Separate issue: if I had a faulty fiber cable, would that show up in any diagnostics? If it were a bad GBIC, hba?The system hangs intermittently after entering the command 'format.' No output is produced before the system hang.Any ideas?
philstraton at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 5

When creating filesystems within Solaris is should by default create UFS filesystems. As well as this you always need to create filesystems using the raw device path, so your command should be as follows:

newfs /dev/md/rdsk/d15

Again, make sure that this is done as root.

Once this is done then you can try and fsck the device to check it, as follows:

fsck -y /dev/md/rdsk/d15

If that passes fine and without errors you can finish by mounting it. If the required entry is already in the /etc/vfstab all you need to do is to issue the mountall command.

stumoor at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 6

With regard to the system hangs there is no specific advise that I can give without knowing what array you have. But I would try the following:

1. check cfgadm for the current status of the HBA, etc

2. If you have storetools you can try running that, as it is very good at troubleshooting storage issues.

3. Patches. Especially with fiber related issues it is vital to keep patches and firmware up to date.

stumoor at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 7
It's an a5100 with QLogic QLA 2100f hba.I can get the firmware versions if needed. The servers have 8_Recommended patches installed. Is there any patch in particular that would make a difference?
philstraton at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 8
Is the HBA a Sun option ( X6729A )? There is a patch matrix for the ENA that can be downloaded from sunsolve.
mlennon at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 9

I can mount the file system manually, but the system won't reboot and come up with the RAID5 file system mounted.

====== some errors ==========

Rebooting with command: boot

Boot device: mirrordisk File and args:

SunOS Release 5.8 Version Generic_117350-27 64-bit

Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.

WARNING: forceload of misc/md_trans failed

WARNING: forceload of misc/md_hotspares failed

configuring IPv4 interfaces: hme0.

Hostname: s1

The system is coming up. Please wait.

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15 failed to open. open error on /dev/dsk/c3t22d0s7

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15 failed to open. open error on /dev/dsk/c3t22d0s7

checking ufs filesystems

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15 failed to open. open error on /dev/dsk/c3t22d0s7

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15 failed to open. open error on /dev/dsk/c3t22d0s7

/dev/md/rdsk/d15: No such device or address

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15 failed to open. open error on /dev/dsk/c3t22d0s7

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15 failed to open. open error on /dev/dsk/c3t22d0s7

Can't open /dev/md/rdsk/d15

/dev/md/rdsk/d15: CAN'T CHECK FILE SYSTEM.

/dev/md/rdsk/d15: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair one or more filesystems.

Run fsck manually (fsck filesystem...).

Exit the shell when done to continue the boot process.

Type control-d to proceed with normal startup,

(or give root password for system maintenance): resuming mountall

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15 failed to open. open error on /dev/dsk/c3t22d0s7

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15: cannot load driver ssd

WARNING: md: d15 failed to open. open error on /dev/dsk/c3t22d0s7

mount: /dev/md/dsk/d15 no such device

starting rpc services: rpcbind done.

Setting netmask of hme0 to 255.255.255.0

Setting default IPv4 interface for multicast: add net 224.0/4: gateway s1

syslog service starting.

savecore: no dump device configured

savecore: no dump device configured

No swap devices configured

Print services started.

volume management starting.

The system is ready.

s1 console login:

========================

Sun Microsystems Inc.SunOS 5.8Generic February 2000

# df -k

Filesystemkbytesusedavail capacity Mounted on

/dev/md/dsk/d04013294 1082701 289046128%/

/dev/md/dsk/d35034094 819319 416443517%/usr

/proc 0000%/proc

fd 0000%/dev/fd

mnttab 0000%/etc/mnttab

/dev/md/dsk/d4962571 127347 77747015%/var

swap82154416 8215281%/var/run

swap82155224 8215281%/tmp

/dev/md/dsk/d742567149 42141381%/export/home

/vol/dev/dsk/c0t6d0/solaris8_401_suppcd

209708 2097080100%/cdrom/solaris8_401_suppcd

====================================

# mount /dev/md/dsk/d15 /RAID5

====================================

# df -k

Filesystemkbytesusedavail capacity Mounted on

/dev/md/dsk/d04013294 1082701 289046128%/

/dev/md/dsk/d35034094 819319 416443517%/usr

/proc 0000%/proc

fd 0000%/dev/fd

mnttab 0000%/etc/mnttab

/dev/md/dsk/d4962571 127348 77746915%/var

swap82137616 8213601%/var/run

swap82138424 8213601%/tmp

/dev/md/dsk/d742567149 42141381%/export/home

/vol/dev/dsk/c0t6d0/solaris8_401_suppcd

209708 2097080100%/cdrom/solaris8_401_suppcd

/dev/md/dsk/d15700147259 693145691%/RAID5

====================================

# cat /etc/mnttab

/dev/md/dsk/d0 /ufsrw,intr,largefiles,onerror=panic,suid,dev=15400001128798947

/dev/md/dsk/d3 /usrufsrw,intr,largefiles,onerror=panic,suid,dev=15400031128798948

/proc/procprocdev=42000001128798946

fd/dev/fd fdrw,suid,dev=42c00001128798950

mnttab /etc/mnttabmntfsdev=43c00001128798952

/dev/md/dsk/d4 /varufsrw,intr,largefiles,onerror=panic,suid,dev=15400041128798953

swap/var/runtmpfsdev=11128798953

swap/tmptmpfsdev=21128798963

/dev/md/dsk/d7 /export/homeufsrw,intr,largefiles,onerror=panic,suid,dev=15400071128798963

-hosts /netautofs indirect,nosuid,ignore,nobrowse,dev=44800011128798970

auto_home/homeautofs indirect,ignore,nobrowse,dev=44800021128798970

-xfn/xfnautofs indirect,ignore,dev=44800031128798970

s1:vold(pid243) /volnfsignore,noquota,dev=44400011128798986

/vol/dev/dsk/c0t6d0/solaris8_401_suppcd /cdrom/solaris8_401_suppcdhsfsmaplcase,noglobal,nosuid,ro,rr,traildot,dev=16c00011128798990

/dev/md/dsk/d15 /RAID5 ufsrw,intr,largefiles,onerror=panic,suid,dev=154000f1128799596

#

====================================

# cat /etc/vfstab

#device device mountFSfsckmountmount

#to mountto fsck pointtypepassat boot options

#

#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs1yes-

fd-/dev/fd fd-no-

/proc-/procproc-no-

/dev/md/dsk/d0 /dev/md/rdsk/d0 /ufs1no-

/dev/md/dsk/d3 /dev/md/rdsk/d3 /usrufs1no-

/dev/md/dsk/d4 /dev/md/rdsk/d4 /varufs1no-

/dev/md/dsk/d7 /dev/md/rdsk/d7 /export/homeufs2yes-

/dev/md/dsk/d15 /dev/md/rdsk/d15/RAID5 ufs2yes-

swap-/tmptmpfs-yes-

philstraton at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...
# 10
philstraton,what are you forceloading in /etc/system? you could try and forceload the ssd driver within the /etc/system file if it is not already there as it would seem there may be a timing issue with loading the driver I suspect from the messages you've given
topbannana at 2007-7-5 17:49:26 > top of Java-index,Storage Forums,Storage General Discussion...