Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
cancel
Showing results for 
Search instead for 
Did you mean: 

Disk unused

SOLVED
Go to solution
Eli Daniel
Super Advisor

Disk unused

good morning, before commenting on something I would like to wish you a happy new year.
wanted to know if any of you can help me for a command which are the disks that are unsed (EMC).
according to my supervisor multiple disks found unsed, but they are.
ioscan command with the disk can see the disks but how do I know if they are unused?
21 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: Disk unused

Hi Eli:

Documentation is the only sure way to know if a physical disk is "used" or not.

Consider that you can 'vgexport' a volume group. The physical disk aren't "used" by the server, but they could be 'vgimport'ed elsewhere.

Next, a physical disk might be used as a raw device.

From a SAN perspective, a physical disk might not be assigned to any server, but it could still contain valuable data.

Documentation is critical.

Regards!

...JRF...
rariasn
Honored Contributor

Re: Disk unused

Hi Eli,

# symvg list

rgs,
Eli Daniel
Super Advisor

Re: Disk unused

nnex send the unused disk image
Torsten.
Acclaimed Contributor

Re: Disk unused

JRF: Documentation is the only sure way to know if a physical disk is "used" or not.



Strongly agree!




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!   
Torsten.
Acclaimed Contributor

Re: Disk unused

"unused" in your screenshot means no LVM or VxVM.



But could be used by database or virtual machines without a volume manager!

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!   
TTr
Honored Contributor
Solution

Re: Disk unused

For the unused disks in your server I would check two things. One is if there are multiple paths involved. These LUNs may be in use on this server under a different path.

Second, if these LUNS are not used in this server, you need to unpresent them from this server in EMC. Then you need to check in EMC if these LUNs have been presented to another server and are being used there.

These have commands to cross reference EMC LUNs and HP-UX disks.

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1087725

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1290435
Eli Daniel
Super Advisor

Re: Disk unused

the disk image to a server belonging Virtual Partition. It means that the disk that is "unused" are being used by another machine, or are allocated without being used.
TTr
Honored Contributor

Re: Disk unused

> the disk image to a server belonging Virtual Partition

Nor sure what you are trying to say here. Is this server a virtual machine or do you have virtual machines in this server? Also as Torsten asked do you have databases that may be using raw volumes? (oracle, RAC, sybase etc)
Eli Daniel
Super Advisor

Re: Disk unused

this is a rx7640 server with 4 Virtual Partition. There are no Virtual Machine.

In the SAP server is installed, if any database but is assigned to another VG (LVM).
Eli Daniel
Super Advisor

Re: Disk unused

Is there any way to know if the disks "unused" contain data?????
Torsten.
Acclaimed Contributor

Re: Disk unused

Unpresent them and wait if someone complains ...


;-)


More serious - if you don't know what are you looking for you will probably find nothing!

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!   
Eli Daniel
Super Advisor

Re: Disk unused

I am looking for help. I need to know whether the disk "unused" are used or not.
Torsten.
Acclaimed Contributor

Re: Disk unused

I know.

But what to tell?

Disk are not under volume manager control.

Are the disk mounted?

Are the disk used as raw devices by a database?

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!   
Eli Daniel
Super Advisor

Re: Disk unused

excuse the inconvenience
1) discs "unused" are dating?
2) I allocate disk "unused" to a VG?
Torsten.
Acclaimed Contributor

Re: Disk unused

disk dating ???

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!   
James R. Ferguson
Acclaimed Contributor

Re: Disk unused

Hi (again):

> Is there any way to know if the disks "unused" contain data?????

This leads to another question: Do you scrub physical disks when you return them to a free pool? That is, do you erase any LVM metadata if its an LVM disk? [You could use 'dd' or 'pvremove']. If its a raw disk, do you write all zeros or some random pattern with 'dd' to every disk block?

You could write a simple script to write a known "*UNUSED/FREE/AVAILBABLE*" record to a specific disk address to help you in the future.

Once, again, *documentation* is the surest way to know.

I also agree with Torsten --- "unpresent them and wait if someone complains". This is sometimes the "best" way to uncover things long forgotten in complex environments.

Regards!

...JRF...
Eli Daniel
Super Advisor

Re: Disk unused

sorry Data
contains data??
TTr
Honored Contributor

Re: Disk unused

You can try and vgimport these to a temporary vg to check if they contain any data. But first you must verify they they are not used anywhere else as mentioned so far. (different path, different server, raw volumes)
Eli Daniel
Super Advisor

Re: Disk unused

understand,
that was exactly what I was looking
Eli Daniel
Super Advisor

Re: Disk unused

thanks
Eli Daniel
Super Advisor

Re: Disk unused

thanks