File system recovery question
I have a file system, and it appears that someone dd'd over the first part of one of the NSD's with zero's. I see the device in multipath. I can fdisk and dd the device out. Executing od shows it is zero's. (! 21)-> od /dev/mapper/dh1_vd05_005 | head -n 5 0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 0040000 120070 156006 120070 156006 120070 156006 120070 156006 Dumping the header of one of the other disks shows read data for the other NSD's in that file system. (! 25)-> mmlsnsd -m | grep dh1_vd05_005 Disk name NSD volume ID Device Node name Remarks --------------------------------------------------------------------------------------- dh1_vd05_005 8D8EEA98506C69CE - myhost (not found) server node (! 27)-> mmnsddiscover -d dh1_vd05_005 mmnsddiscover: Attempting to rediscover the disks. This may take a while ... myhost: Rediscovery failed for dh1_vd05_005. mmnsddiscover: Finished. Wed Feb 13 09:14:03.694 2013: Command: mount desarchive Wed Feb 13 09:14:07.101 2013: Disk failure. Volume desarchive. rc = 19. Physical volume dh1_vd05_005. Wed Feb 13 09:14:07.102 2013: File System desarchive unmounted by the system with return code 5 reason code 0 Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Failed to open desarchive. Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Command: err 666: mount desarchive Wed Feb 13 09:14:07.104 2013: Input/output error Wed Feb 13 09:14:07 CST 2013: mmcommon preunmount invoked. File system: desarchive Reason: SGPanic Is there any way to repair the header on the NSD? Thanks for any ideas! Chad
So, er. Fun. I checked our disks. 0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 0001000 <some data from hereon> Looks like you lost a fair bit. Presumably you don't have replication of 2? If so, I think you could just lose the NSD. Failing that: 1) Check your other disks and see if there's anything that you can figure out. Though TBH, this may take forever. 2) Restore 3) Call IBM and log a SEV 1. 3) then 2) is probably the best course of action Jez
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Chad Kerner Sent: 13 February 2013 16:29 To: gpfsug-discuss@gpfsug.org Subject: [gpfsug-discuss] File system recovery question
I have a file system, and it appears that someone dd'd over the first part of one of the NSD's with zero's. I see the device in multipath. I can fdisk and dd the device out.
Executing od shows it is zero's. (! 21)-> od /dev/mapper/dh1_vd05_005 | head -n 5 0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 0040000 120070 156006 120070 156006 120070 156006 120070 156006
Dumping the header of one of the other disks shows read data for the other NSD's in that file system.
(! 25)-> mmlsnsd -m | grep dh1_vd05_005 Disk name NSD volume ID Device Node name Remarks --------------------------------------------------------------------------------------- dh1_vd05_005 8D8EEA98506C69CE - myhost (not found) server node
(! 27)-> mmnsddiscover -d dh1_vd05_005 mmnsddiscover: Attempting to rediscover the disks. This may take a while ... myhost: Rediscovery failed for dh1_vd05_005. mmnsddiscover: Finished.
Wed Feb 13 09:14:03.694 2013: Command: mount desarchive Wed Feb 13 09:14:07.101 2013: Disk failure. Volume desarchive. rc = 19. Physical volume dh1_vd05_005. Wed Feb 13 09:14:07.102 2013: File System desarchive unmounted by the system with return code 5 reason code 0 Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Failed to open desarchive. Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Command: err 666: mount desarchive Wed Feb 13 09:14:07.104 2013: Input/output error Wed Feb 13 09:14:07 CST 2013: mmcommon preunmount invoked. File system: desarchive Reason: SGPanic
Is there any way to repair the header on the NSD?
Thanks for any ideas! Chad
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Dealt with a similar issue a couple of months ago. In that case the data was fine but two of the descriptors were over written. You can use "mmfsadm test readdescraw /dev/$drive" to see the descriptors, we managed to recover the disk but only after logging it to IBM and manually rebuilding the descriptor. -CW On 13 February 2013 16:43, Jez Tucker <Jez.Tucker@rushes.co.uk> wrote:
So, er. Fun.
I checked our disks.
0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 0001000 <some data from hereon>
Looks like you lost a fair bit.
Presumably you don't have replication of 2? If so, I think you could just lose the NSD.
Failing that:
1) Check your other disks and see if there's anything that you can figure out. Though TBH, this may take forever. 2) Restore 3) Call IBM and log a SEV 1.
3) then 2) is probably the best course of action
Jez
-----Original Message----- From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss- bounces@gpfsug.org] On Behalf Of Chad Kerner Sent: 13 February 2013 16:29 To: gpfsug-discuss@gpfsug.org Subject: [gpfsug-discuss] File system recovery question
I have a file system, and it appears that someone dd'd over the first part of one of the NSD's with zero's. I see the device in multipath. I can fdisk and dd the device out.
Executing od shows it is zero's. (! 21)-> od /dev/mapper/dh1_vd05_005 | head -n 5 0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 0040000 120070 156006 120070 156006 120070 156006 120070 156006
Dumping the header of one of the other disks shows read data for the other NSD's in that file system.
(! 25)-> mmlsnsd -m | grep dh1_vd05_005 Disk name NSD volume ID Device Node name Remarks
---------------------------------------------------------------------------------------
dh1_vd05_005 8D8EEA98506C69CE - myhost (not found) server node
(! 27)-> mmnsddiscover -d dh1_vd05_005 mmnsddiscover: Attempting to rediscover the disks. This may take a while ... myhost: Rediscovery failed for dh1_vd05_005. mmnsddiscover: Finished.
Wed Feb 13 09:14:03.694 2013: Command: mount desarchive Wed Feb 13 09:14:07.101 2013: Disk failure. Volume desarchive. rc = 19. Physical volume dh1_vd05_005. Wed Feb 13 09:14:07.102 2013: File System desarchive unmounted by the system with return code 5 reason code 0 Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Failed to open desarchive. Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Command: err 666: mount desarchive Wed Feb 13 09:14:07.104 2013: Input/output error Wed Feb 13 09:14:07 CST 2013: mmcommon preunmount invoked. File system: desarchive Reason: SGPanic
Is there any way to repair the header on the NSD?
Thanks for any ideas! Chad
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
So what do you get if you run: mmfsadm test readdescraw /dev/mapper/dh1_vd05_005 ? Vic Cornell viccornell@gmail.com On 13 Feb 2013, at 16:29, Chad Kerner <ckerner@ncsa.uiuc.edu> wrote:
I have a file system, and it appears that someone dd'd over the first part of one of the NSD's with zero's. I see the device in multipath. I can fdisk and dd the device out.
Executing od shows it is zero's. (! 21)-> od /dev/mapper/dh1_vd05_005 | head -n 5 0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 0040000 120070 156006 120070 156006 120070 156006 120070 156006
Dumping the header of one of the other disks shows read data for the other NSD's in that file system.
(! 25)-> mmlsnsd -m | grep dh1_vd05_005 Disk name NSD volume ID Device Node name Remarks --------------------------------------------------------------------------------------- dh1_vd05_005 8D8EEA98506C69CE - myhost (not found) server node
(! 27)-> mmnsddiscover -d dh1_vd05_005 mmnsddiscover: Attempting to rediscover the disks. This may take a while ... myhost: Rediscovery failed for dh1_vd05_005. mmnsddiscover: Finished.
Wed Feb 13 09:14:03.694 2013: Command: mount desarchive Wed Feb 13 09:14:07.101 2013: Disk failure. Volume desarchive. rc = 19. Physical volume dh1_vd05_005. Wed Feb 13 09:14:07.102 2013: File System desarchive unmounted by the system with return code 5 reason code 0 Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Failed to open desarchive. Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Command: err 666: mount desarchive Wed Feb 13 09:14:07.104 2013: Input/output error Wed Feb 13 09:14:07 CST 2013: mmcommon preunmount invoked. File system: desarchive Reason: SGPanic
Is there any way to repair the header on the NSD?
Thanks for any ideas! Chad
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
(! 41)-> mmfsadm test readdescraw /dev/mapper/dh1_vd05_005 No NSD descriptor in sector 2 of /dev/mapper/dh1_vd05_005 No Disk descriptor in sector 1 of /dev/mapper/dh1_vd05_005 No FS descriptor in sector 8 of /dev/mapper/dh1_vd05_005 On Wed, Feb 13, 2013 at 04:48:55PM +0000, Vic Cornell wrote:
So what do you get if you run:
mmfsadm test readdescraw /dev/mapper/dh1_vd05_005
?
Vic Cornell viccornell@gmail.com
On 13 Feb 2013, at 16:29, Chad Kerner <ckerner@ncsa.uiuc.edu> wrote:
I have a file system, and it appears that someone dd'd over the first part of one of the NSD's with zero's. I see the device in multipath. I can fdisk and dd the device out.
Executing od shows it is zero's. (! 21)-> od /dev/mapper/dh1_vd05_005 | head -n 5 0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 0040000 120070 156006 120070 156006 120070 156006 120070 156006
Dumping the header of one of the other disks shows read data for the other NSD's in that file system.
(! 25)-> mmlsnsd -m | grep dh1_vd05_005 Disk name NSD volume ID Device Node name Remarks --------------------------------------------------------------------------------------- dh1_vd05_005 8D8EEA98506C69CE - myhost (not found) server node
(! 27)-> mmnsddiscover -d dh1_vd05_005 mmnsddiscover: Attempting to rediscover the disks. This may take a while ... myhost: Rediscovery failed for dh1_vd05_005. mmnsddiscover: Finished.
Wed Feb 13 09:14:03.694 2013: Command: mount desarchive Wed Feb 13 09:14:07.101 2013: Disk failure. Volume desarchive. rc = 19. Physical volume dh1_vd05_005. Wed Feb 13 09:14:07.102 2013: File System desarchive unmounted by the system with return code 5 reason code 0 Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Failed to open desarchive. Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Command: err 666: mount desarchive Wed Feb 13 09:14:07.104 2013: Input/output error Wed Feb 13 09:14:07 CST 2013: mmcommon preunmount invoked. File system: desarchive Reason: SGPanic
Is there any way to repair the header on the NSD?
Thanks for any ideas! Chad
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Thats not pretty - but you can push the NSD descriptor on with something like: tspreparedisk -F -n /dev/mapper/dh1_vd05_005 -p 8D8EEA98506C69CE That leaves you with the FS and Disk descriptors to recover . . . . Vic Cornell viccornell@gmail.com On 13 Feb 2013, at 16:52, Chad Kerner <ckerner@ncsa.uiuc.edu> wrote:
(! 41)-> mmfsadm test readdescraw /dev/mapper/dh1_vd05_005 No NSD descriptor in sector 2 of /dev/mapper/dh1_vd05_005 No Disk descriptor in sector 1 of /dev/mapper/dh1_vd05_005 No FS descriptor in sector 8 of /dev/mapper/dh1_vd05_005
On Wed, Feb 13, 2013 at 04:48:55PM +0000, Vic Cornell wrote:
So what do you get if you run:
mmfsadm test readdescraw /dev/mapper/dh1_vd05_005
?
Vic Cornell viccornell@gmail.com
On 13 Feb 2013, at 16:29, Chad Kerner <ckerner@ncsa.uiuc.edu> wrote:
I have a file system, and it appears that someone dd'd over the first part of one of the NSD's with zero's. I see the device in multipath. I can fdisk and dd the device out.
Executing od shows it is zero's. (! 21)-> od /dev/mapper/dh1_vd05_005 | head -n 5 0000000 000000 000000 000000 000000 000000 000000 000000 000000 * 0040000 120070 156006 120070 156006 120070 156006 120070 156006
Dumping the header of one of the other disks shows read data for the other NSD's in that file system.
(! 25)-> mmlsnsd -m | grep dh1_vd05_005 Disk name NSD volume ID Device Node name Remarks --------------------------------------------------------------------------------------- dh1_vd05_005 8D8EEA98506C69CE - myhost (not found) server node
(! 27)-> mmnsddiscover -d dh1_vd05_005 mmnsddiscover: Attempting to rediscover the disks. This may take a while ... myhost: Rediscovery failed for dh1_vd05_005. mmnsddiscover: Finished.
Wed Feb 13 09:14:03.694 2013: Command: mount desarchive Wed Feb 13 09:14:07.101 2013: Disk failure. Volume desarchive. rc = 19. Physical volume dh1_vd05_005. Wed Feb 13 09:14:07.102 2013: File System desarchive unmounted by the system with return code 5 reason code 0 Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Failed to open desarchive. Wed Feb 13 09:14:07.103 2013: Input/output error Wed Feb 13 09:14:07.102 2013: Command: err 666: mount desarchive Wed Feb 13 09:14:07.104 2013: Input/output error Wed Feb 13 09:14:07 CST 2013: mmcommon preunmount invoked. File system: desarchive Reason: SGPanic
Is there any way to repair the header on the NSD?
Thanks for any ideas! Chad
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss@gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Wed, 2013-02-13 at 10:29 -0600, Chad Kerner wrote:
I have a file system, and it appears that someone dd'd over the first part of one of the NSD's with zero's. I see the device in multipath. I can fdisk and dd the device out.
Log a SEV1 call with IBM. If it is only one NSD that is stuffed they might be able to get it back for you. However it is a custom procedure that requires developer time from Poughkeepsie. It will take some time. In the meantime I would strongly encourage you to start preparing for a total restore, which will include recreating the file system from scratch. Certainly if all the NSD headers are stuffed then the file system is a total loss. However even with only one lost it is not as I understand it certain you can get it back. It is probably a good idea to store the NSD headers somewhere off the file system in case some numpty wipes them. The most likely reason for this is that they ran an distro install on a system that has direct access to the disk. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
participants (5)
-
Chad Kerner -
Craig Wilson -
Jez Tucker -
Jonathan Buzzard -
Vic Cornell
