- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX mirror disks
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
07-28-2009 04:33 AM
07-28-2009 04:33 AM
From SAM I see two unused disks, see below:
0.4.0 1 Unused 286102 COMPAQ BF3008AFEC
0.5.0 1 Unused 286102 COMPAQ BF3008AFEC
disk 7 0/4/1/0.4.0 sdisk CLAIMED DEVICE COMPAQ BF3008AFEC
/dev/dsk/c4t4d0 /dev/rdsk/c4t4d0
disk 8 0/4/1/0.5.0 sdisk CLAIMED DEVICE COMPAQ BF3008AFEC
/dev/dsk/c4t5d0 /dev/rdsk/c4t5d0
I would like to know how to make a RAID1 with thouse two disks and then create a filesystem with that RAID1 called /test (with the largefiles option on it)
Thanks a lot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 04:43 AM
07-28-2009 04:43 AM
Solution# swlist |grep -i mirror
B2491BA B.11.11 MirrorDisk/UX
Assuming you have the MirrorDisk product, it works by mirroring logical volumes, not whole disks. Check the lvextend man page and you will see the information concerning the "-m mirror copies" option.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:01 AM
07-28-2009 05:01 AM
Re: HP-UX mirror disks
Your server or disk unit may have hardware raid, negating the need to purchase Mirror/UX
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:01 AM
07-28-2009 05:01 AM
Re: HP-UX mirror disks
pvcreate /dev/rdsk/c4t4d0
pvcreate /dev/rdsk/c4t5d0
# eplace vg00 if you want to put them under a different vg below
vgextend vg00 /dev/dsk/c4t4d0
vgextend vg00 /dev/dsk/c4t5d0
lvcreate -s -n myNEWlvolNAME vg00
lvextend -L
lvextend -m 1 /dev/vg00/myNEWlvolNAME /dev/dsk/c4t5d0
newfs -F vxfs /dev/vg00/myNEWlvolNAME
One thing to consider: since this seems like a large disk drive (~290 GB) you may need to create a new volume group with larger PE-per-PV number or with larger PE sizes to accommodate these drives.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:03 AM
07-28-2009 05:03 AM
Re: HP-UX mirror disks
please correct the last command in my response as:
newfs -F vxfs -o largefiles /dev/vg00/myNEWlvolNAME
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:10 AM
07-28-2009 05:10 AM
Re: HP-UX mirror disks
re-verify if these disks are not the part of any volume group already
strings /etc/lvmtab |grep -i c4t4d0
strings /etc/lvmtab |grep -i c4t5d0
Steps to create new vg and mirror using raid 1
pvcreate -f /dev/rdsk/c4t4d0
pvcreate -f /dev/rdsk/c4t5d0
mkdir /dev/vgtest
mknod group c64 0X020000
(minor number 0X020000 (make sure it is unused if used just use successive number 0X030000)
vgcreate vgtest /dev/dsk/c4t4d0
lvcreate -L
newfs -f vxfs -o largefiles /dev/vgtest/rlvoltest
mkdir /test
mount /dev/vgtest/lvoltest /test
vgextend /dev/vgtest /dev/dsk/c4t5d0
lvextend -m 1 /dev/vgtest/lvoltest /dev/dsk/c4t5d0
Once completes u can check using , look for mirror copy details.
lvdisplay /dev/vgtest/lvoltest
Thanks and Regards
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:20 AM
07-28-2009 05:20 AM
Re: HP-UX mirror disks
Amazing response!
>mknod group c64 0X030000
>(minor number 0X020000 (make sure it is >unused if used just use successive number >0X030000)
How do I find out wether its being used or not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:24 AM
07-28-2009 05:24 AM
Re: HP-UX mirror disks
root@host:/dev # ll /dev/*/group
cr--r--r-- 1 root sys 64 0x010000 May 9 2005 /dev/test/group
cr--r--r-- 1 root sys 64 0x020000 Sep 14 2005 /dev/test/group
crw-r----- 1 root sys 64 0x000000 Feb 26 2005 /dev/vg00/group
root@host:/dev # mknod group c64 0X030000
mknod: arg count
usage: mknod name b|c major minor
mknod name p
why mknod aint working?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:24 AM
07-28-2009 05:24 AM
Re: HP-UX mirror disks
# ll /dev/vg*/group
or, to just search all of /dev:
# ll /dev/*/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:27 AM
07-28-2009 05:27 AM
Re: HP-UX mirror disks
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:29 AM
07-28-2009 05:29 AM
Re: HP-UX mirror disks
https://forums11.itrc.hp.com/service/forums/pageList.do?userId=WW168242&listType=unassigned&forumId=1
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:31 AM
07-28-2009 05:31 AM
Re: HP-UX mirror disks
root@host:/dev/vg01 # vgcreate vg01 /dev/dsk/c4t4d0
Warning: Max_PE_per_PV for the volume group (65535) too small for this PV (71525).
Using only 65535 PEs from this physical volume.
Increased the number of physical extents per physical volume to 65535.
vgcreate: Volume group "/dev/vg01" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.
How do I fix that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:36 AM
07-28-2009 05:36 AM
Re: HP-UX mirror disks
I wasnt aware of that sumit points thing, i started submiting points with this thread in particular and will do so with the rest during the day.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:38 AM
07-28-2009 05:38 AM
Re: HP-UX mirror disks
Thanks, mknod group c 64 0X030000 worked like charm, a space was needed between c and 64.
Now I get the following message when i run vgcreate
Warning: Max_PE_per_PV for the volume group (65535) too small for this PV (71525).
Using only 65535 PEs from this physical volume.
Increased the number of physical extents per physical volume to 65535.
vgcreate: Volume group "/dev/vg01" could not be created:
VGRA for the disk is too big for the specified parameters. Increase the
extent size or decrease max_PVs/max_LVs and try again.
Help me, im about to get tehre!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:41 AM
07-28-2009 05:41 AM
Re: HP-UX mirror disks
vgcreate -l 255 -p 255 -e 5000 -s 64 /dev/vgtest /dev/dsk/c4t4d0
Its just that max PE per PV is limited to the 65535 value and with this big disk
you can just try increasing the PV size.
Good luck!
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:43 AM
07-28-2009 05:43 AM
Re: HP-UX mirror disks
Try the above command and it should work.
Thanks and Regards
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:46 AM
07-28-2009 05:46 AM
Re: HP-UX mirror disks
Worked like charm:
root@host:/dev/vg01 # vgcreate -l 255 -p 255 -e 5000 -s 64 /dev/vg01 /dev/dsk/c4t4d0
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
root@host:/dev/vg01 # lvcreate -L 10240M /dev/vg01 -n orau8
Usage: lvcreate
[-A Autobackup]
[-d Schedule]
[-i Stripes -I StripeSize]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
[-m MirrorCopies]
[-n LogicalVolumeName]
[-p Permission]
[-r Relocate]
[-s Strict]
[-C Contiguous]
[-D Distributed]
[-M MirrorWriteCache]
[-c MirrorConsistency]
VolumeGroupName
"-n": Too many arguments
I get that error now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:50 AM
07-28-2009 05:50 AM
Re: HP-UX mirror disks
lvcreate -L 10240M -n orau8 /dev/vg01
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:51 AM
07-28-2009 05:51 AM
Re: HP-UX mirror disks
Use
lvcreate -L 10240 -n orau8 /dev/vg01
than
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:53 AM
07-28-2009 05:53 AM
Re: HP-UX mirror disks
amazing
root@host:/dev/vg01 # lvcreate -L 10240M -n orau8 /dev/vg01
Logical volume "/dev/vg01/orau8" has been successfully created with
character device "/dev/vg01/rorau8".
Logical volume "/dev/vg01/orau8" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
now in order to create a vxfs should I run
newfs -f vxfs -o largefiles /dev/vg01/orau8 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:53 AM
07-28-2009 05:53 AM
Re: HP-UX mirror disks
You need to use
newfs -f vxfs -o largefiles /dev/vgtest/rlvoltest
rlvoltest not lvoltest
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:55 AM
07-28-2009 05:55 AM
Re: HP-UX mirror disks
Sorry for last post it should be
newfs -F vxfs -o largefiles /dev/vg01/rlvoltest
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:57 AM
07-28-2009 05:57 AM
Re: HP-UX mirror disks
newfs -f vxfs -o largefiles /dev/vg01/rorau8
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 05:59 AM
07-28-2009 05:59 AM
Re: HP-UX mirror disks
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2009 09:17 PM
07-28-2009 09:17 PM
Re: HP-UX mirror disks
I am sure you would have done with this by now, sorry about the small silly mistakes in the command syntax, allow me to type it all over again to make sure you have got correct procedure for this in one shot.
Considering following info
Volume Group Name - vgtest
Logical Volume name - lvoltest
Logical volume size - 20480 MB (20 GB)
Disk 1 - /dev/dsk/c4t4d0
Disk 2 - /dev/dsk/c4t5d0
Steps to create new vg
###################
#Verify if these disks are not the part of any volume group already
strings /etc/lvmtab |grep -i c4t4d0
strings /etc/lvmtab |grep -i c4t5d0
(above commands should come out without any output, if it is coming with the disk name means this disk is already being used for some other VG, in this case verify and use another disk which is free on the system)
pvcreate -f /dev/rdsk/c4t4d0
mkdir /dev/vgtest
mknod group c 64 0X020000
(minor number 0X020000 make sure it is unused, if used just use successive number 0X030000)
you can check it by running below command
ls -al /dev/*/group
crw------- 1 root sys 64 0x010000 May 28 17:39 /dev/vg01/group
crw-r----- 1 root sys 64 0x000000 Feb 26 11:06 /dev/vg00/group
vgcreate -l 255 -p 255 -e 5000 -s 64 /dev/vgtest /dev/dsk/c4t4d0
lvcreate -L 20480M -n lvoltest /dev/vgtest
newfs -F vxfs -o largefiles /dev/vgtest/rlvoltest
mkdir /test
mount /dev/vgtest/lvoltest /test
#take backup of /etc/fstab
cp /etc/fstab /etc/fstab_backup
# Appen below entry in fstab to be able to mount this file system after reboot.
/dev/vgtest/lvoltest /test vxfs delaylog,largefiles 0 2
run command confirm any syntax error in the entry you have added in /etc/fstab
#mountall
#vgcfgbackup vgtest
(To create/update LVM volume group configuration backup file, this you may need if there is any corruption of vginfo on any disk)
Mirroring (RAID 1)
####################
pvcreate -f /dev/rdsk/c4t5d0
vgextend /dev/vgtest /dev/dsk/c4t5d0
lvextend -m 1 /dev/vgtest/lvoltest /dev/dsk/c4t5d0
Once completes u can check using , look for mirror copy details.
lvdisplay /dev/vgtest/lvoltest
Thanks
Rajeev