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

May 17th, 2011 - 12:30 pm ET by Sebastian Tarach | Report spam
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-re...tware-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_res...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? :|


To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/BANLkTikXw+...62pDpn7=Mg@mail.gmail.com
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Stan Hoeppner
May 17th, 2011 - 02:40 pm ET | Report spam
On 5/17/2011 11:24 AM, Sebastian Tarach wrote:
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-re...tware-raid

~ # 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_res...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...

~ # 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? :|



You should ask for help on the linux raid mailing list.



Stan


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/

Similar topics