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-22-2003 07:16 AM
07-22-2003 07:16 AM
lvsplit
#
# SPLIT mirror's for vg01
#
for i in $(ls /dev/vg01/*)
do
lvsplit $i >> /dbms/tmp/backupmirror.msg
done
I get this error:
"lvsplit: Logical volume "/dev/vg01/rdbms" is not a block special file."
Question:
1-) Why?
2-) What's the solution
TIA,
Angelo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:20 AM
07-22-2003 07:20 AM
Re: lvsplit
It looks like it's a raw device file. Post an "ll /dev/vg01" so we can see what the corresponding cooked file might be.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:25 AM
07-22-2003 07:25 AM
Re: lvsplit
lvsplit /dev/vg01/lvol1
The split off mirror needs to be part of vg01 or the original volume group and won't write to a /tmp file.
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-22-2003 07:25 AM
07-22-2003 07:25 AM
Re: lvsplit
You want to skip the raw devices so :
for i in $(ls in /dev/vg01/[!r]*)
...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:29 AM
07-22-2003 07:29 AM
Re: lvsplit
ioscan -fun -C disk
disk 0 10/0/14/0.0.0 sdisk CLAIMED DEVICE TEAC CD-532E-B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
If not reboot or use /sbin/insf
to install special (device) files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:36 AM
07-22-2003 07:36 AM
Re: lvsplit
you need to use block device with the lvsplit command.
Try
for i in $(vgdisplay -v /dev/vg01 |grep /dev/vg00/|awk '{print $3}')
Enrico.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:36 AM
07-22-2003 07:36 AM
Re: lvsplit
Solution: for i in $(ls in /dev/vg01/[!r]*)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:37 AM
07-22-2003 07:37 AM
Re: lvsplit
Sorry, there is a typographical error in my last post. This correct that error *and* skips the volume group's 'group' file and all *raw* devices:
#!/usr/bin/sh
for i in $(ls /dev/vg02/[!r]*)
do
[ $(basename ${i}) = group ] && continue
echo $i
done
exit 0
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:43 AM
07-22-2003 07:43 AM
Re: lvsplit
#
# SPLIT mirror's for vg01
#
######## 7_22_2003 for i in $(ls /dev/vg01/*)
for i in $(ls in /dev/vg01/[!r]*)
do
[ $(basename ${i}) = group ] && continue
echo $i
lvsplit $i >> /dbms/tmp/backupmirror.msg
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:46 AM
07-22-2003 07:46 AM
Re: lvsplit
# ll /dev/vg01
total 0
brw-r----- 1 root sys 64 0x010001 Apr 29 00:54 dbms
crw-rw-rw- 1 root sys 64 0x010000 Sep 10 2002 group
crw-r----- 1 root sys 64 0x010001 Sep 10 2002 rdbms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:49 AM
07-22-2003 07:49 AM
Re: lvsplit
I believe that's got it! Looks good to me.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:49 AM
07-22-2003 07:49 AM
Re: lvsplit
Yes, but per my second post:
...
for i in $(ls in /dev/vg01/[!r]*)
...should be:
for i in $(ls /dev/vg01/[!r]*)
...that is, drop the word "in"!!!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 07:57 AM
07-22-2003 07:57 AM
Re: lvsplit
Thanks guys,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 09:25 AM
07-22-2003 09:25 AM
Re: lvsplit
#
# SPLIT mirror's for vg01
#
######## 7_22_2003 for i in $(ls /dev/vg01/*)
for i in $(ls /dev/vg01/[!r]*)
do
[ $(basename ${i}) = group ] && continue
echo $i >> /dbms/tmp/backupmirror.msg
lvsplit $i >> /dbms/tmp/backupmirror.msg
done
Once again, Thanks for all the replys.
Angelo,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2003 09:25 AM
07-22-2003 09:25 AM
Re: lvsplit
#
# SPLIT mirror's for vg01
#
######## 7_22_2003 for i in $(ls /dev/vg01/*)
for i in $(ls /dev/vg01/[!r]*)
do
[ $(basename ${i}) = group ] && continue
echo $i >> /dbms/tmp/backupmirror.msg
lvsplit $i >> /dbms/tmp/backupmirror.msg
done
Once again, Thanks for all the replys.
Angelo,