Operating System - HP-UX
1832232 Members
3166 Online
110041 Solutions
New Discussion

How to remove the disk partition info on a Integrety Server Root HDD

 
SOLVED
Go to solution
Kenneth_42
Advisor

How to remove the disk partition info on a Integrety Server Root HDD

Hi all,

I have a couple of internal HDD ona RP4640 Integrety server. This HDD were partitioned using the iwdisk or whatever.

I have replaced this disk with a higher speed disk and have reinstalled them on the same server on an external disk array.

When I do an ioscan -fnC disk, I can still see the disk partitioning info. How can I remove this info? If I reboot the server, will this info be gone?

I have successfully added this two disk in a new volume group vg01 and created mirrored logical volumes accross the two disk.

Below is the output of ioscan for one disk mentioned that still has the disk partition information.

disk 2 0/4/2/0.8.0 sdisk CLAIMED DEVICE HP 73.4GST373307LC

/dev/dsk/c4t8d0 /dev/dsk/c4t8d0s2 /dev/rdsk/c4t8d0 /dev/rdsk/c4t8d0s2
/dev/dsk/c4t8d0s1 /dev/dsk/c4t8d0s3 /dev/rdsk/c4t8d0s1 /dev/rdsk/c4t8d0s3


As you notice, it still shows the previous disk slices or partitioning.

Thanks in advance for any help and advise!
Ken
6 REPLIES 6
Muthukumar_5
Honored Contributor

Re: How to remove the disk partition info on a Integrety Server Root HDD

Use vgreduce to do it.

Example:
Remove physical volume /dev/dsk/c0t1d0 from volume group /dev/vg01:

vgreduce /dev/vg01 /dev/dsk/c0t1d0


hth.
Easy to suggest when don't know about the problem!
Torsten.
Acclaimed Contributor

Re: How to remove the disk partition info on a Integrety Server Root HDD

Hi Ken,

it would be a very bad thing if the partition information will be gone after a reboot.

You have to start over. Remove your vg01 and
try to delete the partitions

idisk -R /dev/rdsk/c4t8d0

Create the vg01 again.

See man page for more information

http://docs.hp.com/en/B2355-60103/idisk.1M.html

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!   
Kenneth_42
Advisor

Re: How to remove the disk partition info on a Integrety Server Root HDD

Hi guys,

I have broken the mirror and removed vg01 on both disk. Then I did the "idisk -R" on both disk but I can still see the slice or partition information when I do an "ioscan -fnC disk".

When you do an "idisk -p /dev/rdsk/cXtXd0" or plain "idisk /dev/rdsk/cXtXd0" it just fails meaning there is probably no more partition info to read.

I pvremove/pvcreate the disk and have even rebooted the server and still the partition information is displayed.

Maybe this is a bug?

OK, right now I'm trying to do a mediainit on one of the disk and hopefully this works.

Still any suggestions and advice is most welcome.

Thanks in advance,
Ken
Patrick Wallek
Honored Contributor
Solution

Re: How to remove the disk partition info on a Integrety Server Root HDD

Once the device files are created, they won't just go away when you take the partitions away. You may need to 'rmsf' the disk and then use ioscan and insf to recreate the device files from scratch.

# rmsf -H 0/4/2/0.8.0

# ioscan

# insf -e

# ioscan

and see what device files show up now.
Kenneth_42
Advisor

Re: How to remove the disk partition info on a Integrety Server Root HDD

Thanks, so only the rmsf command is needed to delete the previous device files as "insf -e" does not overwrite any existing device files.

Thansk a lot!
Kenneth_42
Advisor

Re: How to remove the disk partition info on a Integrety Server Root HDD

Problem solved!

Thanks a lot!