System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

command to delete RAID 0 through saconfig

 
SOLVED
Go to solution
shikhar_1
Regular Advisor

command to delete RAID 0 through saconfig

Hi,

I want to delete RAID0 which is configured as hardware RIAD (SAS SmartArray P400 RAID Controller) for disks in bays 5,6,7 and 8 are forming a RAID0 for Logical drive 1.


saconfig /dev/ciss0

---------- LOGICAL DRIVE 1 ----------

Device File = /dev/dsk/c0t0d1
RAID Level = 0
Size = 559929 MB
Stripe Size = 128 KB
Status = OK

Participating Physical Drive(s):

Ct Enc Bay WWID
1I 1 8 0x5000c5001d44a9e5
1I 1 7 0x5000c5001d44a955
1I 1 6 0x5000c5001d491c35
1I 1 5 0x5000c5001d44aa55

Participating Spare Drive(s):

Is the command should be like this?

/opt/raidsa/bin/saconfig /dev/ciss0 -D 1

Appreciating your response.
25 REPLIES
Torsten.
Acclaimed Contributor

Re: command to delete RAID 0 through saconfig

Exactly.

According to the man page:




To delete logical drive 0 -

/opt/raidsa/bin/saconfig /dev/ciss5 -D 0




Make sure it is no longer in use!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
P Arumugavel
Respected Contributor

Re: command to delete RAID 0 through saconfig

shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

Hi,

I want to see all my SAS drives in ioscan -funC disk o/p but after deleting it, its still showing a single disk in ioscan o/p.

# /opt/raidsa/bin/saconfig /dev/ciss0 -D 1
Are you sure you want to delete logical drive 1 on
SmartArray RAID controller /dev/ciss0? (y/[n]): y
Logical drive 1 deleted

disk 1 0/3/0/0/0/0.0.1 sdisk CLAIMED DEVICE HP OLUME

Can't it possible to see all 4 drives separetly?
So that i can use it separately for configuring vg's.
Torsten.
Acclaimed Contributor

Re: command to delete RAID 0 through saconfig

you can only use logical drives

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
P Arumugavel
Respected Contributor

Re: command to delete RAID 0 through saconfig

>> Can't it possible to see all 4 drives separetly?

Yes. You can see all 4 drivers seperately, but not as physical drive, only as logical drive.

Create arrays with RAID 0 for all 4 physical drive and use.

Rgds...
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

Now all the four drives are showing unassigned


internal 1I 1 8 0x5000c5001d44a9e5 DISK 146.8 GB UNASS IGNED
internal 1I 1 7 0x5000c5001d44a955 DISK 146.8 GB UNASSIGNED
internal 1I 1 6 0x5000c5001d491c35 DISK 146.8 GB UNASSIGNED
internal 1I 1 5 0x5000c5001d44aa55 DISK 146.8 GB UNASSIGNED

Now how to create it a separate lvols?

whats the command for that?

Appreciaitng your response
Torsten.
Acclaimed Contributor

Re: command to delete RAID 0 through saconfig

What do you want to have now?


RAID0, RAID1 or even RAID5???



You cannot access the physical disks from OS.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
RickT_1
Valued Contributor

Re: command to delete RAID 0 through saconfig

Shikhar,

Now that you can see all 4 disks, you can go into SAM and create a logical volume for each. As an alternative you can use the lvcreate command from the shell prompt.

Rick
Torsten.
Acclaimed Contributor

Re: command to delete RAID 0 through saconfig

no no no.


You CANNOT see physical drives connected to a P400 from the OS.


The output above is from saconfig utility.




You need to create a RAID set and logical drives (RAID 0/1/5).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

I want to create Raid 0 only.. Through sam it is not showing any disks ..

H/W Scan: Tue Apr 5 14:16:01 2011
Path(s) Device File(s) Use VG Names Paths Size(GB) Descrip
--------------------------------------------------------------------------------
0/3/0/0/0/0.0.0 /dev/dsk/c0t0d0 LVM vg00 1 136.70 HP
255/1/0.0.0 /dev/dsk/c1t0d0 unused - 1 0.00 TEAC

RickT_1
Valued Contributor

Re: command to delete RAID 0 through saconfig

Torsten is correct. You create raid 0 for each disk then they will show up in sam.

Rick
Torsten.
Acclaimed Contributor

Re: command to delete RAID 0 through saconfig

Hmmm, but why not mirroring the logical drives?



This will be much more secure.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

Hi,

Whats the command to create it for RAID0?

# saconfig /dev/ciss0 -E1 -p 1:3
Logical drive 1 does not exist
saconfig (/dev/ciss0): Current driver state is READY


Whats is p here?

I have these below unassigend disks,
Pls tell me step by step.

Thanks in advance
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

Hi,

Whats the command to create it for RAID0?

# saconfig /dev/ciss0 -E1 -p 1:3
Logical drive 1 does not exist
saconfig (/dev/ciss0): Current driver state is READY


Whats is p here?
internal 1I 1 8 0x5000c5001d44a9e5 DISK 146.8 GB UNASS IGNED
internal 1I 1 7 0x5000c5001d44a955 DISK 146.8 GB UNASSIGNED
internal 1I 1 6 0x5000c5001d491c35 DISK 146.8 GB UNASSIGNED
internal 1I 1 5 0x5000c5001d44aa55 DISK 146.8 GB UNASSIGNED

Now how to create it a separate lvols?

whats the command for that?

Appreciaitng your response
I have these below unassigend disks,
Pls tell me step by step.

Thanks in advance
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

saconfig /dev/ciss0 -R 0 -p 1|:1:8

Invalid specified: "1"
Disk specifier must be one of the following forms:
: of the SCSI physical disk, e.g., 4:12
OR
:: of the SAS/SATA physical disk,
e.g., 2I:1:10
OR
of the SAS/SATA physical disk, e.g., 0x500000e010f16432


saconfig (/dev/ciss0): Error - Incorrect command line arguments

saconfig (/dev/ciss0): Current driver state is READY
sh: :1:8: not found.
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

How to know the -p ?

for the drives attached to my system?
internal 1I 1 8 0x5000c5001d44a9e5 DISK 146.8 GB UNASSIGNED
internal 1I 1 7 0x5000c5001d44a955 DISK 146.8 GB UNASSIGNED
internal 1I 1 6 0x5000c5001d491c35 DISK 146.8 GB UNASSIGNED
internal 1I 1 5 0x5000c5001d44aa55 DISK 146.8 GB UNASSIGNED
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

Hi,

I have created raid0
by using below command

# saconfig /dev/ciss0 -R 0 -p 0x5000c5001d44a9e5
Logical drive 1 created

But its device file is showing NA.

How to i use this logical volumne?


---------- LOGICAL DRIVE 1 ----------

Device File = NA
RAID Level = 0
Size = 139982 MB
Stripe Size = 128 KB
Status = OK

Participating Physical Drive(s):

Ct Enc Bay WWID
1I 1 8 0x5000c5001d44a9e5

Participating Spare Drive(s):

None
Torsten.
Acclaimed Contributor

Re: command to delete RAID 0 through saconfig

Once create you need to run "insf" to create the device file.

# insf -e -H

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig


should be /dev/ciss1??
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig


should be 0/3/0/0/0/0.0.1??
Torsten.
Acclaimed Contributor
Solution

Re: command to delete RAID 0 through saconfig

Take it from ioscan.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

ok.. its configured now.. Thanks alot..
Torsten.
Acclaimed Contributor

Re: command to delete RAID 0 through saconfig

Why do you want RAID 0 drives ???



I would prefer something like this (from man page):

To create a RAID 5 logical drive with capacity 45 GB to include SAS physical drives 1I:1:16, 1I:1:15, and 1I:1:14 -

# /opt/raidsa/bin/saconfig /dev/ciss2 -R 5 -c 45 -p 1I:1:16 -p 1I:1:15 -p 1I:1:14




IMHO much better!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
shikhar_1
Regular Advisor

Re: command to delete RAID 0 through saconfig

HI,

Actually i am doing it on my test server just for learning purpose.
I will create Raid5 later..