Need help on partition recovery without CDROM or Network Boot available.

Need help on partition recovery without CDROM or Network Boot available.

Post by asuka.. » Sat, 22 Mar 2003 18:36:57



Can someone advise me what's a better way to recover from overlapped
partition due to misconfiguration of other partitions.

My current symptoms are:
- System always hang on boot up and need to be fsck'ing
- Can't handle much IO on /dev/dsk/c0t0d0s6 otherwise it will hang.

This machine im working is located on colocation service and the
machine itself don't have a CDROM (Netra X1).

Suppose that I have the following filesystems:
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0     245679   64732  156380    30%    /
/dev/dsk/c0t0d0s6    3098743 2336644  700125    77%    /usr
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
/dev/dsk/c0t0d0s5    2055463  139511 1854289     7%    /var
swap                 1548568      16 1548552     1%    /var/run
swap                 1548568      16 1548552     1%    /tmp
/dev/dsk/c0t2d0s0    38201420 6788409 31030997    18%    /disks/2

What I need to do is I want to move the /usr content to different
disk, so I could fix the partition. But if I try to tar /usr then the
system will failed due to heavy IO.

Can anyone tell me what my options are ?

 
 
 

Need help on partition recovery without CDROM or Network Boot available.

Post by Peter Bunclar » Sat, 22 Mar 2003 19:07:08



>Can someone advise me what's a better way to recover from overlapped
>partition due to misconfiguration of other partitions.

>My current symptoms are:
>- System always hang on boot up and need to be fsck'ing
>- Can't handle much IO on /dev/dsk/c0t0d0s6 otherwise it will hang.

>This machine im working is located on colocation service and the
>machine itself don't have a CDROM (Netra X1).

>Suppose that I have the following filesystems:
>Filesystem            kbytes    used   avail capacity  Mounted on
>/dev/dsk/c0t0d0s0     245679   64732  156380    30%    /
>/dev/dsk/c0t0d0s6    3098743 2336644  700125    77%    /usr
>/proc                      0       0       0     0%    /proc
>fd                         0       0       0     0%    /dev/fd
>mnttab                     0       0       0     0%    /etc/mnttab
>/dev/dsk/c0t0d0s5    2055463  139511 1854289     7%    /var
>swap                 1548568      16 1548552     1%    /var/run
>swap                 1548568      16 1548552     1%    /tmp
>/dev/dsk/c0t2d0s0    38201420 6788409 31030997    18%    /disks/2

>What I need to do is I want to move the /usr content to different
>disk, so I could fix the partition. But if I try to tar /usr then the
>system will failed due to heavy IO.

>Can anyone tell me what my options are ?

You're going to have to boot off of a different medium; since you don't have
a cd, you could set up a network install-server and boot net.  Then you can
work on your bust system disk like it was a chunk of data.

Pete.

 
 
 

Need help on partition recovery without CDROM or Network Boot available.

Post by Adrian Ba » Sat, 22 Mar 2003 23:28:11




[snip]
> >Can someone advise me what's a better way to recover from overlapped
> >partition due to misconfiguration of other partitions.
> You're going to have to boot off of a different medium; since you don't have
> a cd, you could set up a network install-server and boot net.  Then you can
> work on your bust system disk like it was a chunk of data.

Agreed.

At a pinch though, you could create a new root, usr & var on c0t2,
copy root and var and as much of /usr as possible (better still,
restore from your last good backup); modify the vfstab to use the new
filesystems (the device tree etc should be ok), and see if you can
boot off this.

If it works, rebuild the original filesystems and restore from a good
backup (i.e. one taken prior to the misconfiguration).

HTH,
Adrian.