Operating System - HP-UX
1833771 Members
2129 Online
110063 Solutions
New Discussion

Re: how to diffenciate raid-4 and raid-5 disk in hp-ux 11

 
SOLVED
Go to solution
twtandigi.com.my
Frequent Advisor

how to diffenciate raid-4 and raid-5 disk in hp-ux 11

hi,

i have trouble in finding out if the system is configured with raid-4 or raid-5?
by the way,
does any body know how to user the cpio command?
6 REPLIES 6
Michael Tully
Honored Contributor

Re: how to diffenciate raid-4 and raid-5 disk in hp-ux 11

Unless we know what type of disk array is attached it is hard to tell.

extract example
# cpio -icuvdB < /dev/rmt/0mn
you could also include a directory with quotes.

Reading the tape
# cpio -icu < /dev/rmt/0mn (Creating CONTROL file)
second time
# cpio -icu < /dev/rmt/0mn (creates index file to see what is on the tape.

There are many different ways, please also consult the man pages.
Anyone for a Mutiny ?
twtandigi.com.my
Frequent Advisor

Re: how to diffenciate raid-4 and raid-5 disk in hp-ux 11

what kind of information do i need to provide in order to diagnose whit type of raid i am currently using on the system?
Michael Tully
Honored Contributor
Solution

Re: how to diffenciate raid-4 and raid-5 disk in hp-ux 11

That's because the raid sits in the disk array, not actually on the server. The server only knows about LUN's (disks) not actually how they are set up.

For example, if I had an array that used the 'arraydsp' tools, then you could use this to tell you.

# arraydsp -a (basically gives everything, see man page)

If you were using an EMC array of some kind, other tools would be needed. So do you know what is attached to your server? If not perhaps post a copy of your 'ioscan -fnk' output and we may be able to identify it.
Anyone for a Mutiny ?
Celso Medina Kern
Trusted Contributor

Re: how to diffenciate raid-4 and raid-5 disk in hp-ux 11

Hi,

It´s very unlike to have RAID4, it is not used generally. Anyway, you´ll need an array manager software to obtain your lun configuration. As Tully said, RAID is not done in hp-ux, but in hardware. The only RAID like you can have in hp-ux software is LVM Mirror, equivalent to RAID1. Also, full VxVM over hp-ux gives you the RAID5, RAID1, RAID1+0 and RAID0+1 capabilities.

If you post the array hardware model, it´s going to be easier to say what tool you should use. If this array was configured with sam, and it is patched acordingly, you can see array configuration in some array models through sam.

the commands i know to see array configuration, if you have the software installed, are:
amdsp -i # for FC´s
amdsp -a # for FC´s
armdsp -i # for VA´s
armdsp -a # for VA´s

You can look for them with this command:
swlist -l file | grep -e amdsp -e armdsp

Concerning cpio:
backup
------
for relative paths
find . | cpio -ovB > /dev/rmt/0m
for absolute paths
find /usr | cpio -ovB > /dev/rmt/0mn
Restore
-------
cpio -ivdB < /dev/rmt/0m
Verify
------
cpio -ivtB < /dev/rmt/0m
Copy disk-to-disk(tree copy)
----------------------------
find . | cpio -pvdum /destination_dir

Regards,

God bless pessimists, they did the backup!
twtandigi.com.my
Frequent Advisor

Re: how to diffenciate raid-4 and raid-5 disk in hp-ux 11

i got the information tha i needed about the raid configuration on my system.

thank you for the advise.

twtandigi.com.my
Frequent Advisor

Re: how to diffenciate raid-4 and raid-5 disk in hp-ux 11

Thank you