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

Making /dev/md2 RAID smaller to create another partition for OpenVZ



Hello,

I have two hard drives ( sda and sdb ) which are used to create
md0,md1 and md2. I want to resize md2, sda3 and sdb3 to create another
set of partition for md3 on which I would like to setup OpenVZ.

I already resized md2 using fallowing tutorial:
http://www.howtoforge.com/how-to-resize-raid-partitions-shrink-and-grow-software-raid

root@rescue ~ # parted
GNU Parted 1.8.8
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print devices
/dev/sda (750GB)
/dev/sdb (750GB)
/dev/md0 (2153MB)
/dev/md1 (271MB)
/dev/md2 (4295MB)
(parted)

According to another tutorial:
http://www.howtoforge.com/linux_resizing_ext3_partitions
I have turned off journaling for both sda3 and sdb3 but now I can't
proceed any further since it tells me that device is busy...

root@rescue ~ # e2fsck -f /dev/sda3
e2fsck 1.41.3 (12-Oct-2008)
e2fsck: Device or resource busy while trying to open /dev/sda3
Filesystem mounted or opened exclusively by another program?

OR
(parted) resize
Partition number? 3
Start?  [2426MB]?
End?  [750GB]? 6522MB
Error: File system has an incompatible feature enabled.  Compatible features are
has_journal, dir_index, filetype, sparse_super and large_file.  Use tune2fs or
debugfs to remove features.

I'm doing this all from LiveCD so filesystem shouldnt be busy. What
should I do now? :|


Reply to: