bug-parted
[Top][All Lists]
Advanced

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

RE: Resize problem with LVM and SAN


From: Kreig DuBose
Subject: RE: Resize problem with LVM and SAN
Date: Sat, 29 Jan 2005 12:52:14 -0700


All- 

What I did was create my array, then fdisk'd it setting it's type as
LVM, then I did the pvcreate, followed by lvcreate for each LV.  Once
the LV were created within the VG I formatted the LV as ext3.

I've gone through and removed the partition via parted then using
Mkpart I recreated the partition as ext2 (figuring I may have to add the
journal file back later, but if it grew the partition that would be
fine).

(parted) print
Disk geometry for /dev/sdc: 0.000-208483.328 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031 138984.213  primary
(parted) rm 1
(parted) mkpart
Partition type?  primary/extended? primary
File system type?  [ext2]?
Start? 0.031
End? 138984.213
(parted) print
Disk geometry for /dev/sdc: 0.000-208483.328 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031 138984.213  primary
(parted) flag
  check MINOR                   do a simple check on the filesystem
  cp [FROM-DEVICE] FROM-MINOR TO-MINOR      copy filesystem to another
partition
  help [COMMAND]                prints general help, or help on COMMAND
  mklabel LABEL-TYPE            create a new disklabel (partition table)
  mkfs MINOR FS-TYPE            make a filesystem FS-TYPE on partititon
MINOR
  mkpart PART-TYPE [FS-TYPE] START END      make a partition
  mkpartfs PART-TYPE FS-TYPE START END      make a partition with a
filesystem
  move MINOR START END          move partition MINOR
  name MINOR NAME               name partition MINOR NAME
  print [MINOR]                 display the partition table, or a
partition
  quit                          exit program
  rescue START END              rescue a lost partition near START and
END
  resize MINOR START END        resize filesystem on partition MINOR
  rm MINOR                      delete partition MINOR
  select DEVICE                 choose the device to edit
  set MINOR FLAG STATE          change a flag on partition MINOR
(parted) set
Partition number? 1
Flag to change?  boot/hidden/raid/lvm/lba? lvm
New state?  on/[off]? on
(parted) print
Disk geometry for /dev/sdc: 0.000-208483.328 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031 138984.213  primary               lvm
(parted) resize 1 0.031 200000.000
Error: Could not detect file system.

Still ending up in the same place.  I have looked at lvresize.. but I'm
not trying to (yet) increase the size of the LV.  I know I can create
another partition on the device and vgextend into that one, but then I
end up with the OS seeing it as 2 partitions when really it isn't.

Would I first have needed to create an ext3 filesystem on the array,
then create my VG and LVs ?  Is there any data that I can provide that
would assist?  Or have I just completely fallen off my rocker :P

Regards,
Kreig



-----Original Message-----
From: Andrew Clausen [mailto:address@hidden 
Sent: Friday, January 28, 2005 11:01 PM
To: Kreig DuBose
Cc: Mathieu Bruneau; address@hidden
Subject: Re: Resize problem with LVM and SAN

On Fri, Jan 28, 2005 at 08:47:09PM -0700, Kreig DuBose wrote:
>    Many thanks for the reply.  First I want to say I understand that
there
>    are newer versions of parted out there but that I'm restricted to
using
>    the version I mentioned initially as it's what ships with RHEL3
update 3.
> 
>    Regarding the following information:
>    Using /dev/sdc
> 
>   Information: The operating system thinks the geometry on /dev/sdc is
>   26577/255/63.  Therefore, cylinder 1024 ends at 8032.499M.
>   (parted) print
>   Disk geometry for /dev/sdc: 0.000-208483.328 megabytes
>   Disk label type: msdos
>   Minor    Start       End     Type      Filesystem  Flags
>   1          0.031 138984.213  primary               lvm
>   (parted)
> 
>    There isn't a FileSystem label showing .. Is that the problem?  If
so is
>    there a way for me to "tell" it ext3 or ext2 ?

Is it actually a LVM partition, rather than an ext2 partition?
If yes, you want to use the LVM tools (lvresize, and perhaps resize2fs,
IIRC)

Cheers,
Andrew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]