[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

using parted -- safely on /dev/md*?



we've got a client who put a horrible partitioning scheme in
place on their raid-mirror setup -- and are wondering if we can
remotely run 'parted' to recover from this...?


$ df
Filesystem    1k-blocks    Used Available Use% Mounted on
/dev/md1       72090640  869700  68291332   2% /
/dev/md2        3747472  434952   3160232  13% /var
/dev/md0          93207    5344     84013   6% /boot

there's plenty of room for more partitions, if we can shrink
/<root> down to a coupla gig (from 68!)


$ mount
/dev/md1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md2 on /var type ext3 (rw)
/dev/md0 on /boot type ext3 (rw)


$ fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 9726 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot  Start   End    Blocks   Id  System
/dev/hda1   *       1    12     96358+  83  Linux
/dev/hda2          13   134    979965   82  Linux swap
/dev/hda3         135  9252  73240335   83  Linux
/dev/hda4        9253  9726   3807405   83  Linux

Disk /dev/hdb: 255 heads, 63 sectors, 9726 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot  Start   End    Blocks   Id  System
/dev/hdb1           1    12     96358+  fd  Linux raid autodetect
/dev/hdb2          13   134    979965   82  Linux swap
/dev/hdb3         135  9252  73240335   fd  Linux raid autodetect
/dev/hdb4        9253  9726   3807405   fd  Linux raid autodetect


is this raid /dev/md* stuff something that parted can handle?
the client machine is 1200 miles from here -- we'd rather leave
it as-is and symlink everything than risk borking the machine
from afar.

-- 
I use Debian/GNU Linux version 3.0;
Linux boss.serensoft.com 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586 unknown
 
DEBIAN NEWBIE TIP #54 from Will Trillich <will@serensoft.com>
:
Tired of SLOW BROWSING THROUGH THE ONLINE APACHE MANUAL? Get
your own local copy and never worry about bandwidth again:
    apt-get install apache-doc
Then browse /usr/share/doc/apache/manual.html, quick like a
bunny.



Reply to: