- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to simulate disk failure ?
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
Discussions
Discussions
Forums
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
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
тАО01-26-2006 12:35 AM
тАО01-26-2006 12:35 AM
I have configuration:
vg01 has 2 physical volume groupe: PVG0, PVG1
PVG0 (c0t0d0, c0t1d0)
PVG1 (c4t0d0, c4t1d0)
LV's was created in vg01 with Extent-Based Mirrored Stripes:
lvcreate -D y -s g -m1 -l 100 /dev/vg01
I want to check what hapend when 1 disk failing.
How can I simulate disk failure ?
I don't want to remove disk from machine!
Is pvcreate -f /dev/rdsk/c0t0d0 good idea ?
Thx for help!
KRI
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 12:40 AM
тАО01-26-2006 12:40 AM
Re: How to simulate disk failure ?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 12:41 AM
тАО01-26-2006 12:41 AM
Re: How to simulate disk failure ?
pvcreate -f is not a solution.
The only good way to simulate if failure is power down or remove the disk from the array
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 12:51 AM
тАО01-26-2006 12:51 AM
Re: How to simulate disk failure ?
I think the command will fail. If it does not, it is possible that it will lock the machine, or force the machine to fail.
If you have raid 1 (lxextend -m 1 ) mirroring, it might survive.
I tested this successfully in the US. I shut the system down and booted it while pulling out one of the hot sway drives. It ran normally and then I plugged the drive in. It was discovered and the OS synced up itself.
I recommend against use of your proposed test, it could destroy data and make it impossible for your mirrors to sync. You'd then be forced to redo mirroring from scratch on the system. I think it won't work, but do not like what the impact would be if it does.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 01:02 AM
тАО01-26-2006 01:02 AM
Re: How to simulate disk failure ?
I would not perform that test. Do as the others said, pull the disk and reinsert it.
Your test is pretty dangerous to your data and disk.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 01:07 AM
тАО01-26-2006 01:07 AM
SolutionFirst, 'pvcreate' (forced or not) will not work if the volume in question exists in '/etc/lvmtab', so that is not an option.
Secondly, as noted, brutally disconnecting a running disk might lead you into more problems than the test was worth.
If this was a mirrored vg00 set, then, I would suggest that you use prove that you could boot from either mirrored set. Otherwise, I would ask, "what's-to-check?". If your logical volumes are synchronized (use 'lvdisplay -v' to check), then why can't you trust the product?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 02:54 AM
тАО01-26-2006 02:54 AM
Re: How to simulate disk failure ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2006 03:57 AM
тАО01-26-2006 03:57 AM
Re: How to simulate disk failure ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2006 01:17 AM
тАО01-27-2006 01:17 AM
Re: How to simulate disk failure ?
Thank all of You for help me!
Now I know the only one way to simulate disk failure is power down or remove the disk from the array.
Thx!
Regards!
KRI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2006 05:45 PM
тАО01-31-2006 05:45 PM
Re: How to simulate disk failure ?
dd if=/dev/null of=disk path b=1024K count=12
So after this if u run some query or write or read some data then u'll find some stale extend on the disk on which u run this dd.
After that u have restore the vgcfgbackup on that particular disk. Ur data will be safe so don't worry abt the data.