- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Create LV on a disk with a bad block
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
04-06-2004 03:12 AM
04-06-2004 03:12 AM
Create LV on a disk with a bad block
And is there some way to ignore these blocks, so I can use my disk even if it damage ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 03:17 AM
04-06-2004 03:17 AM
Re: Create LV on a disk with a bad block
man lvcreate to know more details.
lvcreate -L "size" -r n /dev/vgxx /disk
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 03:17 AM
04-06-2004 03:17 AM
Re: Create LV on a disk with a bad block
IF the disk is not already in use then you can run the mediainit command on it to spare out the bad blocks - use it as follows:
mediainit /dev/rdsk/cXtYdZ
Note the need to use the raw device.
Then just
pvcreate/vgcreate/lvcreate/newfs it as normal.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 03:18 AM
04-06-2004 03:18 AM
Re: Create LV on a disk with a bad block
You might have better luck with a mediainit command and let it identify and spare the bad blocks for you but I would still replace the disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 04:47 PM
04-06-2004 04:47 PM
Re: Create LV on a disk with a bad block
command for the boot, root, primary swap, and dump Logical Volumes. LVM bad-
block relocation is not supported for any logical volume containing the root
filesystem ("/"), the boot filesystem ("/stand"), primary swap or dump. When
the OS is loaded, by default, it will create theses Logical Volumes with bad-
block relocation turned off.
Bad Block Relocation can either be on, off, or none. To determine what it is
set to, use the lvdisplay command:
# lvdisplay /dev/vg00/lvol4
--- Logical volumes ---
LV Name /dev/vg00/lvol4
...
Bad block on
To modify the Bad Block Relocation policy, use the lvchange command:
lvchange -r y - Turns Bad Block Relocation on
lvchange -r n - Turns Bad Block Relocation off
lvchange -r N - Turns Bad Block Relocation NONE
If Bad Block Relocation is turned on then upon a media failure
(detection of a bad block of data on disk), LVM will mark the failed block in
the Bad Block Directory, and attempt to relocate the block to a new location on
disk.
If Bad Block Relocation is turned off then upon a media failure, LVM
will mark the failed block as bad in the Bad Block Directory, but will NOT
attempt to relocate the bad block to a new location on disk.
If Bad Block Relocation is turned to NONE then upon a media failure,
LVM will NOT attempt to relocate the bad block. In addition it will NOT enter
the block in the Bad Block Directory. LVM will have no record of the block
being bad, and will attempt to access it on future I/O requests.
General Rules for Setting Bad Block Relocation
By default Bad Block Relocation is turned on, when any Logical Volume is
created.