Create a new guest, install a minimal system, link to the disks of the guest 
you wish to recover, use cio_ignore -r to make them "visible", chccwdev -e to 
vary them online, mount them, and recover. You should be able to do it r/o. If 
they are in an lvm then vgscan, and vgchange -ay to make it usable before the 
mount. Just make sure your new guest has a different vg name.

Neale


-------- Original message --------
From: Mike Frysinger <[email protected]>
Date: 1/30/22 16:35 (GMT+10:00)
To: [email protected]
Subject: [LINUX-390] trying to recover existing install

i'm by no means an s390 expert, so i might be missing something obvious.

we've had an install running for a couple of years.  recently the rootfs
had some important libs deleted, so it's now unbootable.  i don't want to
format and lose data on it.  so i'm trying to boot a kernel+initrd that i
have locally so i can recover things.

from the docs [1], i need to first copy those files into a DASD before
i can IPL or punch+IPL them.  our VMs have the following DASD's:

00: DASD 0150 3390 MRC79A R/W       3336 CYL ON DASD  C79A SUBCHANNEL = 0006
    dasda1 /boot
    dasda2 /usr
00: DASD 0151 3390 MRC79A R/W       3338 CYL ON DASD  C79A SUBCHANNEL = 0007
    dasdb1 /
00: DASD 0160 9336 (VDSK) R/W     200000 BLK ON DASD  VDSK SUBCHANNEL = 000F
    dasdc1 swap
00: DASD 0190 3390 MRCA02 R/O        214 CYL ON DASD  CA02 SUBCHANNEL = 000C
00: DASD 0191 3390 MRC790 R/W          2 CYL ON DASD  C790 SUBCHANNEL = 0008
    dasdd
00: DASD 019E 3390 MRCA02 R/O        500 CYL ON DASD  CA02 SUBCHANNEL = 000D
00: DASD 0200 3390 MRC79E R/W      32759 CYL ON DASD  C79E SUBCHANNEL = 0005
    dasde1 /mnt/space
00: DASD 0592 3390 MRCA09 R/O        240 CYL ON DASD  CA09 SUBCHANNEL = 000E
00: DASD 8888 3390 MRCA05 R/O         30 CYL ON DASD  CA05 SUBCHANNEL = 0004

the only DASD i can see that i can write to from CP/CMS is 191, but it
is much too small to hold the kernel+initrd.  these files are only a
few MB, but can't even fit 1 MB into 191.

i don't want to format 150/151/200 since they have our data.  i don't
think i can reconfigure 160 temporarily.  all the rest are read-only.

any suggestions ?  if there was a way i could ftp (or send file from
x3270) directly into the spool, that seems ideal as i could then ipl
straight out of it.
-mike

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to