- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Partions on Disk
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
Forums
Discussions
Discussions
Discussions
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
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
05-11-2005 07:14 PM
05-11-2005 07:14 PM
Is there any way of creating two partitions on a single disk (internal)?
If yes ...how do i do it!!!
Thanks in advance.
Regards,
Girish
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 07:23 PM
05-11-2005 07:23 PM
Re: Partions on Disk
If you've not created a new filesystem before I would advise you to use sam.
Provide us with details of bdf -il, tell us what you want the new filesystem to be for, and you'll get pleny of help here.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 07:24 PM
05-11-2005 07:24 PM
Re: Partions on Disk
LVM - logical volume manager
internal as in vg00 ?
# vgdisplay -v vg00
# lvcreate -L size_in_mb -n lvolx /dev/vg00
# newfs -F vxfs /dev/vg00/rlvolX
or use sam.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 07:30 PM
05-11-2005 07:30 PM
Re: Partions on Disk
2 logical volumes??
Yes possible
pvcreate -f /dev/rdsk/cXtYdZ
mkdir /dev/vgtest
mknod /dev/vgtest/group c 64 0x070000
vgcreate vgtest /dev/dsk/cXtYdZ
lvcreate vgtest
lvcreate vgtest
now 2 logical volumes have been created
/dev/vgtest/lvol1 and lvol2
create lvol1 with 100 MB and lvol2 with 200MB
lvextend -L 100 /dev/vgtest/lvol1
lvextend -L 200 /dev/vgtest/lvol2
Activate VG
vgchange -a y /dev/vgtest
create filesystems:
mkfs -F vxfs -o largefiles /dev/vgtest/lvol1
mkfs -F vxfs -o largefiles /dev/vgtest/lvol2
Create mountpoints:
mkdir /dir1 /dir2
Mount the filesystems:
mount -F vxfs -o largefiles /dev/vgtest/lvol1 /dir1
mount -F vxfs -o largefiles /dev/vgtest/lvol2 /dir2
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 07:43 PM
05-11-2005 07:43 PM
Re: Partions on Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 07:48 PM
05-11-2005 07:48 PM
Re: Partions on Disk
don't forget to add the filesystems in the /etc/fstab.
so as an example. create new filesystem /rob
# lvcreate -L 100 -n lvol8 /dev/vg00
Logical volume "/dev/vg00/lvol8" has been successfully created with
character device "/dev/vg00/rlvol8".
Logical volume "/dev/vg00/lvol8" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.cof
# newfs -F vxfs /dev/vg00/rlvol8
version 3 layout
102400 sectors, 102400 blocks of size 1024, log size 1024 blocks
unlimited inodes, 102400 data blocks, 101280 free data blocks
4 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 4096 data blocks
first allocation unit starts at block 0
overhead per allocation unit is 0 blocks
# mkdir /rob
# mount /dev/vg00/lvol8 /rob
# bdf /rob
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 102400 1133 94945 1% /rob
add to the /etc/fstab
/dev/vg00/lvol8 /rob vxfs defaults 0 2
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 08:17 PM
05-11-2005 08:17 PM
Re: Partions on Disk
I actually mean Physically partitioning the disk.
e.g. i have one disk /dev/dsk/c0t0d0
when i do "pvcreate /dev/dsk/c0t0d0" i get one LUN i.e one Physical Volume and this is what i am calliing it as partition.
Finally is it possible to have two PV's on a single disk??
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 08:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 08:19 PM
05-11-2005 08:19 PM
Re: Partions on Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 08:20 PM
05-11-2005 08:20 PM
Re: Partions on Disk
it cant be done.
you can have only one disk device for every disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 11:23 PM
05-11-2005 11:23 PM
Re: Partions on Disk
again repeating the sane but its not possible
regards
Pravin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 02:41 AM
05-12-2005 02:41 AM
Re: Partions on Disk
But, if you have a hardware RAID controller, you can access the RAID utility, and make two logical drives on this disk. Then the OS will see two disks, and you will be able to create 2 VGs.
Hope i am clear...
Regards,
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 09:53 PM
05-12-2005 09:53 PM
Re: Partions on Disk
the answer is YES,
IF you are on HP-UX 11.23
man idisk
In fact you *need to* partition the disks to mirror your internal boot disks on an Itanium machine.
You can also use idisk to slice other disks and put individual slices (partitions) into into different VGs like you do with the entire disks on HP-UX 11.11.
This is a nice feature but bears some complications regarding the event of a disk failure....
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2005 10:43 PM
05-14-2005 10:43 PM
Re: Partions on Disk
I agree with Bernhard Mueller ,
I have tried this in itanium, but i tried finding for post 9.X HPUX for PA-RISC but failed.
So to your question, The answer is yes as before.
Lets assume that your disk is 34 GB and u wanna make it 3 parts of 10 GB each,..then do as follows...lets say the device file is /dev/[r]dsk/c1t2d0...idisk is a interactive command. First answere yes ,when prompted if the data will be destroyed.
#idisk -w -f - /dev/rdsk/c1t2d0
4
EFI 100MB
HPUX 10000MB
HPUX 10000MB
HPUX 10000MB
I think you can use "3" instead of "4" and omit the "EFI" line, but i din't try that.
After issue of the above command, you need to get the hardware path of the disk "ioscan -funC disk"...
then
#insf -e -H "H/W path"
ex H/w path : 0/3/2/5/2.0.1.2
Then do ioscan -funC disk , VOILA..you will have the following files...
/dev/[r]dsk/c1t2d0s0
/dev/[r]dsk/c1t2d0s1
/dev/[r]dsk/c1t2d0s2
/dev/[r]dsk/c1t2d0s3
Do
#diskinfo "on all the newly created raw device files and you can confirm the size".
So the statement "a disk can only belong to one VG" ....hahaha..... its bursted as a myth atleast in itanium servers. I will try something for PA-RISC OS version...wish me luck......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2005 02:41 AM
05-15-2005 02:41 AM
Re: Partions on Disk
Well Bernhard and Senthil kumar have cracked the funda with the idisk utility :). Well i am going to try that one and hopefully it should work.
Well, point assignment was too early so both answers enjoys the rabbit....
Regards,
Girish..