- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Linux New creation & extension of FS
Operating System - Linux
1748180
Members
3966
Online
108759
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2011 06:09 PM
тАО02-15-2011 06:09 PM
Dear Experts,
Please assist me in the following.
1. Creation of new FS.
2. online extension of FS.
1. Creation of new FS:
As i know, following are the steps to be performed and correct me if i am wrong.
- pvcreate
- vgcreate -s 32M
- lvcreate -L -n
- mkfs -t ext3
- Add the entry in fstab file.
- mkdir
- mount -t ext3
Help me how can i set this new FS in the multipath.
2. Online extension of FS by adding a new disk because there are no free extents in VG.
May i know, for ext3 filesystems online extension is possible without unmounting the filesystem?
steps:
- pvcreate
- vgextend
- lvextend -L +
please help me the command to do for online extension.
Also, help me do i need to update this in multipath.
Thank you!
Please assist me in the following.
1. Creation of new FS.
2. online extension of FS.
1. Creation of new FS:
As i know, following are the steps to be performed and correct me if i am wrong.
- pvcreate
- vgcreate -s 32M
- lvcreate -L
- mkfs -t ext3
- Add the entry in fstab file.
- mkdir
- mount -t ext3
Help me how can i set this new FS in the multipath.
2. Online extension of FS by adding a new disk because there are no free extents in VG.
May i know, for ext3 filesystems online extension is possible without unmounting the filesystem?
steps:
- pvcreate
- vgextend
- lvextend -L +
please help me the command to do for online extension.
Also, help me do i need to update this in multipath.
Thank you!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 11:07 AM
тАО02-16-2011 11:07 AM
Solution
first off.. multipath is device related not filesystem related.
present storage
re-scan fc
run multipath to identify the uuid of the new storage
edit /etc/multipath.conf to create a alias name (if you wish)
run multipath again to create alias namedfile in /dev/mapper/
if you do not use alias then /dev/mapper will have a mpath entry.
use that mpath reference as device name when extending the volume group. Using the /dev/sd entries bypasses multipathing.
then continue expanding creating or expanding with vgcreate or vgextend and lvcreate or lvextend and eventually mkfs or "fsadm resize /path/to/filesystem/mount-point"
present storage
re-scan fc
run multipath to identify the uuid of the new storage
edit /etc/multipath.conf to create a alias name (if you wish)
run multipath again to create alias namedfile in /dev/mapper/
if you do not use alias then /dev/mapper will have a mpath entry.
use that mpath reference as device name when extending the volume group. Using the /dev/sd entries bypasses multipathing.
then continue expanding creating or expanding with vgcreate or vgextend and lvcreate or lvextend and eventually mkfs or "fsadm resize /path/to/filesystem/mount-point"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2011 01:36 PM
тАО02-16-2011 01:36 PM
Re: Linux New creation & extension of FS
1.) Creation process is perfectly correct
As to multipath -- if disk is a SAN disk, it will mean getting yourself familiar with "multipath -ll". A newly added disk will have a multipathed entry in /dev/mapper named /dev/mapper/mpathNN. You fdisk that disk and carve a p1 partition to fully cover the whole disk (Never pvcreate the unpartitioned whole disk!). so:
pvcreate /dev/mapper/mpathNNN
You will soon be aware of the relatioship between "multipath -ll" AND /dev/mapper devices and you can even give your SAN disks friendlier names via /etc/multipath.conf so you can have multipathed disks named like:
/dev/mapper/EVA09_vdisk01
2.) How to extend FS online / sans unmouting:
Your steps are correct - but the final step would be:
resize2fs /dev/vgname/lvolname
Cheers!
As to multipath -- if disk is a SAN disk, it will mean getting yourself familiar with "multipath -ll". A newly added disk will have a multipathed entry in /dev/mapper named /dev/mapper/mpathNN. You fdisk that disk and carve a p1 partition to fully cover the whole disk (Never pvcreate the unpartitioned whole disk!). so:
pvcreate /dev/mapper/mpathNNN
You will soon be aware of the relatioship between "multipath -ll" AND /dev/mapper devices and you can even give your SAN disks friendlier names via /etc/multipath.conf so you can have multipathed disks named like:
/dev/mapper/EVA09_vdisk01
2.) How to extend FS online / sans unmouting:
Your steps are correct - but the final step would be:
resize2fs /dev/vgname/lvolname
Cheers!
Hakuna Matata.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2011 03:10 AM
тАО02-18-2011 03:10 AM
Re: Linux New creation & extension of FS
Which version of linux you are using?
On older systems you can use "ext2online" for extending the filesystem online.
Manoj K
On older systems you can use "ext2online" for extending the filesystem online.
Manoj K
Thanks and Regards,
Manoj K
Manoj K
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP