- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to delete the content of a raw device
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
02-28-2004 01:08 AM
02-28-2004 01:08 AM
How to delete the content of a raw device
Thnaks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2004 01:17 AM
02-28-2004 01:17 AM
Re: How to delete the content of a raw device
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2004 01:17 AM
02-28-2004 01:17 AM
Re: How to delete the content of a raw device
What about copying /dev/null to it ?
dd if=/dev/null of=/dev/vg#/rlvol#
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2004 01:17 AM
02-28-2004 01:17 AM
Re: How to delete the content of a raw device
dd if=/dev/zero of=/dev/vg_name/lv_name bs=1024k
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2004 01:21 AM
02-28-2004 01:21 AM
Re: How to delete the content of a raw device
/dev/zero is the healthier way, but is only available/supported on 11i++ (OTOH a mknod takes care of the 'available' part.)
You should be able to do the lvreduce without deactivating the VG, unless there is a ServiceGuard-related issue I don't know about.
Good luck,
Florian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2004 10:43 PM
02-28-2004 10:43 PM
Re: How to delete the content of a raw device
is a good choice. If you are running HP-UX 11.00 you can create the /dev/zero with
# mknod /dev/zero c 3 0x000004
# chmod 666 /dev/zero
But you can take any source of data to overwrite it, e.g.
# yes | dd of=/dev/vgNN/rlvolN obs=1024k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2004 12:03 AM
02-29-2004 12:03 AM