- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to remove a disk?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 12:30 AM
10-11-2007 12:30 AM
How to remove a disk?
I will reward points.
Thanks,
GBR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 12:35 AM
10-11-2007 12:35 AM
Re: How to remove a disk?
search in
/strings/lvmtab or vgdisplay ...
inspect the disk
pvdisplay -v ...
Ask yourself or your documentation if the disk is in use directly without LVM, maybe directly as a raw device.
If needed, remove the disk from LVM (vgreduce/vgremove) and the device files too (rmsf). Finally remove the disk.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 12:38 AM
10-11-2007 12:38 AM
Re: How to remove a disk?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 12:40 AM
10-11-2007 12:40 AM
Re: How to remove a disk?
will show you if the disc is in a VG.
bdf -l will tell you if there are any filesystems on the VG. If there are and you are not sure if they are used:
cd /suspect_filesystem
find . -atime -7 -print
will give you a list of files in the suspect filesystem that have been accessed within the last week (but note that backing up to tape counts as access).
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 12:57 AM
10-11-2007 12:57 AM
Re: How to remove a disk?
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 01:02 AM
10-11-2007 01:02 AM
Re: How to remove a disk?
Some admins are using "dd" to create an emergency copy of the (boot) disk, some have HPVM installed ... to be sure you NEED to have a good documentation of your setup.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 01:06 AM
10-11-2007 01:06 AM
Re: How to remove a disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 01:17 AM
10-11-2007 01:17 AM
Re: How to remove a disk?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 01:25 AM
10-11-2007 01:25 AM
Re: How to remove a disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 01:28 AM
10-11-2007 01:28 AM
Re: How to remove a disk?
Check with vxdiskadm
Also, look at sar data - is there any i/o on the disk itself?
sar -d
Make sure you have good backups...
Then, shut the server down, pull the disk....reboot...
Is everything working?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 01:41 AM
10-11-2007 01:41 AM
Re: How to remove a disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 02:18 AM
10-11-2007 02:18 AM
Re: How to remove a disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 02:21 AM
10-11-2007 02:21 AM
Re: How to remove a disk?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 02:31 AM
10-11-2007 02:31 AM
Re: How to remove a disk?
- check in /etc/fstab for swap referring to the raw devicefile. If found, you'll need to remove the entry in fstab then reboot sometime in the future. You cannot remove swap space from a running system as it is permanently assigned at bootup.
- check with your database administrator. Configuring Oracle will require knowing which disks are used and in which manner (ie, taw for filesystem).
- and the guaranteed-to-work method: pull out the disk and look for errors. It seems brutal but there's no other way once the above methods have been tried.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 02:43 AM
10-11-2007 02:43 AM
Re: How to remove a disk?
My method of dealing with this is when a disk/LUN is first made available to a system (and even if I know that I am immediately going to use this disk under LVM, for example) I run a small C program that writes an 80-byte string and then a series of increasing 4-byte integers to the 1st 1MiB of the disk. If that pattern is undisturbed then I have a very good indicator (though not foolproof) that the disk has not be in use. Of course, in addition to this, I also document the usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 07:25 AM
11-27-2008 07:25 AM