- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: command for HDD resize
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО04-02-2006 07:10 PM
тАО04-02-2006 07:10 PM
What command uses in HP-UX OS to resize the HDD (like fdisk /dev/hda in linux OS)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2006 07:25 PM
тАО04-02-2006 07:25 PM
Re: command for HDD resize
SCSI describe of /dev/rdsk/c2t1d0:
vendor: HP 73.4G
product id: MAS3735NC
type: direct access
size: 71687369 Kbytes
bytes per sector: 512
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2006 07:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2006 07:45 PM
тАО04-02-2006 07:45 PM
Re: command for HDD resize
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2006 02:21 AM
тАО04-03-2006 02:21 AM
Re: command for HDD resize
Why you are asking that i don't understand. but as i know there is no command to resize the HD. Because when you add a new HD to the system you can only create it with its full size. You can resize lvs or vgs. but it is not possible to change the size of HD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2006 02:34 AM
тАО04-03-2006 02:34 AM
Re: command for HDD resize
mediainit / diskinfo / fsadm / lvextend / mkfs/ newfs you use with HPUX for FS/ hard disk operations..
Check man pages for details
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2006 04:07 AM
тАО04-03-2006 04:07 AM
Re: command for HDD resize
As you should have already seen on LVM, you have some Volume Group (as vg00 for exemple). This Volume Groupe gather many disks called Physical Volume (PV), inside this VG you can cut out Logical Volumes (LV) which will be your futur FileSystems.The unit for LV is the PE (Physical Extend). It's these LV than you can mount on directories after creating the FS structure. You can now find LVM on linux (RedHat, Centos)
To create a Volume Groupe :
(1) pvcreate /dev/rdsk/cxtxdx (see manpage for option)
(2) mkdir /dev/
(3) mknod /dev/
?? is the minor number. It's an hexa number on two digit.
(4) vgcreate /dev/
You can add several disk in the vgcreate or add them after see (5):
(5) vgextend /dev/
You can add severals disks too.
Once you have added all the disk to your VG you can now cut out slices (LV) and format them in vxfs format.
(6) lvcreate -l SIZE /dev/
with SIZE in PE Number (Ex: 4Go -> 1024x4Mo so -l 1024)
lvcreate -L SIZE /dev/
(7) newfs -F vxfs -o largefiles -b 8192 /dev/
-o largefiles : no comments
-b 8192 is the size of the bloc of the file system, for oracle FS by exemple.
(8) mount /dev/
So after If you have to "resize" what you call your "disk" I hope it's the LVol otherwise there's noway to resize a disk. According to me, (by making the analogy) what you do with fdisk /dev/hda is to write the partition table a cutting which can be view as the equivalent of the lvols definition and sizes.
So to resize a lvol two possibilities :
(1) You have OnlineJfs and then you can do
(a)-- make a : lvextend -L
(b)-- make a : fsadm -F vxfs -b
(2) You don't have OnlineJfs :
(a) Umount the FS
(b)Same as 1a above.
(c) extendfs -F vxfs /dev/
(d) mount /dev/
I hope I have forget nothing and I didn't make errors. :-)
Hope this helps
Kenavo
Pat