How to check LDEV in server?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to check LDEV in server?
# 1  
Old 02-28-2015
How to check LDEV in server?

Hi ,

There is one task to provide 50 GB space to the disk group ORABACK and Storage team have confirmed saying allocated below LDEV with 50 GB
03:90.
How to check LDEV with 50 GB is created in server ?Could you please guide me ?

Code:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)

Code:
$ uname -a
Linux saecopd510.europe.nokia.com 2.6.32-504.8.1.el6.x86_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux

Regards,
Maddy
# 2  
Old 02-28-2015
Did the storage administrators provide you with a LUN corresponding to the LDEV? What make of storage device?
# 3  
Old 02-28-2015
Hi Murphy,

Quote:
Did the storage administrators provide you with a LUN corresponding to the LDEV? What make of storage device?
Yes, it is 03:90.

Here is the mail confirmation from storage admin.

Hi,

As per subject change we have allocated below LDEV with 50GB, please check and confirm the same.

03:90.

Regards,
Maddy
# 4  
Old 03-01-2015
If you are using dm multipath...

Rescan the fabric (all ports) using echo or 3rd party utilities.
multipath -ll should now show the new lun, else restart the deamon.

You will see the mpath<number> (largenumberLUNID) and other info about the new lun.

Also, check ls -lrt /dev/mapper/*, for the newest device created named mpath<number> corresponding with output of multipath.

If you are using multipath.conf for naming your devices (which i recommend), now is the time to change the name to your liking and restart the deamon.
If you used your custom name in multipath.conf, it will be created under /dev/mapper/yourname.

You can can use the new device in the operating system, using the /dev/mapper/devicename. Be sure to use /dev/mapper not /dev/mpath or other.

Hope that helps
Regards
Peasant.
# 5  
Old 03-01-2015
Hi Peasant,

That was very well explained.Thanks for that.
I am able to see the new device created as below.

Code:
$ ls -alrt /dev/mapper/HDS_K1_0390_41
lrwxrwxrwx. 1 root root 8 Feb 27 16:40 /dev/mapper/HDS_K1_0390_41 -> ../dm-45

$ ls -lrt /dev/mapper/*
crw-rw----. 1 root root 10, 58 Feb 12 08:36 /dev/mapper/control
lrwxrwxrwx. 1 root root      8 Feb 27 16:40 /dev/mapper/HDS_K1_0390_41p1 -> ../dm-46
lrwxrwxrwx. 1 root root      8 Feb 27 16:40 /dev/mapper/HDS_K1_0390_41 -> ../dm-45

How to determine the new device was created with 50 GB size in OS level ?I am able to see the size of new device in the database instance.

Code:
SQL> select path,os_mb ,header_status from v$asm_disk where header_status in ('CANDIDATE','FORMER') order by 2;

PATH                                OS_MB HEADER_STATUS
------------------------------ ---------- ------------------------------------
/dev/raw/raw41                      51199 CANDIDATE
/dev/raw/raw36                     102398 CANDIDATE
/dev/raw/raw35                     102398 CANDIDATE

Quote:
If you are using multipath.conf for naming your devices (which i recommend), now is the time to change the name to your liking and restart the deamon.
Yes, we are using multipath.conf i guess and i am scared to change the name of the device since i don't know what is daemon and the command to restart and the impact if i restart and hence can't do it Smilie
Quote:
If you used your custom name in multipath.conf, it will be created under /dev/mapper/yourname.
I don't have any name created in OS.
Quote:
Rescan the fabric (all ports) using echo or 3rd party utilities.
multipath -ll should now show the new lun, else restart the deamon.
I dont't know how to rescan the fabric and the impact of it.Hence can't do it Smilie

Regards,
Maddy

Last edited by Maddy123; 03-01-2015 at 05:49 AM..
# 6  
Old 03-02-2015
That's is ASM right ?
If the ASM sees the new disk, it is fine. ASM is like a volumegroup/filesystem for oracle databases, if you can add it and see it after, the disk is fine.

From this perspective, looks like someone already did the initial setup for new disk, since you see it, and it has a defined name (HDS... not default one) present probably from Hitachi storage by name Smilie

What bothers me is using /dev/raw devices, it is depriciated, since Oracle ASM will use O_DIRECT flag whatever device you give to him for years now.

It will (and does) work with this setup.

You might just want to check raw -qa to check if bindings are to /dev/mapper devices (they should be).

If not, you might want to fix that, since if you lose one path, there is a chance that database will not be able to access the disk resulting in pain and misery probably Smilie

Hope that clears things out
Regards
Peasant.
# 7  
Old 03-04-2015
Hi Peasant,

Thanks for your clarification and it is clear now .

Regards,
Maddy
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to check server-name and come out

Hello, I am not efficient in script, so need some help to create a small script. I have file, which have list of all IPs. All those IPs can be connected from a gateway server with "sudo ssh 10.63.xx.xx". We do not have reverse lookup for IPs, so I want script to login to each server, return... (1 Reply)
Discussion started by: solaris_1977
1 Replies

2. Shell Programming and Scripting

Check fastest server and using it

hello we have upload some data in 15 servers in usa asia ... i consider to add new feature , script can detect download speed between localhost and destination and use fastest server, i have cut this part from a script which have this feature, download a xx MB file from all its source and... (0 Replies)
Discussion started by: nimafire
0 Replies

3. Shell Programming and Scripting

Linux Server Check

Hi, Is there a way to check linux server is up or not from my desktop (windows 7)? from the command prompt or powershell script. I have about 100 servers which I have to check daily..right now, i ssh to terminal with my login to verify. Thanks, vasu (2 Replies)
Discussion started by: myguess21
2 Replies

4. Shell Programming and Scripting

to check if a remote server is up

I need to check if a remote server is up before i send a file to it through FTP. I thought of using "ping" command to check it. But the problem is, my script needs to run from 2 different servers, one is Solaris and other is HP-UX. And ping works in different way in each of them when I do -... (3 Replies)
Discussion started by: Vidhyaprakash
3 Replies

5. Shell Programming and Scripting

check for file in another server

Hi, I want to check for existence of a file in another server. Is it possible to use if loop and check for the file existence after connecting via ftp. After connecting via ftp in the script if I use if command it is throwing an error saying invalid command.if command is also not there in... (1 Reply)
Discussion started by: ashwin3086
1 Replies

6. Red Hat

how do i check i/o in server?

Hello, I am using linux OS. I want to check I/0 performance and CPU load on the server. CPU load can be seen by using TOP command. How do i check the I/O performance? I want to see which file system is hitting more I/O wait.. How do i see this... I tried to use iostat? Above first... (2 Replies)
Discussion started by: govindts
2 Replies

7. UNIX for Dummies Questions & Answers

How to check if the server is on a Cluster

Hi im connecting to a datacenter remotely. is there a command to know if the server is on a cluster? i want to know the command to use in these OS(hp-ux,solaris,linux) Thanks (6 Replies)
Discussion started by: jinslick25
6 Replies

8. UNIX for Dummies Questions & Answers

How can I check UDP connection to other server?

Hi, My network dep. telles me that they have opened the FW but my application still can not get through to other server. If it was TCP I could simply test it myself with "telnet", but how can I check it when the connection is UDP? Tnx (1 Reply)
Discussion started by: mehrdad68
1 Replies

9. AIX

ldev Number

Hi, can some one tell me how to find the ldev number associated with a disk. Is there any command to know it? (4 Replies)
Discussion started by: anoopraok
4 Replies

10. Cybersecurity

check ports on server

Hi All, I've been using this to verify if ports is open on a server. For example I would like to check port 5887, "telnet ip.of.server 5887" using on dos. If there's response on it then I can say it's open, if not then it's close. Is that assumption accurate? Thanks for any comments you... (4 Replies)
Discussion started by: itik
4 Replies
Login or Register to Ask a Question